<?php
 
session_start();
include("DMMYSQLG.php");
include("DSA1000.php");
include("DMMYSQLG.php");
include("DFJSISCI.inc");
?>
<html>
<script type="text/javascript" src="ajax1.js"></script>
<script type="text/javascript" src="ajax2.js"></script>
<script type="text/javascript" language="javascript" src="DSSCRIPT.js"></script>
<script type='text/javascript'>
function abrir(URL){
window.open(URL,"ventana1","width=180,height=260,scrollbars=NO,minimize=0") 
}
</script>
<head>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<?php

require_once("DFJQUERY.inc");
?>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body>
<div align="center">
    <?php
 
	$sql = mysqli_query($con ,"SELECT * FROM ptventa order by nparte1 ");
		$sql2 = mysqli_query($con ,"SELECT count (*) FROM ptventa");
	include("DE10000.php");
	?>
    <table width="752" height="21" border='0'>
      <tr>
        <th colspan="8"> 
          <div align="center">PUNTOS DE VENTA </div>
       	</th></tr>
	</table>
   	<table border="0" align="center">
	<tr class="condes" style="border:double">
	 <?	 $i=0;
	 while($reg = mysqli_fetch_array($sql)) 		{?> 		
	<td class="condes" style="border:double"><div align="center">
	  <input name="button" type="button" class="botunn" onClick="MostrarCon(<?php
 echo $reg['nparte1'];?>)" value="<?php
 echo $reg['np_desc1']; ?>"> </div></td> 
<?php
 ++$i;
if ( ($i%5) == 0) { ?> <tr style="border:none">  </tr>	<?php
 }  ?> 
</tr>
	</table>
	<div align="center" id="area">
   
    </div>
	<div align="center" id="mesas">
   
    </div>
	<div align="center" id="clave">
   
    </div>

</div>

<div align="center">
<table width="752" height="36">
  <tr style="border:double">
    <td  width="532" height="30" ><label></label></td>
    <td width="101" ><input name="button22" type="hidden" class="botunn" onClick="abrir('CAL10000.php?&tpo=7')" target="_blank" value="PAGO CTA." /></td>
    <td width="102" class="condes" style="border:double" ><div align="center">
      <input name="button2" type="button" class="botunn" onClick="abrir('CAL10000.php?ms=<?php
 echo $reg['nparte1'];?>&amp;ar=<?php
 echo $reg['area'];?>&amp;pt=<?php
 echo $reg['descripcion'];?>&amp;tpo=6')" target="_blank" value="CANCELA CTA." />
    </div></td>
  </tr>
</table>
</div>
</body>
</html>
<? mysqli_close($con); 	?>