Esempio n. 1
0
        // 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/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>
        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/MProntuario_Delictivo.php";
include_once "../Modelo/M_Delincuente.php";
include_once "../Modelo/MOficial.php";
$mpd = new Prontuario_Delictivo();
$mo = new Oficial();
$md = new Delincuente();
$sx = $mpd->Cargar_Prontuarios();
$sy = $mo->Cargar_Oficiales();
$sz = $md->Cargar_Delincuentes();
date_default_timezone_set("America/Asuncion");
$fecha = date("d/m/Y");
$hora = date("h:i:s");
while ($row = mysql_fetch_array($sy)) {
    $cmoficial .= " <option value='" . $row['CI'] . "'>" . $row['Nombre'] . "</option>";
}
while ($row = mysql_fetch_array($sz)) {
    $cmdelincuente .= " <option value='" . $row['ID_Delincuente'] . "'>" . $row['Nombre'] . "</option>";
}
?>

 <h1 style="margin-top: -60px;">Prontuarios Delictivos</h1>
<div class="row" style="margin-top: -200px;">
          <table class="table table-striped table-bordered" style="margin-top: 80px;">