<?php
 
session_start();
$com = "M";
include("DMMYSQLG.php");
include("DSA3000.php");
include("DMMYSQLG.php");
?>

<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>
<body
<?php
 
if(isset($_POST['bot3'])){
	echo ' onLoad="deshab()"';
}
?>
>
<?php

if ($_POST['bot']==""){
	echo '<h2>!!! SELECCIONA UN REGISTRO... ACTUALIZANDO !!!</h2>';
	echo '<meta content="10; url=CA50000_PR.php"  HTTP-EQUIV="REFRESH">';
}else{
	
	include('CA50000_CL.php');
	$varible_clase = new clase();
	$res=$varible_clase->lista_busqueda($_POST["bot"]);
	$reg=mysqli_fetch_array($res);
?>
<form name="frm1" method="post" action="">
<input name="bot" type="hidden" value="<?php
 echo $_POST['bot'];?>">
  <table width="303"  align="center">
    <tr>
      <th colspan="2">PERSONAL</th>
    </tr>
    <tr>
      <td width="80" style="#FFFFFF"><div align="left">ID:</div></td>
      <td width="207" style="#6699CC"> 
      <input name="id" type="text" id="id" size="15"
		<?php
 
		if(isset($_POST['bot'])){
		echo 'value="'.$reg['id_catprom'].'"';
		}
		?>
		>      </td>
    </tr>
	
    <tr>
      <td width="80" style="#FFFFFF"><div align="left">Nombre</div></td>
      <td width="207" style="#6699CC"> 
      <input name="nom" type="text" id="nom" size="35"
		<?php
 
		if(isset($_POST['bot'])){
		echo 'value="'.$reg['nom'].'"';
		}
		?>
		>      </td>
    </tr>
    <tr>
      <td width="80" style="#FFFFFF"><div align="left">Apellido Paterno </div></td>
      <td width="207" style="#6699CC"> 
      <input name="ape_pat" type="text" id="ape_pat" size="35"
		<?php
 
		if(isset($_POST['bot'])){
		echo 'value="'.$reg['ape_pat'].'"';
		}
		?>
		>      </td>
    </tr>
    <tr>
      <td width="80" style="#FFFFFF"><div align="left">Apellido Materno </div></td>
      <td width="207" style="#6699CC"><input name="ape_mat" type="text" id="ape_mat" size="35"
		<?php
 
		if(isset($_POST['bot'])){
		echo 'value="'.$reg['ape_mat'].'"';
		}
		?>
		></td>
    </tr>
	<tr>
      <td width="80" style="#FFFFFF"><div align="left">RFC</div></td>
      <td width="207" style="#6699CC"><input name="rfc" type="text" id="rfc" size="35"
		<?php
 
		if(isset($_POST['bot'])){
		echo 'value="'.$reg['rfc'].'"';
		}
		?>
		></td>
    </tr>
   
	<td style="#FFFFFF">Domicilio:</td>
      <td style="#6699CC"><label>
        <input name="dom" type="text" id="dom" size="50" value="<?php
 echo $reg['dom']?>">
      </label></td>
    </tr>
    <tr>
      <td style="#FFFFFF">pais</td>
      <td style="#6699CC"><label>
        <input name="pais" type="text" id="pais" size="50" value="<?php
 echo $reg['id_paises']?>">
      </label></td>
    </tr>
    <tr>
      <td style="#FFFFFF">Estado:</td>
      <td style="#6699CC"><label>
        <input name="id_estado" type="text" id="edo" size="50" value="<?php
 echo $reg['id_estado']?>">
      </label></td>
    </tr>
    <tr>
      <td style="#FFFFFF">Del/Mun:</td>
      <td style="#6699CC"><label>
        <input name="del_mun" type="text" id="del_mun" size="50" value="<?php
 echo $reg['id_delmun']?>">
      </label></td>
    </tr>
	<tr>
      <td style="#FFFFFF">Colonia:</td>
      <td style="#6699CC"><label>
        <input name="col" type="text" id="col" value="<?php
 echo $reg['col']?>">
      </label></td>
    <tr>
    <tr>
      <td style="#FFFFFF">cod_pos: </td>
      <td style="#6699CC"><label>
        <input name="cod_pos" type="text" id="cod_pos" value="<?php
 echo $reg['cod_pos']?>">
      </label></td>
    <tr>
      <td style="#FFFFFF">Telefono</td>
      <td style="#6699CC"><label>
	  <input name="tel" type="text" id="tel" value="<?php
 echo $reg['tel']?>">
      </label></td>
    </tr>
	<tr>
      <td style="#FFFFFF">otr_tel </td>
      <td style="#6699CC"><label>
	  <input name="otr_tel" type="text" id="otr_tel" value="<?php
 echo $reg['otr_tel']?>">
      </label></td>
    </tr>
	<tr>
      <td style="#FFFFFF">E-mail</td>
      <td style="#6699CC"><label>
	  <input name="e_mail" type="text" id="e_mail" value="<?php
 echo $reg['e_mail']?>">
      </label></td>
    </tr>
	<tr>
      <td style="#FFFFFF">Zona de Atencion </td>
      <td style="#6699CC"><label>
	  <input name="zon_ate" type="text" id="zon_ate" value="<?php
 echo $reg['zon_ate']?>" size="50">
      </label></td>
    </tr>
	<tr>
      <td style="#FFFFFF">Domicilio del Despacho </td>
      <td style="#6699CC"><label>
	  <input name="dom_des" type="text" id="dom_des" value="<?php
 echo $reg['dom_des']?>" size="50">
      </label></td>
    </tr>
	
   
    <tr>
      <td colspan="2"><div align="center" class="inputcodigo">
         
        <input type="button" name="Submit" value="Modificar" onClick="cargapag('CA50000_MC.php','_self')"/>
        <input type="button" name="Submit2" value="Regresar" onClick="cargapag('CA50000_PR.php','_self')"/>
		
      </div></td>
    </tr>
  </table>
<br>
</form>
     <?php
 

}
?>
</body>
</html>