<?php
 
session_start();
$com = "M";
include("DMMYSQLG.php");
include("DSA3000.php");
include("DMMYSQLG.php");
require_once("DFJQUERY.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 (isset($_REQUEST['bot'])&&$_REQUEST['bot']==""){
	echo '<h2><div align="center">!!! SELECCIONE UN REGISTRO !!!</div></h2>';
	echo '<meta content="1; url=cat_plan_PR.php"  HTTP-EQUIV="REFRESH">';
}else{
	if(!isset($_REQUEST['tap2'])){
		include('cat_plan_CL.php');
		$varible_clase = new clase();
                $varb=(isset($_REQUEST["bot"]))?$_REQUEST["bot"]:"";
		$res=$varible_clase->lista_busqueda($varb);
		$reg=mysqli_fetch_array($res);
		$_REQUEST['tap2']=$reg['pdescrip'];
		$_REQUEST['n_reg']=$reg['n_reg'];
		if(!isset($reg['ctosmes']))$reg['ctosmes']="";
		$_REQUEST['ctosmes']=$reg['ctosmes'];
		if(!isset($reg['ctosdia']))$reg['ctosdia']="";
		$_REQUEST['ctosdia']=$reg['ctosdia'];
		if(!isset($reg['ctosano']))$reg['ctosano']="";
		$_REQUEST['ctosano']=$reg['ctosano'];
		if(!isset($reg['ingdia']))$reg['ingdia']="";
		$_REQUEST['ingdia']=$reg['ingdia'];
		if(!isset($reg['ingmes']))$reg['ingmes']="";
		$_REQUEST['ingmes']=$reg['ingmes'];
		if(!isset($reg['ingano']))$reg['ingano']="";
		$_REQUEST['ingano']=$reg['ingano'];
		if(!isset($reg['paxdia']))$reg['paxdia']="";
		$_REQUEST['paxdia']=$reg['paxdia'];
		if(!isset($reg['paxmes']))$reg['paxmes']="";
		$_REQUEST['paxmes']=$reg['paxmes'];
		if(!isset($reg['paxano']))$reg['paxano']="";
		$_REQUEST['paxano']=$reg['paxano'];
		if(!isset($reg['stipodaily']))$reg['stipodaily']="";
		$_REQUEST['stipodaily']=$reg['stipodaily'];
		}
?>
<style type="text/css">
<!--
.Estilo19 {font-size: 16px}
-->
</style>
<script language="javascript">
function ocultaMuestra(divVent){
	if(divVent.style.display=='none'){
		divVent.style.display='';

	}else{
		divVent.style.display='none';

	}
}	
	</script>
<body>
  

<form name="frm1" method="post" action="" enctype="multipart/form-data">
  <p>
    <input name="bot" type="hidden" value="<?php
 echo $_REQUEST['bot'];?>"> 
  </p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <table width="431" align="center">
    <tr>
      <th colspan="4">MODIFICAR PLAN</th>
    </tr>
    <tr>
      <th width="85"><strong>CODIGO</strong></th>
      <td width="330" colspan="3" style="#A15E8D"><span class="Estilo19">
        <input name="tclave" type="text" id="tclave" tabindex="20" size="15" value="<?php
 echo $_REQUEST['n_reg'];?>">
      </span></td>
    </tr>
  </table>
  <div id="divVent" style="display:">
    <table width="431" align="center"  >
      <tr>
        <th width="85"><strong>DESCRIPCION</strong></th>
        <td width="330" style="#a15e8d"><label>
        <input name="tap2" id="tap2" type="text" tabindex="2" value="<?php
 echo $_REQUEST['tap2'];?>"
		  onBlur="may(this)" size="50"
		 <?php
 
		if(isset($_REQUEST['bot'])){
		echo 'value="'.$reg['pdescrip'].'"';
		}
		?>>
        </label></td>
      </tr>
      <tr>
        <td height="29" colspan="2"  >
          <div align="center">
            <input name="bot1" type="button" class="original" onClick="openpage('cat_plan_MC.php','_self')" value="Modificar"/>
            <input name="bot4" type="button" class="bot_WsW" onClick="openpage('cat_plan_PR.php','_self')" value="Regresar"/>
        </div></td>
      </tr>
    </table>
  </div>
  <div id="divArt" style="display:none">
</form>
    <?php
 
if(isset($_POST['bot3'])){
	echo '<div align="center"
<?php
 mysqli_close($con);?>>
	<form id="form1" name="form1" action="cat_plan_PR.php" target="_self">
		<input type="submit" name="submit" value="Regresar">
	</form>
	</div>';
	
}
?>
 <?php
 
}
?>
</body>
</html>
<?php
 mysqli_close($con);?>

</body>
</html>



