<?php
 
if(session_id()=="") 
	session_start();
$com="AS";	
require_once("DMMYSQLG.php");
$tipRequest=$_REQUEST['typeRequest'];

/*Si Tipo de respuesta es distinta de AutoCompletar Se imprime Ventana de Busqueda*/
//if(trim($tipRequest)=="" || !isset($tipRequest)){
	require_once("DFJQUERY.inc");
	
	$textBus=$_REQUEST['textBus'];
	$textBus=trim($textBus);

	if(!isset($_POST['idBusProdAlm']))
		$idProd= trim($_POST['idProd']);
	else
		$idProd= trim($_POST['idBusProdAlm']);
	$dt_invent=mysqli_fetch_array(mysqli_query($con ,"SELECT nparte1 as idProd, np_desc1 as desProd FROM dginvent WHERE dginvent.modulo='".$_SESSION['mod_sis']."' AND   nparte1 ='$idProd'"));
?>
	<html>
	<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
	<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>
	<script language="javascript">

	</script>
	
	<body id="bodyVENTESP">
	 <form name="formbascps" id="formbascps" method="post" action="">
	   <img src="logos/mover.gif" width="30" height="30" /><img src="logos/cerrar.gif" alt="cerrar" width="30" height="30" onClick="<?php
echo "cloLayAndCpy({idLayer:'".$_POST['layerToLoad']."'},{})";?>"/>
	  <input type="hidden" value="<?php
echo $idProd;?>" name="idBusProdAlm" id="idBusProdAlm">
	
	<table  border="0" align="center">
		  <tr> 
			<td style="#CCCCCC"><div align="center" id="titleTableEsp" class="Estilo2">TIPOS DE PAGO </div></td>
		  </tr>
	   </table>
		<table align = "center">
		  <tr>
			<td nowrap style="#CCCCCC"><div align="center" class="Estilo2">&nbsp;</div></td>
			<td nowrap style="#CCCCCC"><div align="center" class="Estilo2">Cve. Tip. Pag. </div></td>
			<td nowrap style="#CCCCCC"><div align="center" class="Estilo2">DESCRIPCION</div></td>
		  </tr>
		  <?php

		  	$arrStyles=array("styTabEspA","styTabEspB");
			$sq_dat=mysqli_query($con ,"SELECT * FROM dgtippag order by tip_pag");
			while($dt_dat=mysqli_fetch_array($sq_dat)){
				echo "<tr class=\"".$arrStyles[($i%2)]."\">";
				echo "<td><div align=\"left\"><input type=\"checkbox\" name=\"selCheTipPag[]\" value=\"$dt_dat['tip_pag']\"></div></td>";
				echo "<td><div align=\"left\">$dt_dat['tip_pag']</div></td>";
				echo "<td><div align=\"left\">$dt_dat['desc_pag']</div></td>";
				echo "</tr>";
				$exiFisAlmTot +=$dt_invalm['exiFisAlm'];
			}

		  ?>
		  <tr>
			<td colspan="3" nowrap style="#CCCCCC"><div align="center" class="Estilo2">
			  <label>
			  <input name="botAceTipPag" type="button" id="botAceTipPag" value="Aceptar" onClick="<?php

			  		echo "cloLayAndCpy({
								idLayer:'".$_POST['layerToLoad']."'
							},{
								$_POST['idRetObj']:getDataTipPag()
							})"; 
				?>">
			  </label>
			</div></td>
		  </tr>
		</table>
	 </form>
	</body>
	</html>