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}"; ?> " />
//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']; } ?> <form action="../Controlador/C_Oficial.php" method="POST"> <div class="container" > <h2 style="font-size: 40px; color:black; margin-left: 55px; margin-top: 55px;">Modificar Oficial Policial</h2>
<?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'];
$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)) { $Nombre_Serv = $row['Nombre']; } $sz = $mo->Modificar_O($CI_Investigador); while ($row = mysql_fetch_array($sz)) { $Nombre_Inv = $row['Nombre']; } $sa = $mdp->Cargar_Detalle($Denunciante, $ID); $sb = $mdp->Cargar_Detalle($Imputado, $ID); $sc = $mdp->Cargar_Detalle($Victima, $ID); $sd = $mdp->Cargar_Detalle($Testigo, $ID); $sf = $mdi->Cargar_Detalle($ID); class PDF extends FPDF { function Header()
<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;">Delincuente</th> <th style="background:black; color:white; text-align: center;">CI Oficial</th> <th style="background:black; color:white; text-align: center;">Nombre Oficial</th> <th style="background:black; color:white; text-align: center;">Fecha</th> <th style="background:black; color:white; text-align: center;">Acciones</th> </tr> </thead> <tbody> <?php while ($row = mysql_fetch_array($sx)) { $ca = $md->Elegir_Delincuente($row['ID_D']); $co = $mo->Modificar_O($row['ID_O']); while ($ra = mysql_fetch_array($ca)) { $Alias_D = $ra[3]; } while ($ro = mysql_fetch_array($co)) { $Nombre_O = $ro[0]; } ?> <?php echo '<tr>'; ?> <?php echo '<td style="text-align:center;">' . $row['ID_D'] . '</td>'; ?> <?php