<?
session_start();
require ('../conectar.php');
require ("funciones.php");
$idpago=$_GET["idpago"];
$idrenta=$_GET["idrenta"];
$idcomplejo=$_GET["idcomplejo"];
$iddepartamento=$_GET["iddepartamento"];
$idemp=$_SESSION["usuario_id"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <script language="javascript" src="js/jquery-1.8.2.min.js"></script>
<script language='javascript'>
function ndias(){
     	
	
}
</script>
		 
<style>
  .datos{border:0;-moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;-khtml-border-radius: 5px;border-collapse: collapse;color:#0d0d0d;font-family:arial;width:99%;} 
  .datos .trd{ color:#000000 min-height:20px !important;max-height:20px !important;height:20px !important; background:#CCCCCC; font-size:9px;border:solid 1px #000000;}
  .datos .trd td{padding-left:10px; border-left:solid 1px;}
  .datos .trb{ color:#000000; min-height:20px !important;max-height:20px !important;height:20px !important; font-size:9px;border:solid 1px #000000;}
  .datos .trb td{padding-left:10px; border-left:solid 1px;}			  
  .loading{ position:fixed;left:50%;top:50%;width:250px;height:70px;margin-left:-125px;margin-top:-35px;display:none;background:url(images/bkloading.png);background-repeat:no-repeat;color:#ffffff;padding-top:25px;text-align:center;font-family:arial;font-size:12px;}
  .datos .calendario{}
</style>
</head>
<body>
<center>
<?
$fecha=date("Y-m-d");		
$consulta="SELECT * from pagos where id_pago='$idpago'";
$re=mysql_query($consulta);
$ls=mysql_fetch_array($re);
?>
 <form name="form" id="form"  method="post" action="pladePagos.php" enctype="multipart/form-data">
<table class="datos">
  <tr class="trd">
    <td colspan="3"><center><strong>Fecha</strong><center></td><td colspan="4"></td>
    </tr>
    <tr class="trd">
    <td>a&ntilde;o</td>
    <td>Mes</td>
    <td>Dia</td>
    <td>Monto</td>
    <td>Moneda</td>
    <td>Forma de pago</td>
    <td>Seleccione el archivo</td>
  </tr>
  <tr class="trb">
    <td>
    <input type="text" name="anio"  value="<? echo date("Y");?>" size="5" maxlength="5"> </td> <td><input type="text" name="mes"value="<? echo date("m");?>"  size="2" maxlength="2"> </td><td><input type="text" name="dia" size="2" maxlength="2" >
    <input type="hidden" name="fechapago" value="1">
      </td>
    <td ><input  type="text" name="monto"></td>
    <td>
    <select name="tipo_moneda">
    <option></option>
    <option value="USD">USD</option>
    <option value="MXN">MXN</option>
    </select></td>
    <td>
    <select name="formapago">
    <option></option>
    <option>EFECTIVO</option>
    <option>TERMINAL</option>
    <option>TRANSFERENCIA</option>
    <option>DEPOSITO</option>
    <option>PAYPAL</option>
    </select></td>
    <td><input name="comprobante"  id="comprobante" type="file" ></td>
  </tr>
</table><input type="hidden" id="idpago" name="idpago" value="<?echo$idpago?>">
<input type="hidden" id="idrenta" name="idrenta" value="<?echo$idrenta;?>">
<input type="hidden" id="idcomplejo" name="idcomplejo" value="<?echo$idcomplejo;?>">
<input type="hidden" id="iddepartamento" name="iddepartamento" value="<?echo$iddepartamento;?>">
<p align="center">
<input type="submit" name="registrar" id="registrar" value="registrar"> </p>

</form>
</center>
</body>
</html>