Esempio n. 1
0
    //comparamos el tiempo transcurrido
    if ($tiempo_transcurrido >= 600) {
        //si pasaron 10 minutos o más
        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';
require "../Modelo/MDP.php";
$md = new Distrito_Policial();
$sx = $md->Cargar_Distrito_Policial();
?>

 <h1 style="margin-top: -60px;">DISTRITO POLICIAL</h1>
<div class="row" style="margin-top: -90px;">
          <table class="table table-striped table-bordered">
            <thead>
              <tr>
                <th style="background:black; color:white; text-align: center;">Codigo</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>
                <th style="background:black; color:white; text-align: center;">Acciones</th>
              </tr>
            </thead>
            <tbody>
Esempio n. 2
0
$Victima = "Victima";
$Testigo = "Testigo";
$sx = $mtd->Cargar_Tipo_D();
$sy = $mo->Cargar_Oficiales_Inv();
date_default_timezone_set("America/Asuncion");
$fecha = date("d/m/Y");
$hora = date("h:i:s");
while ($row = mysql_fetch_array($sz)) {
    $NC = $row['Estado'];
}
$sdi = $mdi->Cargar_Detalle($NC);
$sa = $mdp->Cargar_Detalle($Denunciante, $NC);
$sb = $mdp->Cargar_Detalle($Imputado, $NC);
$sc = $mdp->Cargar_Detalle($Victima, $NC);
$sd = $mdp->Cargar_Detalle($Testigo, $NC);
$sf = $mp->Cargar_Distrito_Policial();
while ($row = mysql_fetch_array($sf)) {
    $cmdp .= " <option value='" . $row['Nombre'] . "'>" . $row['Nombre'] . "</option>";
}
while ($row = mysql_fetch_array($sx)) {
    $cmtd .= " <option value='" . $row['Nombre'] . "'>" . $row['Nombre'] . "</option>";
}
while ($rw = mysql_fetch_array($sy)) {
    $cmo .= " <option value='" . $rw['CI'] . "'>" . $rw['Cargo'] . " - " . $rw['Nombre'] . "</option>";
}
while ($rw = mysql_fetch_array($sa)) {
    $tdd .= " <tr><td>" . $rw['CI'] . "</td><td>" . $rw['Nombre'] . "</td><td>" . $rw['Domicilio'] . "</td><td>" . $rw['Telefono'] . "</td></tr>";
}
while ($rw = mysql_fetch_array($sb)) {
    $tdi .= " <tr><td>" . $rw['CI'] . "</td><td>" . $rw['Nombre'] . "</td><td>" . $rw['Domicilio'] . "</td><td>" . $rw['Telefono'] . "</td></tr>";
}