Пример #1
0
        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_Agentes.php");
}
include '../header.php';
include_once "../Modelo/MAgente.php";
$ma = new Agente();
$sx = $ma->Elegir_Agente($ID);
$Nm = "";
$Dc = "";
while ($row = mysql_fetch_array($sx)) {
    $Nm = $row['Nombre'];
}
?>
 <form action="../Controlador/C_Agente.php" method="POST">
<div class="container" >
<h2 style="font-size: 40px; color:black; margin-left: 55px; margin-top: 80px;">Eliminar Agente 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}";
?>
" />
Пример #2
0
        //sino, actualizo la fecha de la sesión
    } else {
        $_SESSION["ultimoAcceso"] = $ahora;
    }
}
if (isset($_REQUEST['ID'])) {
    $ID = $_REQUEST['ID'];
} else {
    header("Location: V_Agentes.php");
}
require '../header.php';
include_once "../Modelo/MAgente.php";
$ma = new Agente();
$ID = $_REQUEST['ID'];
$i = (int) $ID;
$sx = $ma->Elegir_Agente($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_Agente.php" method="POST">
<div class="container" >
<h2 style="font-size: 40px; color:black; margin-left: 55px; margin-top: 55px;">Modificar Agente Policial</h2>