<?php
$clie_id=$_GET['clie_id'];
?>
<page backtop="1mm" backbottom="5mm" backleft="5mm" backright="5mm" style="" >
    <table cellspacing="0" style="width: 100%;" >
        <tr>
			<td style="width: 60%;font-size:20;text-align:center;" >
				<strong style="font-size:25;"><?php echo $emp_nombre;?></strong><br>
				<strong><?php echo $emp_representante;?></strong><br>
				         <strong><?php echo $emp_nit;?></strong> <br>
				    <strong><?php echo $suc_direccion_envio;?></strong><br>
				     <strong><?php echo $emp_cel;?> / <?php echo $emp_telefono;?></strong><br>
			</td>
			<td style="width: 40%; color: #444444;">
                <img style="width: 100%;" src="../../../img/<?php echo $empresa;?>.png" alt="Logo"><br>
            </td>
        </tr>
    </table>

    <?php
	    $sql1=mysqli_query($con, "SELECT * from cliente where clie_id='$clie_id' and empresa='$empresa'");
	    $row1=mysqli_fetch_array($sql1);
    ?>
<p></p>

    <table cellspacing="0" style="width: 100%;padding:5px;border-bottom:solid 1px #bdc3c7;border-top:solid 1px #bdc3c7;border-left:solid 1px #bdc3c7;border-right:solid 1px #bdc3c7;" >
        <tr>
			<td style="padding:5px;width: 25%;font-size:20;text-align:left;border-bottom:solid 1px #bdc3c7; " >
				<strong>DESTINATARIO:</strong><br>
			</td>
			<td style="padding:5px;width: 75%;font-size:20;text-align:left;border-bottom:solid 1px #bdc3c7;" >
				<strong><?php echo $row1['clie_nombre'];?> / <?php echo $row1['clie_empresa'];?></strong><br>
			</td>
        </tr>
        <tr>
			<td style="padding:5px;width: 25%;font-size:20;text-align:left;border-bottom:solid 1px #bdc3c7; " >
				<strong>NIT:</strong><br>
			</td>
			<td style="padding:5px;width: 75%;font-size:20;text-align:left;border-bottom:solid 1px #bdc3c7;" >
				<strong><?php echo $row1['clie_cc'];?></strong> <br>
			</td>
        </tr>
         <?php
        	$clie_departamento=$row1['clie_departamento'];
        	$name_dep='';
			$dep=mysqli_query($api,"SELECT * from departments where id='$clie_departamento'");
			if($dep=mysqli_fetch_array($dep)){
			$name_dep=$dep['name'];}

			$clie_ciudad=$row1['clie_ciudad'];
			$name='';
			$ciu=mysqli_query($api,"SELECT * from municipalities where id='$clie_ciudad'");
			if($ciud=mysqli_fetch_array($ciu)){
			$name=$ciud['name'];}
        ?>
        <tr>
			<td style="padding:5px;width: 25%;font-size:20;text-align:left;border-bottom:solid 1px #bdc3c7; " >
				<strong>DIRECCION: </strong><br>
			</td>
			<td style="padding:5px;width: 75%;font-size:20;text-align:left;border-bottom:solid 1px #bdc3c7;" >
				<strong><?php echo $row1['clie_direccion'];?> (<?php echo strtoupper($name_dep);?> - <?php echo strtoupper($name);?>)</strong><br>
			</td>
        </tr>
        <tr>
			<td style="padding:5px;width: 25%;font-size:20;text-align:left; " >
				<strong>TELEFONO:</strong><br>
			</td>
			<td style="padding:5px;width: 75%;font-size:20;text-align:left;" >
				<strong><?php echo $row1['clie_telefono'];?></strong><br>
			</td>
        </tr>
    </table>
    <table cellspacing="0"  >
        <tr>
			<td style="padding-top:5px;width: 100%;font-size:20;text-align:center; " >
				 <img src="../../../img//delicado.jpeg" style="width: 100%;" />
			</td>
        </tr>
       
    </table>
   
	
</page>	  