//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/MOficial.php"; include_once "../Modelo/MGrado.php"; include_once "../Modelo/MTipo_O.php"; $mg = new Grado(); $mt = new Tipo_Oficial(); $md = new Oficial(); $sx = $md->Cargar_Oficiales(); $sy = $mg->Elegir_Grado(); $sz = $mt->Elegir_Tipo_O(); while ($row = mysql_fetch_array($sy)) { $cmgrado .= " <option value='" . $row['Nombre'] . "'>" . $row['Nombre'] . "</option>"; } while ($row = mysql_fetch_array($sz)) { $cmtipo .= " <option value='" . $row['ID_Tipo_O'] . "'>" . $row['Nombre'] . "</option>"; } ?> <h1 style="margin-top: -60px;">OFICIALES 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;">CI</th> <th style="background:black; color:white; text-align: center;">Nombre</th>