%PDF- %PDF-
Direktori : /home/tjamichg/intranet.tjamich.gob.mx/intranet/sistemas/administracion/ |
Current File : /home/tjamichg/intranet.tjamich.gob.mx/intranet/sistemas/administracion/content_find_personal.php |
<?php $conf = new Configuracion(); $conf->conectarBD(); ?> <div class="page-content"> <a href="../../page_home.php" class="btn btn-pink">Regresar <i class="fa fa-mail-reply"></i></a> <div class="row"> <div class="col-md-13"> <div id="generalTabContent" class="tab-content"> <div id="tab-messages" class="tab-pane fade in active"> <div class="portlet box"> <div class="portlet-header"> <div class="caption">Lista del personal del TJAM </div> </div> <div class="portlet-body"> <?php if(1==1){ echo '<div class="panel-body"> <div class="demo-btn"> <div class="row mbm center"> <a href="page_add_personal.php?app=2" class="btn btn-success">Agregar Empleado <i class="fa fa-plus"></i></a><br><br>'; } ?> <div class="row mbm"> <div class="col-lg-12"> <div class="table-responsive"> <table id="table_id" style="border-bottom:1px solid #ddd" class="table table-striped table-bordered table-hover"> <thead> <tr> <th>#</th> <th>No. Emp.</th> <th>Nombre Completo</th> <th>Tel / Celular</th> <th>Departamento</th> <th>Estatus RH</th> <th>Rol</th> <th>Opciones</th> </tr> </thead> <tbody> <?php $estatus = array("","warning","warning","primary","info","success"); $consulta = "SELECT e.rfc, e.num_empleado, e.id, a.area, CONCAT(e.nombre, ' ', e.apellido1, ' ', e.apellido2) AS nombre, p.puesto, e.celular, s.estatus, e.id_estatus, r.rol FROM tjam_empleados e JOIN tjam_areas a ON (e.id_area = a.id_area) JOIN tjam_puestos p ON (e.id_puesto = p.id_puesto) JOIN tjam_estatus s ON (e.id_estatus = s.id_estatus) JOIN tjam_roles r ON (e.id_rol = r.id_rol) WHERE e.id != -1 AND e.habilitado = 1 ORDER BY CAST(e.num_empleado as UNSIGNED)"; $rst1 = $conf->consulta($consulta); for($i = 0; $i < count($rst1); $i++) { $color = $estatus[$rst1[$i]["id_estatus"]]; echo "<tr>"; echo "<td>".($i+1)."</td>"; echo "<td>".$rst1[$i]["num_empleado"]."</td>"; echo "<td>".$rst1[$i]["nombre"]."</td>"; echo "<td>".$rst1[$i]["celular"]."</td>"; echo "<td>".$rst1[$i]["area"]."</td>"; echo "<td>".$rst1[$i]["estatus"]."</td>"; echo "<td>".$rst1[$i]["rol"]."</td>"; /*$rfc = $rst1[$i]["rfc"]; $cus = "SELECT s.estatus FROM tjam_empleados e JOIN tjam_estatus s ON (e.id_estatus = s.id_estatus) WHERE e.rfc = '$rfc'"; $rst1cu = $conf->consulta($cus); if(count($rst1cu) > 0) $activo = $rst1cu[0]["estatus"]; else $activo = "Sin cuenta"; echo "<td>".$activo."</td>";*/ echo '<td><div class="btn-group"> <button data-toggle="dropdown" class="btn btn-sm dropdown-toggle btn-blue"> <i class="fa fa-cog"></i> Opciones <span class="caret"></span> </button> <ul class="dropdown-menu pull-right">'; echo '<li><a href="page_edit_personal.php?id_personal='.$rst1[$i]['id'].'&app=2"> <i class="fa fa-edit mrs"></i><span class="divider-text"></span>Editar</a></li>'; echo '</ul> </div> </td>'; echo '</tr>'; } $conf->desconectarDB(); ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div>