<link rel="stylesheet" type="text/css" href="../src/bootstrap.min.css">


<link rel="stylesheet" type="text/css" href="../src/datatable.css">
<link rel="stylesheet" type="text/css" href="../src/bootstrap-theme.css">
<?php
include("../php/config.php");

$cliente = $_GET["cliente"];




echo "<h4 class='text-success'>PAGO A PROVEEDORES</h4>";
echo "<span class='text-danger h4'><b>".$cliente."</span></b>";
?>

<table border='1'>
	<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 egresos WHERE tipo='Pago' and pagado_a='$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)?>

