예제 #1
0
        session_destroy();
        // destruyo la sesión
        header("Location: ../index.html");
        //envío al usuario a la pag. de autenticación
        //sino, actualizo la fecha de la sesión
    } else {
        $_SESSION["ultimoAcceso"] = $ahora;
    }
}
require '../header.php';
include_once "../Modelo/MAgente.php";
include_once "../Modelo/MGrado.php";
$mg = new Grado();
$ma = new Agente();
$sx = $ma->Cargar_Agentes();
$sy = $mg->Elegir_Grado();
while ($row = mysql_fetch_array($sy)) {
    $cmgrado .= " <option value='" . $row['Nombre'] . "'>" . $row['Nombre'] . "</option>";
}
?>

 <h1 style="margin-top: -60px;">AGENTES POLICIALES</h1>
<div class="row" style="margin-top: -200px;">
          <table class="table table-striped table-bordered" style="margin-top: 80px;">
            <thead>
              <tr>
                <th style="background:black; color:white; text-align: center;">ID</th>
                <th style="background:black; color:white; text-align: center;">CI</th>
                <th style="background:black; color:white; text-align: center;">Nombre</th>
                <th style="background:black; color:white; text-align: center;">Direccion</th>
                <th style="background:black; color:white; text-align: center;">Telefono</th>