$tiempo_transcurrido = strtotime($ahora) - strtotime($fechaGuardada); //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'; include_once "../Modelo/MOficial.php"; $md = new Oficial(); $ID = $_REQUEST['ID']; $sx = $md->Modificar_O($ID); $Nm = ""; $Dc = ""; while ($row = mysql_fetch_array($sx)) { $Nm = $row['Nombre']; } ?> <form action="../Controlador/C_Oficial.php" method="POST"> <div class="container" > <h2 style="font-size: 40px; color:black; margin-left: 55px; margin-top: 80px;">Eliminar Oficial Policial</h2> <section class="content bgcolor-1" style="margin-left: 80px;"> <span class="input input--nao"> <input class="input__field input__field--nao" type="text" id="input-1" name="CI" value="<?php echo "{$ID}";
$ahora = $hora; $tiempo_transcurrido = strtotime($ahora) - strtotime($fechaGuardada); //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; } } include_once '../Modelo/MOficial.php'; $mo = new Oficial(); $sx = $mo->Cargar_Oficiales_R(); while ($rw = mysql_fetch_array($sx)) { $datos .= '["' . $rw['Grado'] . '", ' . $rw['Cantidad'] . '],'; } ?> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>REPORTES CON GRADICOS</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <style type="text/css"> ${demo.css}
} require "../partials/fpdf.php"; require "../Modelo/MDenuncia.php"; require "../Modelo/MOficial.php"; require "../Modelo/MD_Partes.php"; require "../Modelo/MD_Investigador.php"; date_default_timezone_set("America/Asuncion"); $fecha = date("Y/m/d"); $hora = date("h:i:s"); $ID = $_REQUEST['ID']; $Denunciante = "Denunciante"; $Imputado = "Imputado"; $Testigo = "Testigo"; $Victima = "Victima"; $md = new Denuncia(); $mo = new Oficial(); $mdp = new Detalle_Partes(); $mdi = new Detalle_Investigador(); $sx = $md->Cargar_Denuncias($ID); while ($row = mysql_fetch_array($sx)) { $ID_C = $row['ID_D']; $Fecha = $row['FH']; $CI_Servicio = $row['CI_S']; $Tipo = $row['TD']; $CI_Investigador = $row['CI_I']; $Lugar = $row['Lugar']; $Descripcion = $row['Descripcion']; $Estado = $row['Estado']; } $sy = $mo->Modificar_O($CI_Servicio); while ($row = mysql_fetch_array($sy)) {
$tiempo_transcurrido = strtotime($ahora) - strtotime($fechaGuardada); //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'; include_once "../Modelo/MOficial.php"; $md = new Oficial(); $ID = $_REQUEST['ID']; $i = (int) $ID; $sx = $md->Modificar_O($i); $Nm = ""; $Dc = ""; $Tf = 0; $Cr = ""; while ($row = mysql_fetch_array($sx)) { $Nm = $row['Nombre']; $Dc = $row['Direccion']; $Tf = $row['Telefono']; $Cr = $row['Correo']; } ?>
<?php include_once '../Modelo/MD_Investigador.php'; include_once '../Modelo/MBitacora.php'; include_once '../Modelo/MOficial.php'; $mdi = new Detalle_Investigador(); $bi = new Bitacora(); $mo = new Oficial(); if (isset($_POST['cmbIA'])) { $ID = $_POST['cmbIA']; $sa = $mo->Modificar_O($ID); while ($row = mysql_fetch_array($sa)) { $Nombre = $row['Nombre']; $Cargo = $row['Cargo']; } } date_default_timezone_set("America/Asuncion"); $fecha = date("Y/m/d"); $hora = date("h:i:s"); $ac = "Eliminar Grado Policial"; if (isset($_POST['Asignar'])) { $ID_C = $_POST['ID']; $datos['ID_D'] = (int) $_POST['ID']; $datos['CI'] = (int) $ID; $datos['Nombre'] = $Nombre; $datos['Cargo'] = $Cargo; $sx = $mdi->Insertar($datos); header("Location: ../Vista/VD_Investigador.php?ID={$ID_C}"); } if ($_REQUEST['Accion'] == "Eliminar") { $ID = (int) $_REQUEST['ID_C'];
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/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>
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/MTipo_O.php"; date_default_timezone_set("America/Asuncion"); $fecha = date("Y/m/d"); $hora = date("h:i:s"); $CI = $_SESSION['CI']; $mt = new Tipo_Oficial(); $mo = new Oficial(); $sx = $mo->Elegir_Oficial($CI); $sz = $mt->Elegir_Tipo_O(); while ($row = mysql_fetch_array($sx)) { $cs = $mt->Elegir_Tipo_ID($row['Tipo']); while ($r = mysql_fetch_array($cs)) { $nto = $r[0]; } $CI = $row['CI']; $Nombre = $row['Nombre']; $Direccion = $row['Direccion']; $Telefono = $row['Telefono']; $Correo = $row['Correo']; $Sexo = $row['Sexo']; $Estado_Civil = $row['Estado_Civil']; $Procedencia = $row['Procedencia'];
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/MTipo_D.php'; include_once '../Modelo/MD_Partes.php'; include_once '../Modelo/MOficial.php'; include_once '../Modelo/MDenuncia.php'; include_once '../Modelo/MD_Investigador.php'; include_once '../Modelo/MDP.php'; $mtd = new Tipo_Denuncia(); $mo = new Oficial(); $mdp = new Detalle_Partes(); $md = new Denuncia(); $mdi = new Detalle_Investigador(); $mp = new Distrito_Policial(); $CIO = $_SESSION['CI']; $sz = $md->ND(); $Denunciante = "Denunciante"; $Imputado = "Imputado"; $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");
<?php include_once '../Modelo/MOficial.php'; include_once '../Modelo/MBitacora.php'; include_once "../Modelo/MTipo_O.php"; $md = new Oficial(); $bi = new Bitacora(); $mt = new Tipo_Oficial(); date_default_timezone_set("America/Asuncion"); $fecha = date("Y/m/d"); $hora = date("h:i:s"); $ac = "Ingreso Al Sistema"; if (isset($_POST['Ingresar'])) { $datos['CI'] = $_POST['CI']; $datos['Pass'] = $_POST['PW']; $cx = $md->Verificar_Login($datos); $cf = mysql_num_rows($cx); if ($cf > 0) { $sx = $md->Elegir_Oficial($_POST['CI']); while ($row = mysql_fetch_array($sx)) { $CI = $row['CI']; $Nombre = $row['Nombre']; } session_start(); $_SESSION["autentificado"] = "SI"; $_SESSION["ultimoAcceso"] = $hora; $_SESSION["CI"] = $CI; $_SESSION["Nombre"] = $Nombre; header("Location: ../Vista/VOficial.php"); } else { echo '<script language="javascript">alert("Datos Incorrectos Verifique sus Datos"); window.location="../index.html";</script>';
//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'; 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>"; } ?>
<?php include_once '../Modelo/MOficial.php'; include_once '../Modelo/MTipo_O.php'; include_once '../Modelo/MGrado.php'; include_once '../Modelo/MBitacora.php'; $md = new Oficial(); $mt = new Tipo_Oficial(); $mg = new Grado(); $bi = new Bitacora(); date_default_timezone_set("America/Asuncion"); $fecha = date("Y/m/d"); $hora = date("h:i:s"); $ac = "Eliminar Oficial Policial"; if (isset($_POST['Registrar'])) { $ID = $_POST['cmbTipo']; $Nombre = $_POST['cmbGrado']; $datos['CI'] = $_POST['CI']; $datos['Nombre'] = $_POST['Nombre']; $datos['Direccion'] = $_POST['Direccion']; $datos['Correo'] = $_POST['Correo']; $datos['Telefono'] = $_POST['Telefono']; $datos['Sexo'] = $_POST['cmbSexo']; $datos['Estado_Civil'] = $_POST['cmbEst_Civ']; $datos['Procedencia'] = $_POST['Procedencia']; $datos['Cargo'] = $_POST['cmbGrado']; $datos['Tipo'] = $_POST['cmbTipo']; $datos['Pass'] = $_POST['Password']; $datos['Servicio'] = 0; $datos['Estado'] = 1; $sx = $md->Insertar($datos);