<?php
 
session_start();
$com = "M";
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'];	
	$_REQUEST['num_pun_per']=$dt_tipcli['num_pun_per'];		
	$_REQUEST['min_per']=$dt_tipcli['min_per'];	
	$_REQUEST['es_rec']=$dt_tipcli['es_rec'];			
}
?>
<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="2"><span class="Estilo2">MODIFICAR TIPO CLIENTE </span></th>
    </tr>
   
    <tr>
      <td style="#FFFFFF">Descripci&oacute;n:</td>
      <td style="#6699CC"><input name="des_tipcli" type="text" id="des_tipcli" size="30" tabindex="1" value="<?php
echo $_REQUEST['des_tipcli'];?>"></td>
    </tr>
    <tr>
      <td style="#FFFFFF">Puntos Personal: </td>
      <td style="#6699CC"><input name="num_pun_per" type="text" id="num_pun_per" size="20" tabindex="2" value="<?php
echo $_REQUEST['num_pun_per'];?>"></td>
    </tr>
    <tr>
      <td style="#FFFFFF"><div align="left">Puntos Grupal:</div></td>
      <td style="#6699CC"><input name="num_pun" type="text" id="num_pun" size="20" tabindex="2" value="<?php
echo $_REQUEST['num_pun'];?>"></td>
    </tr>
    <tr>
      <td style="#FFFFFF">Minimo Personas: </td>
      <td style="#6699CC"><label>
        <input name="min_per" type="text" id="min_per" value="<?php
echo $_REQUEST['min_per'];?>">
      </label></td>
    </tr>
    <tr>
      <td style="#FFFFFF">Recursivo:</td>
      <td style="#6699CC"><label>
        <input name="es_rec" type="radio" value="1"<?php
if($_REQUEST['es_rec']=='1') echo "checked";?>>
      </label>
      Si
      <label>
      <input name="es_rec" type="radio" value="0"<?php
if($_REQUEST['es_rec']=='0') echo "checked";?>>
      </label>
      No</td>
    </tr>
    <tr>
      <td colspan="2"><div align="center" class="inputcodigo">
         
        <input type="button" name="Submit" value="Guardar" onClick="openpage('DG71200_MC.php','_self')" tabindex="3"/>
        &nbsp;&nbsp;&nbsp;
		 
		<input type="button" name="Submit2" value="Regresar" onClick="openpage('DG71200_PR.php','_self')" tabindex="4"/>
		
      </div></td>
    </tr>
  </table>
</form>
</body>
</html>
