<?php
 
session_start();
$com = "C";
include("DMMYSQLG.php");
include("DSA3000.php");
include("DMMYSQLG.php");
include("DF30000.inc");
include("DF80000.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']="";
if ($_REQUEST['bot']==""){
	echo '<h2>!!! SELECCIONE UN REGISTRO !!!</h2>';
	echo '<meta content="1; url=cat_tarifas_PR.php"  HTTP-EQUIV="REFRESH">';
}else{
	
	include('cat_tarifas_CL.php');
	$varible_clase = new clase();
	$res=$varible_clase->lista_busqueda($_REQUEST["bot"]);
	$reg=mysqli_fetch_array($res);
	if(!isset($_REQUEST['gclave'])){
	$_REQUEST['gdescrip']=$reg['gdescrip'];
	$_REQUEST['gclave']=$reg['gclave'];
	$_REQUEST['select']=$reg['cclave'];
	$_REQUEST['gfecini']=chfecha($reg['gfecini'],'Y-m-d','d/m/Y');
	$_REQUEST['gfecfin']=chfecha($reg['gfecfin'],'Y-m-d','d/m/Y');	
	}
?>


   	

<body
<?php
 
if(isset($_POST['bot3'])){
	echo ' onLoad="deshab()"';
}
?>
>
<div id="width_wrapper" align="center">
<form  name="frm1" method="post" action="" enctype="multipart/form-data">
<p>
  <input name="bot" type="hidden" value="<?php
 echo $_POST["bot"]?>">
</p>
<table width="390" align="center">
  <tr>
    <td colspan="5" class="titulo"><div align="center">TARIFAS INDIVIDUALES/PAQUETES</div></td>
  </tr>
  <tr>
    <th width="114"><strong>CLAVE</strong></th>
    <td width="260" style="#A15E8D"><input name="gclave" type="text" id="fclave" size="15"value=" <?php
 echo $_REQUEST['gclave']; ?>" disabled="disabled"></td>
  </tr>
  <tr>
    <th><strong>DESCRIPCION</strong></th>
    <td style="#A15E8D"><input name="gdescrip" type="text" id="gdescrip" size="35" value=" <?php
 echo $_REQUEST['gdescrip']; ?>" disabled="disabled">	</td>
  </tr>
  <tr>
    <th><strong>FECHA INICIAL</strong></th>
    <td style="#A15E8D"><input name="gfecini" type="text" id="gfecini" tabindex="20" onKeyPress="return validar(event)" size="15" disabled="disabled" value=" <?php
 echo $_REQUEST['gfecini']; ?> "></td>
    </tr>
  <tr>
    <th><strong>FECHA TERMINAL</strong></th>
    <td style="#A15E8D"><input name="gfecfin" type="text" id="gfecfin" tabindex="20" onKeyPress="return validar(event)" size="15"  disabled="disabled" value=" <?php
 echo $_REQUEST['gfecfin']; ?> "></td>
  </tr>
  <tr>
    <th><strong>TEMPORADA</strong></th>
    <td style="#A15E8D"><select name="select" disabled="disabled">
      <option value="-----" <?php
 if($_REQUEST['select']=="-----") echo 'selected'; ?> >-----</option>
      <option value="BAJA" <?php
 if($_REQUEST['select']=="BAJA") echo 'selected'; ?> >BAJA</option>
      <option value="ALTA" <?php
 if($_REQUEST['select']=="ALTA") echo 'selected'; ?> >ALTA</option>
    </select></td>
    </tr>
</table>
</form>

  <?php
 
if(isset($_POST['bot3'])){
	echo '<div align="center">
	<form id="form1" name="form1" action="cat_tarifas_PR.php" target="_self">
		<input type="submit" name="submit" value="Regresar" class="bot_WsW">
	</form>
	</div>';
	
}
?>
</div>
</body>
<?php
 
mysqli_close($con);
}
//123-->?>
</html>