%PDF- %PDF-
| Direktori : /home/tjamichg/intranet.tjamich.gob.mx/intranet/sistemas/usuarios/ |
| Current File : /home/tjamichg/intranet.tjamich.gob.mx/intranet/sistemas/usuarios/content_resguardos_baja.php |
<?php
$conf = new Configuracion();
$conf->conectarBD();
$id_usuario = $_SESSION["id_usuario"];
?>
<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">Resguardo de bienes que tiene que entregar, como BAJA </div>
</div>
<div class="portlet-body">
<!-- CAMBIO DE FECHA -->
<form action="page_find_inventario.php" method="get">
<div class="portlet-body">
<div class="row">
<div class="col-md-6">
<div class="col-md-12">
<select disabled class="select2-multi-value form-control" name="resguardante" onchange="">
<!-- <option value="0" <?php //if ($resguardador == '0') {echo 'selected'; $btnresguardador = 'No Asignados';} else {} ?>>Sin Asignar</option> -->
<?php
$consulta12 = "SELECT DISTINCT e.rfc, e.id, a.area, CONCAT(e.nombre, ' ', e.apellido1, ' ', e.apellido2) AS nombree, p.puesto
FROM tjam_empleados e
JOIN inventario_inventario i ON (e.id = i.id_resguardante)
LEFT JOIN tjam_areas a ON (i.id_area = a.id_area)
LEFT JOIN tjam_puestos p ON (e.id_puesto = p.id_puesto)
LEFT JOIN tjam_estatus s ON (e.id_estatus = s.id_estatus)
WHERE e.habilitado = 1 AND e.id = $id_usuario ORDER BY nombree ASC";
$rst12 = $conf->consulta($consulta12);
for ($i = 0; $i < count($rst12); $i++) {
if ($id_usuario == $rst12[$i]['id']) {
echo '<option selected value="' . $rst12[$i]['id'] . '">' . $rst12[$i]['nombree'] . ' - ' . $rst12[$i]['puesto'] . ' - ' . $rst12[$i]['area'] . '</option>';
$btnresguardador = $rst12[$i]['nombree'];
} else {
echo '<option value="' . $rst12[$i]['id'] . '">' . $rst12[$i]['nombree'] . ' - ' . $rst12[$i]['puesto'] . '</option>';
}
}
?>
</select>
</div>
<input type="hidden" name="app" value="1" />
</div>
<div class="col-md-6">
<?php
echo '<a href="../administracion/pdfreporteresguardobaja.php?cap=5000&id_area=0&resguardador='.$id_usuario.'" target="_blank" > <img src="../../common/images/pdf.png" title="Expediente" height="50" width="50" /> </a>';
?>
</div>
</div>
</form>
<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>Estatus</th>
<th>Clave</th>
<th>Articulo</th>
<th>Marca</th>
<th>Modelo</th>
<th>Serie</th>
</tr>
</thead>
<tbody>
<?php
$estatus = array("", "warning", "warning", "primary", "info", "success");
$consulta = "SELECT i.*, e.rfc, e.id, CONCAT(e.nombre, ' ', e.apellido1, ' ', e.apellido2) AS nombree,s.estatus
FROM inventario_inventario i
JOIN tjam_empleados e ON (i.id_resguardante = e.id)
JOIN inventario_estatus s ON (i.estatus = s.letra)
WHERE i.habilitado = 1 AND i.id_resguardante = $id_usuario AND i.estatus = 'A'
ORDER BY i.clave ASC";
$rst1 = $conf->consulta($consulta);
for ($i = 0; $i < count($rst1); $i++) {
$color = $estatus[$rst1[$i]["id_estatus"]];
if ($rst1[$i]["area2"] == '' || $rst1[$i]["area2"] == NULL) {
$area2 = 'N/A';
} else {
$area2 = ''.$rst1[$i]["area2"].'';
}
if ($rst1[$i]["nombree"] == '' || $rst1[$i]["nombree"] == NULL) {
$nombree = 'N/A';
} else {
$nombree = ''.$rst1[$i]["nombree"].'';
}
if ($rst1[$i]["nombreBaja"] == '' || $rst1[$i]["nombreBaja"] == NULL) {
$nombreBaja = 'N/A';
} else {
$nombreBaja = ''.$rst1[$i]["nombreBaja"].'';
}
if ($rst1[$i]["estatus"] == 'Baja') {
$estatus = 'Baja';
$estatusc = 'class="label label-danger"';
}
if ($rst1[$i]["estatus"] == 'Mantenimiento') {
$estatus = 'Mantenimiento';
$estatusc = 'class="label label-warning"';
}
if ($rst1[$i]["estatus"] == 'Activo') {
$estatus = 'Activo';
$estatusc = 'class="label label-success"';
}
if ($rst1[$i]["estatus"] == 'Subasta') {
$estatus = 'Subasta';
$estatusc = 'class="label label-info"';
}
if ($rst1[$i]["estatus"] == 'Prestamo') {
$estatus = 'Prestamo';
$estatusc = 'class="label label-info"';
}
echo "<tr>";
echo '<td><span ' . $estatusc . '>' . $estatus . '</span></td>';
echo "<td>" . $rst1[$i]["clave"] . "</td>";
echo "<td>" . $rst1[$i]["descripcion"] . "</td>";
echo "<td>" . $rst1[$i]["marca"] . "</td>";
echo "<td>" . $rst1[$i]["modelo"] . "</td>";
echo "<td>" . $rst1[$i]["serie"] . "</td>";
echo '</tr>';
}
$conf->desconectarDB();
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>