%PDF- %PDF-
| Direktori : /home/tjamichg/intranet.tjamich.gob.mx/intranet/ |
| Current File : /home/tjamichg/intranet.tjamich.gob.mx/intranet/content_soporte_tickets.php |
<?php
$conf = new Configuracion();
$conf->conectarBD();
$id_usuario = $_SESSION['id_usuario'];
?>
<div class="page-content">
<a href="page_inicio.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">Historial de tickets </div>
</div>
<div class="portlet-body">
<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>Departamento</th>
<th>Categoria</th>
<th>Ticket</th>
<th>asunto</th>
<th>Fecha registro</th>
<th>Opciones</th>
</tr>
</thead>
<tbody>
<?php
$estatus = array("", "warning", "warning", "primary", "info", "success");
$consulta = "SELECT asunto, mensaje, estatus, CASE WHEN estatus=0 THEN 'Sin Leer' WHEN estatus=1 THEN 'Leido' END AS status, fecha_creacion, fecha_leido, url
FROM notificaciones
WHERE id_empleado_dest = $id_usuario ORDER BY fecha_creacion DESC";
$rst1 = $conf->consulta($consulta);
for ($i = 0; $i < count($rst1); $i++) {
$color = $estatus[$rst1[$i]["estatus"]];
echo "<tr>";
echo "<td>" . ($i + 1) . "</td>";
echo "<td>" . $rst1[$i]["fecha_creacion"] . "</td>";
echo "<td>" . $rst1[$i]["asunto"] . "</td>";
echo "<td>" . $rst1[$i]["mensaje"] . "</td>";
echo "<td>" . $rst1[$i]["status"] . "</td>";
echo "<td>" . $rst1[$i]["fecha_leido"] . "</td>";
echo '<td><a href="' . BASE_URL . $rst1[$i]['url'] . '" class="btn btn-sm btn-blue"><i class="fas fa-eye"></i> Ver</a></td>';
echo '</tr>';
}
$conf->desconectarDB();
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>