<?php
 
session_start();
$com = "A";
include("DMMYSQLG.php");
include("DSA3000.php");
include("DMMYSQLG.php");
include("DFJQUERY.inc");
include("DF30000.inc");
?>
<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>

<?php
   
$sql=mysqli_query($con ,"select * from valeryus19 where n_reg='".$_REQUEST['bot']."'");
$ddd=mysqli_fetch_array($sql);    
?>
<DIV STYLE="position:absolute; top:-20px; left:0px">
<img src="img/sihteolsd.gif"/>
</DIV>  
<body>

<form  name="frm1" id="frm1" method="post" action="">
 <p>
   <?php

if (isset($_POST['Submit2'])){
	$sql = mysqli_query($con ,"UPDATE valeryus19 SET fnumadulx='".$_POST['fnumadulx']."', fnummenorx='".$_POST['fnummenorx']."', ftarifaxa='".$_POST['ftarifaxa']."', ftarifaxm='".$_POST['ftarifaxm']."', fmonadu='".$_POST['fmonadu']."', fmonmen='".$_POST['fmonmen']."' where n_reg = '".$_REQUEST['bot']."'");
	echo '<script languaje="javascript">window.close();</script>';
}
?>  
 </p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <table width="609" border="0" align="center">
    <tr>
      <th colspan="5" class=\"titulo\"><div align="center">AGREGAR PAX EXTRAS AL FOLIO: <?php
 echo $_REQUEST['bot'];?></div></th>
    </tr>
	<tr>
      <td width="185"  ><span class="Estilo20">NUMERO DE ADULTOS: </span></td>
      <td width="53" style="#66CCFF"><label>
		<input name="fnumadulx" type="text" id="fnumadulx" onBlur="may(this)" size="5" value="<?php
 echo $ddd['fnumadulx'];?>"/>
      </label></td>
      <td width="105"  ><span class="Estilo20">TARIFA:</span></td>
	  <td width="169" style="#66CCFF"><label>
		<select name="ftarifaxa" id="ftarifaxa" tabindex="11">
          <option value=""><?php
 echo $ddd['ftarifaxa'];?></option>
          <?php
 
@$sql = mysqli_query($con ,"SELECT * FROM ftarifas");
while(@$reg=mysqli_fetch_array($sql)){
	if($_POST['ftarifaxa']==$reg['gdescrip'] ){
		echo '<option value="' . $reg['gdescrip'] . '" selected>' . $reg['gdescrip'] . '</option>';
	}else{
		echo '<option value="' . $reg['gdescrip'] . '">' . $reg['gdescrip'] . '</option>';
	}
}
?>
        </select>
	  </label></td>
	  <td width="75" style="#66CCFF"><label>
		<input name="fmonadu" type="text" id="fmonadu"
	  onBlur="may(this)" size="6" value="<?php
 echo $ddd['fmonadu'];?>"/>
	  </label></td>
    </tr>
    <tr>
      <td  ><span class="Estilo20">NUMERO DE MENORES: </span></td>
	  <td style="#66CCFF"><label>
		<input name="fnummenorx" type="text" id="fnummenorx"
	  onBlur="may(this)" size="5" value="<?php
 echo $ddd['fnummenorx'];?>"/>
	  </label></td>
	  <td  ><span class="Estilo20">TARIFA:</span></td>
      <td style="#66CCFF"><label>
        <select name="ftarifaxm" id="ftarifaxm" tabindex="11">
          <option value=""><?php
 echo $ddd['ftarifaxm'];?></option>
          <?php
 
@$sql = mysqli_query($con ,"SELECT * FROM ftarifas");
while(@$reg=mysqli_fetch_array($sql)){
	if($_POST['ftarifaxm']==$reg['gdescrip'] ){
		echo '<option value="' . $reg['gdescrip'] . '" selected>' . $reg['gdescrip'] . '</option>';
	}else{
		echo '<option value="' . $reg['gdescrip'] . '">' . $reg['gdescrip'] . '</option>';
	}
}
?>
        </select>
      </label></td>
      <td style="#66CCFF"><label>
		<input name="fmonmen" type="text" id="fmonmen"
	  onBlur="may(this)" size="6" value="<?php
 echo $ddd['fmonmen'];?>"/>
      </label></td>
    </tr>
	<tr>
      <td colspan="5"><div align="center">
        <input name="Submit2" type="submit" value="Guardar"/>
      </div></td>
    </tr>
  </table>
</form>
</body>
</html>

<?php
 mysqli_close($con);
//932--->700 ultima actualizacion 29/abril/2011
//echo '<script languaje="javascript">window.close();<//script>';
	//	mysqli_close();
		//exit();
?>
