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

?>
<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>
<body>
<?php
 
$ayuda = 'DV1800A_PR.php';
include("DYAYUDA.php");
?>

<div align="center"><form name="frm1" id="frm1" method="post" action="" >
  <table width="705" border='1'>
      <tr>
        <th colspan="10"> <div align="left">
          <input type="button" name="Submit6" value="Agregar" onClick="openpage('DV18000_AG.php','_self')"/>
          <input type="Submit" name="bot3" value="Consultar"  onClick="openpage('DV18000_MO.php','_self')"/>
          <input type="button" name="bot2" value="Modificar" onClick="openpage('DV18000_MO.php','_self')"/>
          <input type="button" name="bot1" value="Eliminar" onClick=
"openpage('DV18000_EL.php','_self')"/>
          <input type="button" name="bot4" value="Imprimir " onClick="openpage('DV18000_IM.php','_self')"/>
        </div></th>
      </tr>
      <tr>
        <th colspan="10">Parametros Generales </th>
      </tr>
      <tr>
        <th><div align="center">Sel</div></th>
        <th><div align="center">Clave</div></th>
        <th><div align="center">Cve / Mto / Cli</div></th>
		<th><div align="center">Cve / Mto / Pro</div></th>
        <th><div align="center">Cve / Mto / Acr</div></th>
      </tr>
      <?php

	$sql = mysqli_query($con ,"SELECT * FROM dvparame");
	while($reg = mysqli_fetch_array($sql))
	{
	  	echo "<tr>";
		echo '<td> <div align="center"><input name="bot" type="radio" value="'. $reg["n_reg"].'">&nbsp;</div></td>';
		echo "<td> <div align='center'>" . $reg["n_reg"] . "&nbsp;</div></td>";
		$sqlx=mysqli_query($con ,"select * from dycatcta where  cta_con = '".$reg['cve_cli']."'");
	  	$regx = mysqli_fetch_array($sqlx);
	  	echo "<td> <div align='right'>" . $reg["cve_cli"] . ' - ' . $regx["descripcion"] . "&nbsp;</div></td>";
		
		$sqlxx=mysqli_query($con ,"select * from dycatcta where  cta_con = '".$reg['cve_pro']."'");
	  	$regxx = mysqli_fetch_array($sqlxx);
		echo "<td> <div align='right'>" . $reg["cve_pro"] . ' - ' . $regxx["descripcion"] . "&nbsp;</div></td>";
		
		$sqlxxx=mysqli_query($con ,"select * from dycatcta where  cta_con = '".$reg['cve_acr']."'");
	  	$regxxx = mysqli_fetch_array($sqlxxx);
		echo "<td> <div align='right'>" . $reg["cve_acr"] . ' - ' . $regxxx["descripcion"] . "&nbsp;</div></td>";
		echo "</tr>";
	}
	mysqli_close($con);
	?>
    </table>
  </form>
</div>
</body>
</html>