<?php
$id=$_GET['id'];
?>
<page backtop="1mm" backbottom="5mm" backleft="5mm" backright="5mm" style="font-size: 11pt; font-family: arial" >
    <table cellspacing="0" style="width: 100%;" >
        <tr>
            <td style="width: 48%; color: #444444;">
                <img style="width: 60%;" src="../../../img/<?php echo $empresa;?>.png" alt="Logo"><br>
            </td>
			<td style="width: 40%;font-size:12px;text-align:center;">
				<strong style="font-size:15px"><?php echo $emp_nombre;?></strong><br>
				<strong>Nit: <?php echo $emp_nit;?></strong> <br>
				<strong><?php echo $emp_direccion;?></strong><br>
				<strong><?php echo $emp_correo;?></strong><br>
				<strong>Tel: <?php echo $emp_cel;?> / <?php echo $emp_telefono;?></strong><br>
				<!--<strong>Responsable de IVA </strong><br> 
				<strong>Agente de retención en el impuesto sobre las ventas</strong>-->
			</td>
        </tr>
    </table>
    <br>
    <?php
    	$egre2=mysqli_query($con,"SELECT * FROM egresos where id='$id'") or die(mysqli_error($con));  
		$egr1=mysqli_fetch_array($egre2);
	?>
 	<table cellspacing="0" style="width: 100%;" >
        <tr>
            <td style="width: 70%;">
            	
            </td>
			<td style="width: 30%;">
				<table cellspacing="0" style="width: 100%; padding-left:5px">
			        <tr>
						<td style="width: 100%;color:white;background-color:#bdc3c7;padding:2px;text-align:center"> 
							<strong style="font-size:10px;color: #000">COMPROBANTE DE EGRESO N°</strong>
						</td>
					</tr>
					<tr>
						<td style="width: 100%;padding:2px;text-align:center;border:solid 1px #bdc3c7;font-size:12px"> 
							<strong style="color: red"><?php echo $egr1['num_e'];?></strong>
						</td>
					</tr>
					
			    </table>
			</td>
		</tr>
	</table>

	<table width="30%" cellspacing="0" cellpadding="0" 
       style="margin-bottom:10px; margin-left:auto;">
	    <tr>
	        <td style="text-align:right;font-size:12px;">
	            <strong>Fecha:</strong> <?php echo $egr1['fecha']; ?>
	        </td>
	    </tr>
	</table>

<table cellspacing="0" style="width: 100%; border-top:solid 1px #bdc3c7;border-bottom:solid 1px #bdc3c7;border-left:solid 1px #bdc3c7;border-right:solid 1px #bdc3c7;padding-left: 15px;padding-right: 15px;" >
        
		<tr>
			<td style="width:30%;padding:2px;text-align:left;font-size:15px;padding-top: 15px;"> 
				EGRESO DE:
			</td>
			<td style="width:70%;padding:2px;text-align:left; border-bottom:solid 1px #bdc3c7;font-size:15px;padding-top: 15px;"> 
				<?php echo number_format($egr1['total'],0);?> (<?php echo $egr1['banco'];?>)
			</td>
		</tr>
		<tr>
			<td style="width:30%;padding:2px;text-align:left;font-size:15px;padding-top: 15px;"> 
				POR CONCEPTO DE:
			</td>
			<td style="width:70%;padding:2px;text-align:left; border-bottom:solid 1px #bdc3c7;font-size:15px;padding-top: 15px;"> 
				<?php echo $egr1['concepto'];?>
			</td>
		</tr>
		<tr>
			<td colspan="2" style="width:100%;padding:2px;text-align:left;font-size:15px;padding-top: 15px;"></td>
		</tr>
    </table>




 	<table cellspacing="0" style="width: 100%;padding-top: 5px;">
        <tr>
        	<td style="width:30%;"></td>
            <td style="width:69%;">
            	<table cellspacing="0" style="width: 100%;">
					<tr>
						<td>
							<table cellspacing="0" style="width: 100%;" >
								<tr>
									<td colspan="3" style="width: 100%;padding-bottom: 36px"></td>
								</tr>
								<tr>
									<td style="width: 45%;">_______________________________</td>
									<td style="width: 5%;"></td>
									<td style="width: 45%;">_____________________________</td>	
								</tr>
								<tr>
									<td style="width: 45%;font-size:8px;">ELABORADO POR</td>
									<td style="width: 5%;"></td>
									<td style="width: 45%;font-size:8px;">ACEPTADO POR</td>		
								</tr>
						    </table>
						</td>
					</tr>
			    </table>
            </td>
            <td style="width: 1%;"></td>
		</tr>
    </table>
   
	<div style="width:100%; border-top:dashed 1px;margin-top:1mm;"></div>
	
</page>	  