<?php
 
session_start();
include("DMMYSQLG.php");

?>
<?php
 
@$sql = mysqli_query($con ,"SELECT * FROM dglineas");
?>

<table width="706"   align="center" cellpadding="0" cellspacing="0">
<?php

echo '<input name="txt_t1" type="hidden" value="'.$_POST['t1'].'">';
if($_POST['r1']=="clave")	{
	echo '<input name="tip_bus" type="hidden" value="clave">';
	@$sql = mysqli_query($con ,"SELECT * FROM dglineas WHERE linea = '".$_POST['t1']."'");
	
}elseif($_POST['r1']=="descripcion"){
	echo '<input name="tip_bus" type="hidden" value="descripcion">';
	@$sql = mysqli_query($con ,"SELECT * FROM dglineas WHERE des_linea like '%".$_POST['t1']."%'");
}
include("DE10000.php");
while($reg = mysqli_fetch_array($sql))
{
	echo "<tr>";
	echo '<td><div align="center"><input name="bot" type="radio" value="'. $reg["linea"].'">&nbsp</div></td>';
	echo '<td><div align="center">' . $reg["linea"] . '&nbsp</div></td>';
	echo '<td><div align="left">'  . $reg["des_linea"] . '&nbsp</div></td>';
	echo '<td><div align="right">' . $reg["cta_con_costo"] . '&nbsp</div></td>';
	echo '<td><div align="right">' . $reg["cta_con_inven"] . '&nbsp</div></td>';
	echo '<td><div align="right">' . $reg["cta_con_vta"] . '&nbsp</div></td>';
	echo '<td><div align="right">' . $reg["cta_dev_vta"] . '&nbsp</div></td>';
	echo '<td><div align="right">' . $reg["cta_des_bon"] . '&nbsp</div></td>';
	echo "</tr>";
}
mysqli_close($con);
?>
</table>
