<div align="right" id="formulario" style="display:none;"></div>
<div align="right">

</div>

<div align="center">
  <form name="form1" method="post" action="">
    <p>&nbsp;</p>
    <table  align="center" bordercolor=" " bordercolordark=" ">
      
	  <tr>
        <th colspan="2">CATALOGO DE STATUS DE RECEPCION</th>
      </tr>
      
      <tr>
        <th>BUSQUEDA          </th>
      </tr>
    
      <tr>
        <td colspan="2"><input name="Submit" type="submit" class="bot_WsW" value="Buscar" />
          <img src="magnifier.png" alt="Buscar" onClick="alert('Buscar')" />
        <input name="tbus" type="text" onBlur="may(this)" size="30"/></td>
      </tr>
      <tr>
        <th colspan="2">AGREGAR STATUS </th>
      </tr>
      <tr>
        <td colspan="2"><div align="center">
          <input name="tbus2" type="text" id="tbus" onBlur="may(this)" size="50"
		<?php

			if(isset($_POST['tbus'])){ 
				echo 'value="' . $_POST['tbus'] .  '"';
			}
		?>
		/>
        </div></td>
      </tr>   
    </table>
  </form>

</div>
<form name="frm1" method="post" action="" >

<body>
<div align="center">
<?php
 
	$sql = mysqli_query($con ,"SELECT * FROM recepcion ORDER BY n_reg");
	include("DE10000.php");
	?>
<table width="452" border='1' bordercolor=" " bordercolordark=" ">
      <tr>
        <th colspan="3"> 
          <div align="center">
		  <input name="bot3" type="Submit" class="original"  onClick="openpage('valeryus20510_CO.php','_self')" value="Consultar"/>
          <input name="bot2" type="button" class="bot_WsW" onClick="openpage('valeryus20510_MO.php','_self')" value="Modificar"/>
          <input name="bot1" type="button" class="bot_RjR" onClick="openpage('valeryus20510_EL.php','_self')" value="Eliminar"/>
          <input name="bot4" type="button" class="original" onClick="openpage('valeryus20510_IM.php','_self')" value="Imprimir "/>
          </div>
   		</th></tr>
 <tr>
      <th width="29"  nowrap><div align="center">SEL</div></th>
        <th width="98"  nowrap><div align="center">CODIGO</div></th>
		<th width="303"  nowrap><div align="center">DESCRIPCION</div></th>
    </tr>
	  <?php

	echo '<input name="txt_bus" type="hidden" value="'.$_POST['tbus'].'">';
	if($_POST['r1']=="")
	{
		echo '<input name="tip_bus" type="hidden" value="nombre">';
		@$sql = mysqli_query($con ,"SELECT * FROM recepcion WHERE pdescrip like '%".$_POST['tbus']."%'");
	}
	while($reg = mysqli_fetch_array($sql))
	{
	  	echo "<tr>";
		echo '<td> <div align="center"><input name="bot" type="radio" value="'. $reg["n_reg"].'"></div></td>';
		echo "<td> <div align='center'><h5>" . $reg["n_reg"] . "&nbsp;</h5></div></td>";
		echo "<td> <div align='center'><h5>" . $reg["pdescrip"] . "&nbsp;</h5></div></td>";
		echo "</tr>";
	}
	mysqli_close($con);
	?>
  </table>
</div>
</body>
</form>