<? session_start();
//echo 'No disponible aun';
//return;
include("../comun/conexion3.php");
include("../comun/conex_ver.php");
include("../comun/funciones.php");
$link_impo=con_impo();$link=con_ver();
$idhbl = $_GET[idhbl]; 
$idhbl = str_replace("\'","'",$idhbl);

$referencia = $_GET[referencia]; 
$referencia = str_replace("\'","'",$referencia);
$referencia_cliente = $_GET[referencia_cliente]; 
$referencia_cliente = str_replace("\'","'",$referencia_cliente);
/*global $tbulk,$tweight,$tnetweight;
global $tipos_de_imo;*/
global $buque,$viaje,$ets,$cliente,$booking_naviera,$pod,$naviera,$almacen,$procedencia_vacio,$almacen_consolidacion,$desde,$hacia,$tipo_mercancia,$pedimento,$linea,$contenedor,$dimension,$sello,$tipo,$tara,$destino_final;
 
$art23=data($link,"select * from hblexpint where idhbl = '".$idhbl."' ");
if($referencia_cliente!=''){
		DATOSBOOKING($link,$link_impo,$referencia_cliente);
 
		$q1=data($link_impo,"select files from datosexpint where referencia_interteam = '".$referencia_cliente."' or referencia_interteam = '".$referencia."'");
		
 
		fpeso_bruto($link,$link_impo,'',0,$referencia_cliente);
 
		
		$peso_neto_con_tara=$tara+$tweight;
		ftipos_imo($link,$referencia_cliente);
		
	 

		
//echo "select * from hblexpint where idhbl = '".$idhbl."' ";
		$r0 = $art23[regimen_articulo_23];
		$imo = $art23[imo_articulo_23];
		$un = $art23[un_articulo_23];
	 
}

?>
<page backtop="5mm" backbottom="10mm" backleft="10mm" backright="10mm">
    <page_header>
<table style="width: 100%; ">
            <tr>
                <td style="text-align: left;    width: 15%">&nbsp;</td>
                <td style="text-align: center;    width: 67%"><span style="text-align:center;font-size: 20px; font-weight: bold"><?=$LOGISTICA[$directorio_principal]?></span>
                
</td>
                <td style="text-align: right;    width: 18%">REF. <?=$referencia?><br />
                <?=$referencia_cliente ?></td>
            </tr>
      </table>
    </page_header>
    <page_footer>
<table style="width: 100%; border: solid 1px black;">
            <tr> 
 
 
 
 
        <td align="left" style="text-align: left;    width: 50%">
       <?=$DIRECCION3[$directorio_principal]?>
        </td>
                <td style="text-align: center;    width: 45%"><?=$TELEFONO[$directorio_principal]?></td>
                <td style="text-align: right;    width: 25%">P&Aacute;GINA [[page_cu]]/[[page_nb]]</td>
            </tr>
      </table>
    </page_footer>
 <br /> 
 <? 
 
				$datos_aa = data($link_impo,"SELECT A.*,C.nombre_contacto,C.telefono_contacto FROM `agentes_aduanales` A 
				INNER JOIN contactos_agentes_aduanales C
				on A.patente=C.patente and A.id=C.idaa and A.registro = 'ALTAMIRA' and C.email_contacto LIKE '%".$_SESSION[email]."%' ");
		 
				$imagen  = $datos_aa[imagen]; // AA
				 
  
 ?>
 <div align="center"><span style="text-align: left;    width: 30%"><? if(trim($imagen)!='') { ?><img src="<?="https://".$_SERVER["SERVER_NAME"]?>/<?=$directorio_principal?>/agenteaduanal/<?=$imagen?>" /><? } ?>
 <img src="<?="https://".$_SERVER["SERVER_NAME"]?>/<?=$directorio_principal?>/images/logo-aduana.jpg" />
 
 </span> </div>
 <br />  
 
  <div align="center"><span style="text-align: center;width: 100%"><b>SOLICITUD DE INGRESO DE MERCANCIA A DEPOSITO ANTE LA ADUANA A LA TERMINAL:</b></span></div>
  <br />  																																																									

 <div align="left"><b>ICAVE - INTERNACIONAL DE CONTENEDORES ASOCIADOS DE ALTAMIRA<br />PRESENTE</b></div>
 
 <br />
 


<br />
  
  <table style="width: 100%;" align="left">
   <tr> 
   <td style="text-align: right;width: 20%;"><B>MERCANCIA</B></td>
   <td style="text-align: center;width: 45%;"><u><?=$art23[descripcion_espanol_articulo_23]?></u></td>
   
   <td style="text-align: CENTER;width: 7%;"><B>TIPO</B></td>
   <td style="text-align: center;width: 7%;border: solid 1px black;"><B><?=$art23[tipo_mercancia_articulo_23]?></B></td>
   </tr>
</table>
  

 <br /> 
 <table style="width: 100%;" >
   <tr> 
   <td style="text-align: right;width: 20%;"><B>REGIMEN</B></td>
   <td style="text-align: center;width: 5%;border: solid 1px black;"><b><?=$r0?></b></td>
   <td style="text-align: center;width: 5%;border: solid 1px black;"><b><?=$r1?></b></td>
   <td style="text-align: center;width: 5%;border: solid 1px black;"><b><?=$r2?></b></td>
   <td style="text-align: center;width: 5%;border: solid 1px black;"><b><?=$r3?></b></td>
   <td style="text-align: center;width: 5%;border: solid 1px black;"><b><?=$r4?></b></td>
   <td style="text-align: center;width: 5%;border: solid 1px black;"><b><?=$r5?></b> </td>
   <td style="text-align: center;width: 5%;border: solid 1px black;"><b><?=$r6?></b> </td>
   <td style="text-align: center;width: 5%;border: solid 1px black;"><b><?=$r7?></b> </td>
   <td style="text-align: center;width: 5%;">&nbsp;</td>
   <td style="text-align: center;width: 15%;"><B>FACTURA No</B></td>
   <td style="text-align: center;width: 10%;"><?=$art23[factura_articulo_23]?></td>
   </tr>
</table>

 <br /> <br />
 
 <table style="width: 100%; border: solid 1px #5544DD;border-collapse:collapse; font-size:10px" align="left" >
   <tr>
     <td  style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC"><div style="width:103px;max-width:103px"><b>MARCAS</b></div></td>
     <td   style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC"><div style="width:40px;max-width:40px"><b>LINEA</b></div></td>
     <td   style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC"><div style="width:70px;max-width:70px"><b>CANTIDAD</b></div></td>
     <td   style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC"><div style="width:100px; max-width:100px"><b>EMBALAJE</b></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC"><div style="width:105px;max-width:105px"><b>SELLO</b></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC"><div style="width:95px;max-width:95px"><b>PESO NETO KGS</b></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC"><div style="width:95px;max-width:95px"><b>PESO BRUTO KGS</b></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC"><div style="width:40px;max-width:40px"><b>IMO</b></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC"><div style="width:40px;max-width:40px"><b>UN</b></div></td>
   </tr>
   
   <tr>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:103px;max-width:103px"><? //=$art23[marcas_articulo_23]?></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:40px;max-width:40px"><? //=$art23[linea_articulo_23]?></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:40px;max-width:40px"><? //=$art23[cantidad_articulo_23]?></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:70px; max-width:70px"><? //=$art23[embalaje_articulo_23]?></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:105px;max-width:105px"><? //=$art23[sello_articulo_23]?></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:95px;max-width:95px"><span style="width:400px; text-align:left">
       <? //=$art23[peso_neto_articulo_23]?>
     </span></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:95px;max-width:95px">
        <? //=$art23[peso_bruto_articulo_23]?>
     </div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:40px;max-width:40px"><span style="width:400px; text-align:left">
	 <? //=$art23[imo_articulo_23]?></span></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:40px;max-width:40px"><? //=$art23[un_articulo_23]?></div></td>
     
   </tr>
   
   
 </table>
<br /> <br />

<table align="CENTER" width="100%" style="border: solid 1px #5544DD;border-collapse:collapse;" >
  <tr>
    <td  style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC""><div style="width:100px; text-align:center"><strong>BOOKING</strong></div></td>
    <td  style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC""><div style="width:100px; text-align:center"><strong>BUQUE</strong></div></td>
    <td  style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC""><div style="width:200PX; text-align:center"><strong>PUERTO DE DESCARGA</strong></div></td>
    <td  style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC""><div style="width:198px;text-align:center"><strong>DESTINO FINAL</strong></div></td>
    <td   style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC""><div style="width:100px;text-align:center"><strong>NO DE VIAJE</strong></div></td>
  </tr>
  <tr>
    <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:100px; text-align:center">
      <?=$booking_naviera?>
    </div></td>
    <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:100px; text-align:center"><? echo $buque;
             ?></div></td>
    <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:200px; text-align:center"><? echo $pod;?></div></td>
    <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:198px; text-align:center"><? echo $destino_final;?></div></td>
    <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:100px; text-align:center"><? echo $viaje;?></div></td>
  </tr>
</table>

<BR />  <br />

<table align="CENTER" width="100%" style="border: solid 1px #5544DD;border-collapse:collapse;" >
  <tr>
    <td  style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC"><strong>EXPORTADOR</strong></td>
    <td  style="text-align: left; border: solid 1px #55DD44;">LOGISTICA PORTUARIA DE ALTAMIRA SA. DE CV.</td>
    <td  style="text-align: left; border: solid 1px #55DD44;">&nbsp;</td>
    <td  style="text-align: left; border: solid 1px #55DD44;">&nbsp;</td>
 
  </tr>
  <tr>
    <td  style="text-align: left; border: solid 1px #55DD44;;background:#CCFFCC""><B>DIRECCION</B></td>
    <td  style="text-align: left; border: solid 1px #55DD44;">INDEPENDENCIA  NO.762  1er PISO</td>
    <td  style="text-align: left; border: solid 1px #55DD44;">&nbsp;</td>
    <td  style="text-align: left; border: solid 1px #55DD44;">&nbsp;</td>
 
  </tr>
  <tr>
    <td  style="text-align: left; border: solid 1px #55DD44;;background:#CCFFCC""><B>CIUDAD</B></td>
    <td  style="text-align: left; border: solid 1px #55DD44;">ALTAMIRA, TAMAULIPAS</td>
    <td  style="text-align: left; border: solid 1px #55DD44;;background:#CCFFCC""><B>R.F.C.</B></td>
    <td  style="text-align: left; border: solid 1px #55DD44;">LPV0102141S4</td>
 
  </tr>
</table>
<BR /><BR />


<table align="CENTER" width="100%" style="border: solid 1px #5544DD;border-collapse:collapse;" >
  <tr>
    <td  style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC"><strong>TRANSPORTISTA</strong></td>
    <td  style="text-align: left; border: solid 1px #55DD44;"><?=$art23[transportista_articulo_23]?></td>
    <td  style="text-align: left; border: solid 1px #55DD44;">&nbsp;</td>
    <td  style="text-align: left; border: solid 1px #55DD44;">&nbsp;</td>
 
  </tr>
  <tr>
    <td  style="text-align: left; border: solid 1px #55DD44;;background:#CCFFCC""><B>PLACAS</B></td>
    <td  style="text-align: left; border: solid 1px #55DD44;"><?=$art23[placas_articulo_23]?></td>
    <td  style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC"><B>ECONOMICO</B></td>
    <td  style="text-align: left; border: solid 1px #55DD44;"><?=$art23[economico_articulo_23]?></td>
 
  </tr>
  <tr>
    <td  style="text-align: left; border: solid 1px #55DD44;;background:#CCFFCC""><B>NOMBRE DEL CHOFER</B></td>
    <td  style="text-align: left; border: solid 1px #55DD44;"><?=$art23[nombre_del_chofer_articulo_23]?></td>
    <td  style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC"><B>NO LICENCIA</B></td>
    <td  style="text-align: left; border: solid 1px #55DD44;"><?=$art23[no_licencia_articulo_23]?></td>
 
  </tr>
</table>
<BR /><BR />

<div style="text-align:center; width:100%">Ciudad Madero, Tamaulipas a <?php echo date('d').'/'.mesador(date('m')).'/'.date('Y'); ?></div>
 
 
<BR /><br />
<div style="width:100%; max-width:100%; text-align:left"> Ag. Aduanal / Naviero: &nbsp; <b><u>LOGISTICA PORTUARIA DE ALTAMIRA, S.A. DE C.V.</u></b>&nbsp;&nbsp;RFC: <b><u>LPV010214IS4</u></b> <br />
Domicilio: &nbsp; <b><u>INDEPENDENCIA NO. 762 1ER PISO COL. CENTRO, ALTAMIRA, TAMAULIPAS</u></b> &nbsp;&nbsp;TEL: <b><u>9324111, 9328025 </u></b> </div>

<br /><br />
<br /><BR /><br /><BR /><br /><BR /><br /><BR />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div  style="width:40%; text-align:center; border-top:solid 1px BLACK;"><B><?=$_SESSION[nombre_usuario] ?><br />
  NOMBRE Y FIRMA DEL SOLICITANTE</B> </div>
</page>
 
