//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']; $Cargo = $row['Cargo'];
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>'; } } if (isset($_POST['Recuperar'])) {