<?php
 
session_start();
$com = "A";
include("DMMYSQLG.php");
include("DSA3000.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>
<script type="text/javascript" language="JavaScript1.2">
	document.frm1.select2.disabled = 1;
	//document.frm1.select2.style.display = "none"; 
</script>
<body>
 
<?php
 
//$ayuda = 'DG1700A_AG.php';
//include("DYAYUDA.php");
?>

<form  name="frm1" method="post" action="">
<div id="width_wrapper" align="center">
 <table width="543" border="0" align="center">
    <tr>
      <td colspan="2" class="titulo"><div align="center"> AGREGAR TIPO DE PAGO</div></td>
    </tr>
	<tr>
      <th width="133" style="#FC6171"><div align="left"><span class="Estilo20">Descripcion</span></div></th>
      <td style="#D2BEE4"><input name="tap2" type="text" id="tap2" onBlur="may(this)"
	  <?php

			if(isset($_REQUEST['tap2'])){ 
				echo 'value="' . $_REQUEST['tap2'] .  '"';
			}
		?>
	  ></td>
    </tr>
	<tr>
	  <th style="#FC6171"><div align="left"><span class="Estilo20">Iniciales</span></div></th>
	  <td style="#D2BEE4"><input name="t3" type="text" id="t3"  maxlength="25"></td>
    </tr>
	 <tr>
      <th style="#FC6171"><div align="left"><span class="Estilo20"> ENLACE PAGO</span></div></th>
      <td style="#D2BEE4">
		  <select name="pvf" id="pvf">
            <option>-----Selecciona-----</option>
    <?php

	@$res=mysqli_query($con ,"select * from valeryus09 where pmontomax='ABONO' order by descripcion ASC");
	while(@$reg=mysqli_fetch_array($res)){
		if($_POST['pvf'] == $reg['n_reg']){
			echo '<option value="' . $reg['n_reg'] . '" selected>' . $reg['descripcion'] . '</option>';
		}else{
			echo '<option value="' . $reg['n_reg'] . '">' . $reg['descripcion'] . '</option>';
		}
	}

	?>
         </select>	   </td>
    </tr>		
	<tr>
      <th style="#FC6171"><div align="left"><span class="Estilo20">Cuenta Contable</span></div></th>
      <td style="#D2BEE4"><input name="t2" type="text" id="t2"  maxlength="25"><input type="button" name="Submit22" value="Buscar" onClick="javascript:recibeid('DYCUENTA.php','ob=t2','','Layer2'); " tabindex="10" class="original"></td>
    </tr>
       <tr>
         <th height="28" style="#FC6171"><div align="left" class="Estilo20">
           <div align="left">Tipo Movimiento Pago</div>
         </div></th>
         <td style="#D2BEE4"> 
           <select name="select" onChange="checa_DG(this.value)">
             <option value="N">NO APLICA REFERENCIA</option>
             <option value="R">APLICA REFERENCIA NO VERIFICA</option>
             <option value="V">APLICA REFERENCIA C/VERIFICACION DE DATOS</option>
           </select>         </td>
       </tr>
       <th height="28" style="#FC6171"><div align="left" class="Estilo20">
         <div align="left">Tipo de Aplicacion </div>
       </div></th>
      <td width="394" style="#D2BEE4"> 
        <select name="select2">
          <option value="A">ANTICIPOS</option>
          <option value="N">NOTAS DE CREDITO</option>
        </select>      </td>
    </tr>
       <tr>
         <th><div align="left"><span class="Estilo20">Aplicacion en Bancos</span></div></th>
         <td><label>
           <select name="select3">
             <option value="0" selected>DEPOSITO EN BANCO</option>
             <option value="1">DIRECTO EN BANCO</option>
         </select>
         </label></td>
       </tr>
    <tr>
      <td colspan="2" class="titulo"><div align="center">
        <input type="button" name="button" value="Guardar" onClick="openpage('cat_pagos_AC.php','_self')" class="original"/>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="button" name="Submit2" value="Regresar" onClick="openpage('cat_pagos_PR.php','_self')" class="bot_WsW"/>
      </div></td>
    </tr>
  </table>
</div>
</form>

</body>
</html>
