<?php
 
session_start();
$com = "E";
include("DMMYSQLG.php");
include("DSA3000.php");
include("JQUERY.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_cuartos_PR.php"  HTTP-EQUIV="REFRESH">';
}else{
?>
  
<body>
<form name="frm1" method="post" action="">
  <table width="542" border='1' align="center">
    <tr>
        <th width="55"><div align="center">CLAVE</div></th>
        <th width="222"><div align="center">DESCRIPCION</div></th>
        
        <th width="143">TOTAL DE CUARTOS. </th>
        <th width="94">COLOR.</th>
    </tr>
    <tr>
	<?php

	include('cat_cuartos_CL.php');
	$varible_clase = new clase();
	$varible_clase->cve_dep=$_POST["bot"];
	$res=$varible_clase->lista_busqueda($_POST["bot"]);
	$reg=mysqli_fetch_array($res);
		echo "<td> <div align='center'>" . $reg["clavetp"] . "&nbsp;</div></td>";
		echo "<td> <div align='center'>" . $reg["descripcion"] . "&nbsp;</div></td>";
		echo "<td> <div align='center'>" . $reg["totalcuartos"] . "&nbsp;</div></td>";
		echo "<td> <div align='center'>" . $reg["color"] . "&nbsp;</div></td>";
	mysqli_close($con);
	?>
    </tr>
  </table>
  <input name="bot" type="hidden" value="<?php
 echo $_REQUEST['bot'] ?>"/>
  <div align="center">
	<input type="button" name="Submit" value="Eliminar" onClick="openpage('cat_cuartos_EC.php','_self')" class="bot_RjR">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="button" name="Submit2" value="Regresar" onClick="openpage('cat_cuartos_PR.php','_self')" class="bot_WsW">
  </div>
</form>
</body>
<?php
 }?>
</html>