Example #1
0
<?php

include_once '../Modelo/MTipo_D.php';
include_once '../Modelo/MBitacora.php';
$md = new Tipo_Denuncia();
$bi = new Bitacora();
date_default_timezone_set("America/Asuncion");
$fecha = date("Y/m/d");
$hora = date("h:i:s");
$ac = "Eliminar Tipo Denuncia";
if (isset($_POST['Registrar'])) {
    $datos['Nombre'] = $_POST['Nombre'];
    $datos['Descripcion'] = $_POST['Descripcion'];
    $datos['Estado'] = 1;
    $sx = $md->Insertar($datos);
    header("Location: ../Vista/VTipo_D.php");
}
if (isset($_POST['Modificar'])) {
    $datos['ID_TD'] = $_POST['ID'];
    $datos['Nombre'] = $_POST['Nombre'];
    $datos['Descripcion'] = $_POST['Descripcion'];
    $sx = $md->Modificar($datos);
    header("Location: ../Vista/VTipo_D.php");
}
if (isset($_POST['Eliminar'])) {
    $datos['ID_TD'] = $_POST['ID'];
    $bt['CI_Oficial'] = 9001961;
    $bt['Fecha'] = $fecha;
    $bt['Hora'] = $hora;
    $bt['Accion'] = $ac;
    $bt['Motivo'] = $_POST['Motivo'];
Example #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';
require "../Modelo/MTipo_D.php";
$md = new Tipo_Denuncia();
$sx = $md->Cargar_Tipo_D();
?>

 <h1 style="margin-top: -60px;">TIPO DE DENUNCIA</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;">Descripcion</th>
                <th style="background:black; color:white; text-align: center;">Acciones</th>
              </tr>
            </thead>
            <tbody>
Example #3
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';
require "../Modelo/MTipo_D.php";
$md = new Tipo_Denuncia();
$ID = $_REQUEST['ID'];
$sx = $md->Modificar_Tipo_D($ID);
$Nm = "";
$Dc = "";
while ($row = mysql_fetch_array($sx)) {
    $Nm = $row['Nombre'];
    $Dc = $row['Descripcion'];
}
?>
 <form action="../Controlador/CTipo_D.php" method="POST">
<div class="container" >
<h2 style="font-size: 40px; color:black; margin-left: 55px; margin-top: 80px;">Modificar Tipo de Denuncia</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="ID" value="<?php