Пример #1
0
<?php

include dirname(__FILE__) . '\\..\\modelo\\Persona.php';
include dirname(__FILE__) . '\\..\\modelo\\Mapeador.php';
include dirname(__FILE__) . '\\..\\dao\\PersonaDAO.php';
$documento = "";
if (array_key_exists('documento', $_POST)) {
    $documento = $_POST['documento'];
}
$personaDAO = new PersonaDAO();
$persona = new Persona();
$persona = $personaDAO->leerPorDocumento($documento);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Nueva Persona</title>
</head>
<body>
    <form id="form1" name="form1" method="post" action="ctlPersona.php">
        
        <input name="modificar" type="hidden" value="1"/>
        
  <p>&nbsp;</p>
  <table width="383" border="1" cellspacing="1" cellpadding="1">
	<caption>NUEVA PERSONA</caption>
    <tr>
      <td width="76">Documentos</td>
      <td width="294"><input name="persona[documento]" type="text" readonly="yes" id="documentos" value="<?php