Exemplo n.º 1
0
<?php

include_once '../Modelo/M_Delincuente.php';
include_once '../Modelo/MBitacora.php';
$md = new Delincuente();
$bi = new Bitacora();
date_default_timezone_set("America/Asuncion");
$fecha = date("d/m/Y");
$hora = date("h:i:s");
$ac = "Eliminar Grado Policial";
if (isset($_POST['Registrar'])) {
    $datos['CI'] = $_POST['CI'];
    $datos['Nombre'] = $_POST['Nombre'];
    $datos['Alias'] = $_POST['Alias'];
    $datos['Sexo'] = $_POST['cmb_Sexo'];
    $datos['EC'] = $_POST['cmbEstado_Civil'];
    $datos['Fecha'] = $_POST['Fecha'];
    $sx = $md->Insertar_Delincuente($datos);
    header("Location: ../Vista/V_Delincuente.php");
}
if (isset($_POST['Modificar'])) {
    $datos['ID_Delincuente'] = $_POST['ID'];
    $datos['CI'] = $_POST['CI'];
    $datos['Nombre'] = $_POST['Nombre'];
    $datos['Alias'] = $_POST['Alias'];
    $sx = $md->Modificar_Delincuente($datos);
    header("Location: ../Vista/V_Delincuente.php");
}
Exemplo n.º 2
0
    $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/M_Delincuente.php";
$md = new Delincuente();
$sx = $md->Cargar_Delincuentes();
?>

 <h1 style="margin-top: -60px;">DELINCUENTES</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;">ID</th>
                <th style="background:black; color:white; text-align: center;">Nombre</th>
                <th style="background:black; color:white; text-align: center;">CI</th>
                <th style="background:black; color:white; text-align: center;">Alias</th>
                <th style="background:black; color:white; text-align: center;">Sexo</th>
                <th style="background:black; color:white; text-align: center;">Estado Civil</th>
                <th style="background:black; color:white; text-align: center;">Fecha</th>
Exemplo n.º 3
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;
    }
}
if (isset($_REQUEST['ID'])) {
    $ID = $_REQUEST['ID'];
} else {
    header("Location: V_Delincuente.php");
}
require '../header.php';
include_once "../Modelo/M_Delincuente.php";
$md = new Delincuente();
$sx = $md->Elegir_Delincuente($ID);
$Nombre = "";
$Alias = "";
$CI = 0;
while ($row = mysql_fetch_array($sx)) {
    $Nombre = $row['Nombre'];
    $Alias = $row['Alias'];
    $CI = $row['CI'];
}
?>
 <form action="../Controlador/C_Delincuente.php" method="POST">
<div class="container" >
<h2 style="font-size: 40px; color:black; margin-left: 55px; margin-top: 55px;">Modificar Delincuente</h2>
 <section class="content bgcolor-1" style="margin-left: 80px;">
				<span class="input input--nao">
Exemplo n.º 4
0
        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>";
}
?>

 <h1 style="margin-top: -60px;">Prontuarios Delictivos</h1>