<?php
 
session_start();
$com = "E";
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 ($_REQUEST['bot']==""){
	echo '<h2>!!! SELECCIONE UN REGISTRO !!!</h2>';
	echo '<meta content="1; url=valeryus70100_PR.php"  HTTP-EQUIV="REFRESH">';
}else{
	if(!isset($_REQUEST['tap2'])){
		include('valeryus70100_CL.php');
		$varible_clase = new clase();
		$res=$varible_clase->lista_busqueda($_REQUEST["bot"]);
		$reg=mysqli_fetch_array($res);
		$_REQUEST['tap2']=$reg['pdescrip'];
		$_REQUEST['n_reg']=$reg['n_reg'];
		$_REQUEST['status']=$reg['status'];
		$_REQUEST['nombre']=$reg['nombre'];
		$_REQUEST['habitacion']=$reg['habitacion'];
		$_REQUEST['num_hab']=$reg['num_hab'];
		$_REQUEST['color']=$reg['color'];
		$_REQUEST['observacion']=$reg['observacion'];
		}
?>

<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="536" border="0" align="center">
    <tr>
      <th colspan="4"><span class="Estilo21">ELIMINAR EXTRAVIO.</span> </th>
    </tr>
    <tr>
      <td width="100"  ><span class="Estilo20">CODIGO</span></td>
      <td width="420" colspan="3" style="#66CCFF"><span class="Estilo19">
        <input name="n_reg" type="text" id="n_reg" tabindex="20" size="15" value="<?php
echo $_REQUEST['n_reg'];?>">
        <input name="bot1" type="button" class="form" onClick="openpage('valeryus70100_EC.php','_self')" value="Eliminar"/>
        <input name="bot4" type="button" class="form" onClick="openpage('valeryus70100_PR.php','_self')" value="Regresar"/>
      </span></td>
    </tr>
  </table>
  <div id="divVent" style="display:">
    <table width="536" border="0" align="center"  >
      <tr>
        <td width="100"  ><span class="Estilo20">STATUS</span></td>
        <td width="420" style="#66CCFF"><label>
          <select name="status">
            <option value="EXTRAVIADO"<?php
if($_REQUEST['status']=="EXTRAVIADO") echo 'selected';?>>EXTRAVIADO</option>
            <option value="ENCONTRADO"<?php
if($_REQUEST['status']=="ENCONTRADO") echo 'selected';?>>ENCONTRADO</option>
            <option value="REGRESADO"<?php
if($_REQUEST['status']=="REGRESADO") echo 'selected';?>>REGRESADO</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td  ><span class="Estilo20">ARTICULO</span></td>
        <td style="#66CCFF"><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  ><span class="Estilo20">NOMBRE</span></td>
        <td style="#66CCFF"><input name="nombre" type="text" id="nombre" size="60" value="<?php
echo $_REQUEST['nombre'];?>"></td>
      </tr>
      <tr>
        <td  ><span class="Estilo20">HABITACION</span></td>
        <td style="#66CCFF"><label>
          <input name="habitacion" type="text" id="habitacion" size="20" value="<?php
echo $_REQUEST['habitacion'];?>">
        </label>
          <label>
          <input name="num_hab" type="text" id="num_hab" size="10" value="<?php
echo $_REQUEST['num_hab'];?>">
        </label></td>
      </tr>
      <tr>
        <td  ><span class="Estilo20">COLOR</span></td>
        <td style="#66CCFF"><input name="color" type="text" id="color" value="<?php
echo $_REQUEST['color'];?>"></td>
      </tr>
      <tr>      </tr>
      <tr>
        <td height="29"  ><span class="Estilo20">OBSERVACIONES</span></td>
        <td height="29" style="#66CCFF"><textarea name="observacion" cols="30" rows="4" id="observacion" tabindex="4"><?php
echo $_REQUEST['observacion'];?>
		</textarea></td>
      </tr>
    </table>
  </div>
  <div id="divArt" style="display:none">
</form>
 <?php
 
}
?>
</body>
</html>
<?php
 mysqli_close($con);?>

</body>
</html>



