

<?php
include("../php/config.php");

$cliente = $_GET["cliente"];


?>

<?php 

  include_once '../header.php';


?>

<style type="text/css">
	.navbar{
		display:none;
	}

td{
	margin-bottom: 25px;
}
</style>

<div class="container-fluid">
	<br>
	  <img src="../img2/pago.png" width="60" style="margin-bottom:10px"><span class="text-primary h3"> Historial de pagos</span><br>
	<?=  "<span class='text-danger h4'><b>".$cliente."</span></b>";?>
	<br>
<table>
	<th>No. transaccion</th>
	<th>Fecha</th>
	<th>Monto pagado</th>
	<th>Efectivo</th>
	<th>Cheque</th>
	<th>Concepto</th>
<?php
$a = mysql_query("SELECT * FROM ingresos WHERE tipo='Credito' and cliente='$cliente'") or die(mysql_error());
while($rs = mysql_fetch_array($a)){
	$c1++;
	$total1+=$rs["monto"];
?>
  <tr>
	<td><?php echo $rs["id"]?></td>
	<td><?php echo fecha($rs["fecha"])?></td>
	<td><?php echo @decimal($rs["monto"])?></td>
	<td><?php echo @decimal($rs["efectivo"])?></td>
	<td><?php echo @decimal($rs["cheque"])."(".$rs["numero_cheque"].")"?></td>
	<td class='text-primary'><?php echo $rs["concepto"]?></td>
	
  </tr>
<?php 

}?>
</table>
<?php  echo "<br>"."Cant. registros: ".$c1." | TOTAL: ".@decimal($total1);

  include_once '../footer.php';
?>

</div>