<?php
 
session_start();
$com = "C";
include("DMMYSQLG.php");
include("DSA3000.php");
include("DMMYSQLG.php");
include("DF30000.inc");

if(!isset($_POST['bot'])){
	echo '<h2>!!! SELECCIONA UN REGISTRO... ACTUALIZANDO !!!</h2>';
	echo '<meta content="1; url=DG71200_PR.php"  HTTP-EQUIV="REFRESH">';
	exit();
}
if(!isset($_POST['des_tipcli'])){
	include('DG71200_CL.php');
	$data['idTipCli']=$_POST['bot'];
	$tipoCliente = new TipCli($data);
	$dt_tipcli=mysqli_fetch_array($tipoCliente->busReg());
	$_REQUEST['des_tipcli']=$dt_tipcli['des_tipcli'];
	$_REQUEST['num_pun']=$dt_tipcli['num_pun'];	
}
?>
<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>


<body>
<?php
 
$ayuda = 'DP16000_AG.php';
include("DYAYUDA.php");
?>

<form name="frm1" id="frm1" method="post" action="">
<input type="hidden" name="bot" id="bot" value="<?php
echo $_POST['bot'];?>">
  <table   align="center">
    <tr>
      <th colspan="4"><span class="Estilo2">CONSULTAR TIPO CLIENTE </span></th>
    </tr>
   
    <tr>
      <td style="#FFFFFF"><div align="left">Descripci&oacute;n:</div></td>
      <td style="#6699CC"><input name="des_tipcli" type="text" id="des_tipcli" size="30" tabindex="1" value="<?php
echo $_REQUEST['des_tipcli'];?>" readonly></td>
      <td>Puntos Necesarios:</td>
      <td style="#6699CC"><input name="num_pun" type="text" id="num_pun" size="20" tabindex="2" value="<?php
echo $_REQUEST['num_pun'];?>" readonly></td>
    </tr>
    <tr>
      <td colspan="4"><div align="center" class="inputcodigo">
        <input type="button" name="Submit2" value="Regresar" onClick="openpage('DG71200_PR.php','_self')" tabindex="4"/>
		
      </div></td>
    </tr>
  </table>
</form>
</body>
</html>
