<?php include_once "../controller/cEmpleados.php"; $emps = new cEmpleados(); //listamos los empleados activos $listE = $emps->listaEmpleados(1); ?> <div class="row"> <div class="col-md-10"> <h1 class="page-header"> Empleados </h1> </div> <div class="col-md-2"> <br /> <small> <button onclick="modalNvoEmp()" class="btn btn-success"> Agregar Empleado <i class="fa fa-user"></i> </button> </small> </div> </div> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-body"> <ul class="nav nav-pills"> <li class="active"> <a href="#home-pills" data-toggle="tab">Administracion</a> </li> <li class=""> <a href="#profile-pills" data-toggle="tab">Lenguajes y Cursos </a> </li> </ul>
<th>Apellido Paterno</th> <th>Apellido Materno</th> <th>Correo</th> <th>CURP</th> <th>RFC</th> <th>Telefono</th> <th>Puesto</th> <th>Acciones</th> </tr> </thead> <!--cuerpo de la tabla empleados--> <tbody style="text-transform: uppercase;"> <?php include '../controller/cEmpleados.php'; $empl = new cEmpleados(); $emples = $empl->listaEmpleados(); while ($em = $emples->NextRow()) { ?> <tr> <td><?php echo $em['nombre']; ?> </td> <td><?php echo $em['apd_paterno']; ?> </td> <td><?php echo $em['apd_materno']; ?> </td>
<?php include_once "../controller/cEmpleados.php"; $emp = new cEmpleados(); $lista = $emp->listaEmpleados(1); ?> <!--botones de accion--> <div class="row"> <div class="col-md-3"> <button class="btn btn-block btn-success" onclick="modalNuevoEmpleado()">Nuevo Empleado</button> </div> </div> <!--tabla con los empleados--> <div class="row"> <div class="col-md-12"> <hr /> <div class="table-responsive"> <table class="table" id="tablaEmpleados"> <thead> <tr> <th>ID</th> <th>Nombre</th> <th>Puesto</th> <th>Salario</th> <th>Acciones</th> </tr> </thead> <tbody> <?php while ($l = $lista->fetch()) { ?>