<?php
session_start();
require('../valtiempoinact.php');
require("../conectar.php");
require("libFormato.php");
$idcliente=$_GET["idcliente"];
$idrenta=$_GET["idrenta"];
$hoy=$_GET["hoy"];
?>
<!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>
	     <meta charset="UTF-8">
	     <style>
		      .cont-busc{position:relative;height:auto;min-height:400px !important;font-family:arial;color:#086A87;top:10px;overflow-x:hidden;margin:auto;}
			  .cont-busc .bar-busc{position:relative;height:90px;font-family:arial;color:#086A87;top:0px;margin:auto;}
			  .cont-res{position:relative;font-family:arial;color:#086A87;top:0px;margin:auto;}
			  .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 .tl{-moz-box-shadow:inset 0 0 20px #000000;-webkit-box-shadow: inset 0 0 20px #000000;box-shadow: inset 0 0 20px #000000;}
			  .datos .trs{min-height:30px !important;max-height:30px !important;height:30px !important;background:url(images/tcancion.jpg) repeat-x;color:#ffffff;font-size:12px;}
			  .datos .trs .link{-moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;-khtml-border-radius: 5px;background:#86B404;padding:3px;text-decoration:none;float:left;}
			  .datos .trs .link:hover{background:#A5DF00;}
              .datos .trsb{min-height:15px !important;max-height:15px !important;height:15px !important;background:url(images/tcancion2.png);color:#58D3F7;font-size:12px;}
			  .datos .trsb td{border-left:solid 1px #6E6E6E;}
			  .datos .trsb td:first-child{border-left:none;}
			  .datos .tr{min-height:20px !important;max-height:20px !important;height:20px !important;background:#ffffff;border-top:solid 1px #D8D8D8; color:#084B8A;font-size:10px;}
			  .datos .trb{min-height:20px !important;max-height:20px !important;height:20px !important;background:#ffffff;border-top:solid 1px #D8D8D8; color:#0D0D0D;font-size:9px;}
			  .datos .trb td{border-left:solid 1px #D8D8D8;padding-left:10px;}
			  .datos .trb td:first-child{border-left:none;}
			  .datos .trb .tds{background:#A4A4A4;}
			  .datos .trssb{min-height:15px !important;max-height:15px !important;height:15px !important;background:url(images/tcancion2.png);color:#848484;}	
			  .datos .tr td{border-left:solid 1px #D8D8D8;padding-left:10px;}
			  .datos .tr td:first-child{border-left:none;}
	          .datos .tr:hover{background:#01A9DB;color:#ffffff;}	
	          .datos .tr:hover a{color:#ffffff;}
              .datos .tr1{min-height:20px !important;max-height:20px !important;height:20px !important;background:#E0F8F7;border-top:solid 1px #D8D8D8; color:#084B8A;font-size:13px;}	
              .datos .tr1 td{border-left:solid 1px #D8D8D8;padding-left:10px;}
			  .datos .tr1 td:first-child{border-left:none;}
	          .datos .tr1:hover{background:#01A9DB;color:#ffffff;}	
	          .datos .tr1:hover a{color:#ffffff;}	
			  .datos .activo{min-height:20px !important;max-height:20px !important;height:20px !important;background:#F3E2A9;border-top:solid 1px #D8D8D8; color:#084B8A;font-size:13px;}
			  .ipt{border:none;background:none;color:#ffffff;font-weight:bold;text-align:right;}
			  .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;}
               .rentas{position:absolute;top:40px;width:800px;left:50%;margin-left:-421px;border:solid 1px  #D8D8D8; background:#FFFFFF; display:none;padding:20px;-Moz-box-shadow: 0 0 85px #000;-webkit-box-shadow: 0 0 85px #000; box-shadow: 0 0 85px #000;}
               .rentatab{border-collapse:collapse;color:#0d0d0d;font-family:arial;font-size:12px;}
               .rentatab .filatit{min-height:20px !important;max-height:20px !important;height:20px !important;background:#D8D8D8;border-top:solid 1px #D8D8D8;font-size:13px;}			   
               .rentatab .fila{min-height:20px !important;max-height:20px !important;height:20px !important;background:#ffffff;border-top:solid 1px #D8D8D8; color:#084B8A;font-size:12px;}
               .rentatab .fila td{border-left:solid 1px #D8D8D8;padding-left:5px;}
               .rentatab .fila td:first-child{border-left:none;}
               .cerrar{float:right;margin-top:-20px;margin-right:-20px;}
	     </style>
	 </head>
	 <body>
	     <div class="cont-busc">
		   <center>
	         <table class="datos">
			     <tr>
				     <td align="center" class="trs" colspan="15">Pagos Eliminados</td>
				 </tr>
				 <tr class="trb">
						     <td colspan='15' align="center" class="tds"></td>
					</tr>
				 <tr class="trb">
				     
				     <td align="center"><b>Fecha Eliminacion</b></td>
					 <td align="center"><b>Fecha Reg.</b></td>
					 <td align="center"><b>Cliente</b></td>
					 <td align="center"><b>Concepto</b></td>
					 <td align="center"><b>Forma de pago</b></td>
					 <td align="center"><b>Cantidad</b></td>
					 <td align="center"><b>Moneda</b></td>
					 <td align="center"><b>Divisa</b></td>
					 <td align="center"><b>Propiedad</b></td>
					 <td align="center"><b>Recibio</b></td>
					 <td align="center"><b>Comp.</b></td>
					 <td align="center"><b>Motivo</b></td>
                     <td align="center"><b>Elimin&oacute;</b></td>
				 </tr>
				 <?
				    $sql="SELECT * FROM pagoseliminados";
					$re=mysql_query($sql);
					$k=1;
					while($ls=mysql_fetch_array($re)){
					    ?>
						 <tr id="a<?echo$p?>" class="trb"> 
						     <td><?echo $ls['fechaeliminacion']?></td>
							 <td><?echo $ls['fechareg']?></td>
							 <td><?echo $ls['cliente'];?></td>
						     <td><?echo $ls['concepto']?></td>
						     <td><?echo $ls['formadepago']?></td>
						     <td align="right"><font style="float:left">$</font> <?echo Moneda2($ls['cantidad']);?></td>
						     <td><?echo $ls['moneda']?></td>
						     <td align="right"><font style="float:left">$</font><?echo $ls['divisa']?></td>
						     <td><?echo $ls['propiedad'];?></td>
						     <td><?echo htmlentities($ls['recibio']);?></td>
						     <td><?if($ls["comprobante"]==""){echo "";}else{?><a href="<?echo $ls["comprobante"];?>" target="_blank"><img src="images/zoom.png" width="18" height="18" border='0' style="margin-left:-5px;" alt="Ver comprobante"></a><?}?></td>
							  <td><?echo $ls['motivo'];?></td>
							  <td><?echo $ls['usuelimino']?></td>
						 </tr>
						<?
						$k++;
					}
					if($k==1){
					    ?>
						<tr class="trb">
						     <td colspan='15' align="center">No se encontraron pagos eliminados</td>
						 </tr>
						<?
					}
					?>
		     </table>
			 <br>
			 <br>
			 <br>
			 <br>
			 <br>
			</center>
		 </div>
	 </body>
</html>	