<!DOCTYPE html>
<html lang="es">
<head><meta charset="gb18030">
	
	<title>Formulario Contacto</title>
	<style type="text/css">
		 table {color:black; 
		 border: none;
            width: 100%;}
		

		 .header{
		 	/*display: inline-block;*/
		 	padding-left: 10px; 
		 	padding-right: 200px; 

		 }
		 p {
    text-align: center;
    align-content: center;
}

		 .text{
		 	padding-left: 40px; 
		 	padding-right: 40px;
		 	/*padding-bottom: : 10px;*/
		 	text-align:justify-all;
			line-height: 120%;
		 }
		  .text1{
		 	padding-left: 40px; 
		 	padding-right: 40px;
		 	padding-bottom: : 10px;
		 	text-align:justify-all;
			line-height: 130%;
		 }
		 .text2{
		 	padding-left: 50px; 
		 	padding-right: 40px;
		 	padding-bottom: : 10px;
		 	text-align:justify-all;
			line-height: 170%;
		 }
		 .info{
		 	width: 30%; 
		 	color: #34495e;
		 	font-size:12px;
		 	text-align:justify-all;
		 }
		 .factura{
		 	color: red;
		 	width: 28%;
		 	height:10px;
		 	border: 1px solid red;
		 	text-align: center;
		 }
		 .linea{
		 	margin: 1rem 0 0;
                        padding: 0 0 2rem 0;
                         border-bottom: 3pt solid #42D67F;

		 }
		
		 .articulos{
		 	padding-left: 40px; 
		 	padding-right: 40px;
		 	font-size:11px;
		 }
		 .cabecera{
			background:#42D67F;
			color:white;
			font-size:12px;
			padding-left: 20px; 
		 	padding-right: 20px;
		 }
		 .foot{
		 	padding-left: 20px; 
		 	padding-right: 20px;
		 	font-size: 8pt;


		 }
		  .productos{
		 	font-size:12px;
		 	border-collapse: collapse;
    		padding-left: 20px; 
		 	padding-right: 20px;	 	
		 }	
		 .silver{
			background:white;
			padding: 3px 4px 3px;
		}
		.clouds{
			background:#ecf0f1;
			padding: 3px 4px 3px;
		}
		/*#encabezado {padding:10px 0; border-top: 1px solid; border-bottom: 1px solid; width:100%;}*/
		#encabezado .fila #col_1 {width: 15%}
		#encabezado .fila #col_2 {text-align:center; width: 55%}
		#encabezado .fila #col_3 {width: 15%}
		#encabezado .fila #col_4 {width: 15%}
		 
		#encabezado .fila td img {width:50%}
		#encabezado .fila #col_2 #span1{font-size: 15px;}
		#encabezado .fila #col_2 #span2{font-size: 12px; color: #4d9;}
	</style>
</head>
<body>
<?php 

  

      

	require_once "../modelos/Venta2.php";
	$venta=new Venta2();
	$rsptac= $venta->reportecaja($_GET["id"]);
	$regc=$rsptac->fetch_object();
	$responsable=$regc->nombre;
	

	
	
	
	$item=0;

 ?>

	
    	 
		 
		<div class="linea">
		
		</div>
	
              

  	<table id="encabezado">
		            <tr class="fila">
		                <td id="col_1" style="width: 40%" >
		                 <img style="width: 400px;height: 100px; display:block;  margin-left: auto;  margin-right: auto;" src="./logo.jpg"> 
		                </td>
		           
		           
		                <td id="col_3" style="width: 30%" >
		               <table >
				<tr >
						<td ></td>
						<td >  <b>   <?php  echo $responsable ?></b></td>

				</tr>
				
								
				

			</table>
		                </td>		                
		                
		            </tr>
		        </table>
   
         <br><br>
		<div  class="productos">
			<table   style="border: solid 0.1px #42D67F ">
				<tr class="cabecera" style="width: 100%; text-align: center ">
		            
		            <th style="width: 8%; text-align:center">TIPO PAGO</th>		         
		            <th style="width: 15%; text-align: center;">FECHA PAGO</th>		           
		            <th style="width: 10%; text-align: center;">CLIENTE</th>
		            <th style="width: 10%; text-align: center;">SERVICIO</th>
		            <th style="width: 10%; text-align: center;">BANCO</th>
		            <th style="width: 15%; text-align: center;">NRO OPERACION</th>
		            <th style="width: 22%; text-align: center;">NRO RECIBO</th>
		            <th style="width: 5%;height: 15px; text-align:center">MONTO</th>
		          
            
        		</tr>
        		<?php 
        		
        		
        		
        		  $query = "SELECT  i.idtipo,i.fechahora,u.name,a.nombre,b.nombrebanco,i.numeroperacion,i.monto,i.idoperacion,c.nombre as tiposervicio FROM tb_ingreso i join users u on i.cliente=u.id join usuario a on i.idresponsable=a.idusuario join tb_banco b on i.banco=b.id join categoriaingreso c on i.tiposervicio=c.idingreso  where i.idcierre='198' order by i.id desc";
                           $adicional = mysqli_query($conexion,$query);
        		$suma1=0;
        		
        		 $efectivo=0.00;
                  $deposito=0.00;
                  $otros=0.00;
        		foreach($adicional as $row1){
        		
        		
                         
        			$item+=1;

        			if($item%2==0){
        				$estilo='silver';
        			}else{
        				$estilo='clouds';
        			}
        			?>
        		
        		
        			<tr style="text-align:center">
        			<td class="<?php echo $estilo; ?>" style="width: 8%"><?php echo $item; ?></td>
        			<td class="<?php echo $estilo; ?>" style="width: 5%"><?php echo $row1['idtipo']; ?></td>   	    			
        				    			
        				
        			</tr>

        		<?php 
        		  
        		} ?>
        	
        		</table>
        	<br>
        	
        <!--	<div >
        	
        	
		
   <p class="centered">

<strong>CAJA HUANCAYO : 107035211003241879 </strong><BR>
                <strong>CCI : 8080 3521 1003 2418 7905 </strong><BR>
                <strong>BANCO BCP : 355-2525257-0-03 </strong><BR> 
                <strong>CCI : 002 35500 2525 2570 0368 </strong> 
                <br><strong>WHATSAPP : 997 7001 66</strong>
              </p>
            </div> -->
		
			
		</div>

<div class="linea">
		
		</div>
			
</body>
</html>