<?php
 
session_start();
$com = "M";
include("DMMYSQLG.php");
include("DSA3000.php");
include("DMMYSQLG.php");
include("DF30000.inc");
?>
<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>
<?php

if ($_POST['bot']==""){
	echo '<h2>!!! SELECCIONA UN REGISTRO... ACTUALIZANDO !!!</h2>';
	echo '<meta content="1; url=DN21000_PR5.php"  HTTP-EQUIV="REFRESH">';
}else{
	include('DN21000_CL5.php');
	$varible_clase = new clase();
	$res=$varible_clase->lista_busqueda($_POST["bot"]);
	$row=mysqli_fetch_array($res);
?>
<body
<?php
 
if(isset($_POST['bot3'])){
	echo ' onLoad="deshab()"';
}
?>
>
<form  name="frm1" method="post" action="">
<input name="bot" type="hidden" value="<?php
 echo $_POST["bot"]?>">
<table width="400"  align="center">
    <tr>
      <th colspan="4" class=\"titulo\"><div align="center">REFERENCIAS PERSONALES </div></th>
    </tr>
	  <tr>
        <td width="80">Nombre</td>
        <td width="304"> 
        <input name="t1" type="text" id="t1" size="45"
		<?php
 
		echo 'value="'.$row['nom'].'"';
		?>
		>
        </td>
    </tr>
    <tr>
      <td width="80">Domicilio</td>
      <td width="304"> 
      <input name="t2" type="text" id="t2" size="45"
		<?php
 
		echo 'value="'.$row['dom'].'"';
		?>
		>
      </td>
    </tr>
    <tr>
      <td width="80">Telefono</td>
      <td width="304"> 
      <input name="t3" type="text" id="t3" size="15" onKeyPress="return validar(event)"
		<?php
 
		echo 'value="'.$row['tel'].'"';
		?>
		>
      </td>
    </tr>
    <tr>
      <td width="80">rec_ocupacion</td>
      <td width="304"> 
      <input name="t4" type="text" id="t4" size="45"
		<?php
 
		echo 'value="'.$row['rec_ocupacion'].'"';
		?>
		>
      </td>
    </tr>
    <tr>
      <td width="80">Tiempo de Conocerlo </td>
      <td width="304"> 
      <input name="t5" type="text" id="t5" onKeyPress="return validar(event)" size="3" maxlength="2"
		<?php
 
		echo 'value="'.$row['tiempo'].'"';
		?>
		>
      <select name="s1" id="s1">
		<?php

			if($row['mes_axo']=="M"){
			  echo '<option value="M" selected>Meses</option>';
			}else{
			  echo '<option value="M">Meses</option>';
			}
			if($row['mes_axo']=="A"){
			  echo '<option value="A" selected>A&ntilde;os</option>';
			}else{
			  echo '<option value="A">A&ntilde;os</option>';
			}
		?>
      </select>
      </td>
    </tr>
</table>
<table width="400"  align="center">
    <tr>
      <td colspan="2"><div align="center">
		  <input type="button" name="Submit2" value="Modificar" onClick="openpage('DN21000_MC5.php','_self')"/>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" name="Submit2" value="Regresar" onClick="openpage('DN21000_PR5.php','_self')"/>
      </div></td>
    </tr>
  </table>
</form>
     <?php
 
if(isset($_POST['bot3'])){
	echo '<div align="center">
	<form id="form1" name="form1" action="DN21000_PR5.php" target="_self">
		<input type="submit" name="submit" value="Regresar">
	</form>
	</div>';
	
}
?>
 </body>
<?php
 
mysqli_close($con);
}
?>
</html>