<?php
 
session_start();
$com = "C";
include("DMMYSQLG.php");
include("DFJQUERY.inc");
include("DFJSISCI.inc");
include("DSA3000.php");


?>
<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>
<style type="text/css">
<!--
#Layer2 {
	position:absolute;
	 left:1px;
	top:28px; 
	width:250px;
	height:170px;
	z-index:1;
	overflow:auto;
	right:auto;
	 ;
}
.pp {
background-color:#666666;
 ;
}
.Estilo18 {font-size: 12px; font-weight: bold; }
-->
</style>
<?php

if ($_POST['bot']==""){
	echo '<h2>!!! SELECCIONE UN REGISTRO !!!</h2>';
	echo '<meta content="1; url=cat_pagos_PR.php"  HTTP-EQUIV="REFRESH">';
}else{
	
	include('cat_pagos_CL.php');
	$varible_clase = new clase();
	$res=$varible_clase->lista_busqueda($_POST["bot"]);
	$reg=mysqli_fetch_array($res);
	if(!isset($_POST['t1'])){
		$_REQUEST['t1']=$reg['desc_pag'];
		$_REQUEST['t2']=$reg['cta_con_pag'];
		$_REQUEST['t3']=$reg['ini_pag'];		
		$_REQUEST['select']=$reg['tip_mv_pag'];
		$_REQUEST['select2']=$reg['tip_aplica'];
		$_REQUEST['select3']=$reg['pag_bancos'];
	}
?>
<body>

<form  name="frm1" method="post" action="">
<input name="bot" type="hidden" value="<?php
 echo $_POST["bot"]?>">
<div id="width_wrapper" align="center">
<table width="543" border="0" align="center">
  <tr>
    <td colspan="2" class="titulo"><div align="center"> ELIMINAR TIPO DE PAGO</div></td>
  </tr>
  <tr>
    <th width="133" style="#FC6171"><div align="left"><span class="Estilo18">Descripcion</span></div></th>
    <td style="#D2BEE4"><input name="t1" type="text" id="t1"  maxlength="25"  value="<?php echo $_REQUEST['t1'];?>"></td>
  </tr>
  <tr>
    <th width="133" style="#FC6171"><div align="left"><span class="Estilo18">Iniciales</span></div></th>
    <td style="#D2BEE4"><input name="t3" type="text" id="t3"  maxlength="25"  value="<?php echo $_REQUEST['t3'];?>"></td>
  </tr>  
  <tr>
    <th style="#FC6171"><div align="left"><span class="Estilo18">Cuenta Contable</span></div></th>
    <td style="#D2BEE4"><input name="t2" type="text" id="t2"  maxlength="25"  value="<?php echo $_REQUEST['t2'];?>">      </td>
  </tr>
  <tr>
    <th height="28" style="#FC6171"><div align="left" class="Estilo18">
      <div align="left">Tipo Movimiento Pago</div>
    </div></th>
    <td style="#D2BEE4"><select name="select"  onChange="checa_DG(this.value)">
      <option value="N" <?php if($_REQUEST['select']=='N') echo 'selected';?>>NO APLICA REFERENCIA</option>
      <option value="R" <?php if($_REQUEST['select']=='R') echo 'selected';?>>APLICA REFERENCIA NO VERIFICA</option>
      <option value="V" <?php if($_REQUEST['select']=='V') echo 'selected';?>>APLICA REFERENCIA C/VERIFICACION DE DATOS</option>
    </select>    </td>
  </tr>
  <th height="28" style="#FC6171"><div align="left" class="Estilo18">
    <div align="left">Tipo de Aplicacion </div>
  </div></th>
      <td width="394" style="#D2BEE4"><select  name="select2">
          <option value="A" <?php if($_REQUEST['select2']=='A') echo 'selected';?>>ANTICIPOS</option>
          <option value="N" <?php if($_REQUEST['select2']=='N') echo 'selected';?>>NOTAS DE CREDITO</option>
        </select>      </td>
  </tr>
  <tr>
    <th style="#FC6171"><div align="left"><span class="Estilo18">Aplicacion en  Bancos</span></div></th>
    <td style="#D2BEE4"><select  name="select3">
      <option value="0" <?php if($_REQUEST['select3']=='0') echo 'selected';?>>DEPOSITO EN BANCO</option>
      <option value="1" <?php if($_REQUEST['select3']=='1') echo 'selected';?>>DIRECTO EN BANCO</option>
      </select></td>
  </tr>
  <tr>
    <td colspan="2" class="titulo"><div align="center">
     
      <input type="button" name="Submit2" value="Eliminar" onClick="openpage('cat_pagos_EC.php','_self')" class="bot_RjR"/>
      <input type="button" name="Submit22" value="Regresar" onClick="openpage('cat_pagos_PR.php','_self')" class="bot_WsW"/>
    </div></td>
  </tr>
</table>
</div>
</form>
</body>
<?php
 
mysqli_close($con);
}
?>
</html>