<? session_start();
include("../comun/conexion3.php");
include("../comun/conex_ver.php");
include("../comun/funciones.php");
$link_impo=con_impo();$link=con_ver();
$tmp= explode('/', dirname(__FILE__)) ; 
$directorio_principal= $tmp[4];	
include("constantes.php"); 
    
	
$referencia = $_GET[referencia]; 
$referencia = str_replace("\'","'",$referencia);
$referencia_cliente = $_GET[referencia_cliente]; 
$referencia_cliente = str_replace("\'","'",$referencia_cliente);
if(trim($referencia)==''){
con_ver();	
$referencia = busquedaB($link,"select referencia from referencias_veracruz where referencia_cliente = '".trim($referencia_cliente)."'","referencia");
}
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,$almacen_consolidacion;
global $r0,$r1,$r2,$r3,$r4,$r5,$r6,$r7;
global $un;
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);

regimen($link,$referencia_cliente);
un_($link,$referencia_cliente);
 
?>
<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 width="41%" align="left" style="text-align: left;    width: 50%; ">
        <span style="font-size:9px"><?=$DIRECCION3[$directorio_principal]?></span>

        </td>
                <td width="31%" style="text-align: center;    width: 45%;font-size:9px"><?=$TELEFONO[$directorio_principal]?></td>
                <td width="28%" style="text-align: right;    width: 25%">P&Aacute;GINA [[page_cu]]/[[page_nb]]</td>
            </tr>
      </table>
    </page_footer>
 <br /> 
 <div align="center"><span style="text-align: left;    width: 30%"><img src="<?="https://".$_SERVER["SERVER_NAME"]?>/<?=$directorio_principal?>/images/logo_lpv.jpg" />
 
 
 </span> </div>
 <br />  
 
   <?
 
$almacen_consolidacion = strpos($almacen_consolidacion,'INFRAESTRUCTURA PORTUARIA MEXICANA S.A. DE C.V.')!==false ? 'INFRAESTRUCTURA PORTUARIA MEXICANA S.A. DE C.V.' : $almacen_consolidacion;
$almacen_consolidacion = strpos($almacen_consolidacion,'ALTAMIRA TERMINAL PORTUARIA S.A. DE C.V.')!==false ? 'ALTAMIRA TERMINAL PORTUARIA S.A. DE C.V.' : $almacen_consolidacion;
$almacen_consolidacion = strpos($almacen_consolidacion,'ALTAMIRA TERMINAL MULTIMODAL')!==false ? 'ALTAMIRA TERMINAL MULTIMODAL' : $almacen_consolidacion;
$almacen_consolidacion = strpos($almacen_consolidacion,'ALPASA')!==false ? 'ALPASA' : $almacen_consolidacion;
 
?>

  <div align="center"><span style="text-align: center;width: 100%"><b>FORMATO DE INGRESO DE CONTENEDORES LLENOS EXPORTACION A LA TERMINAL DE <?=$almacen_consolidacion?></b></span></div>
  <br />  																																																									

 <div align="left"><b><!--INTERNACIONAL DE CONTENEDORES ASOCIADOS DE VERACRUZ--><br />PRESENTE</b></div>
 
 <br />
 
  <div align="justify" style="width:100%; max-width:100%"> 
 POR MEDIO DE LA PRESENTE Y CON FUNDAMENTO EN EL ART. 23 DE LA LEY ADUANERA EN VIGOR, SOLICITO EL INGRESO DEL (LOS) SIGUIENTE (S) CONTENEDOR (ES) DE:
 </div>
 <br />
  <table style="width: 100%;">
    <tr>
      <td style="text-align: CENTER;width: 50%;"><b>IMPORTACION</b></td>
      <td style="text-align: CENTER;width: 1%"></td>
      <td style="text-align: center;width: 40%;"><b>EXPORTACION XXXXXXXX</b></td>
    </tr>
  </table>
    <br />
  <table style="width: 80%;" align="left">
    <tr>
      <td rowspan="4" valign="top" style="text-align: left;width: 10%;"><b>DESDE </b></td>
      <td style="text-align: left;width: 20%;">API <?= $desde == 'API' ? 'XXXXXXX' : ''?></td>
      <td rowspan="4" valign="top" style="text-align: left;width: 10%;"><b>HACIA </b></td>
      <td style="text-align: left;width: 20%;">API <?= $hacia == 'API' ? 'XXXXXXX' : ''?></td>
    </tr>
    <tr>
      <td style="text-align: left;width: 20%;">ICAVE  <?= $desde == 'ICAVE' ? 'XXXXXXX' : ''?></td>
      <td style="text-align: left;width: 20%;">ICAVE <?= $hacia == 'ICAVE' ? 'XXXXXXX' : ''?></td>
    </tr>
    <tr>
      <td style="text-align: left;width: 20%;">CICE  <?= $desde == 'CICE' ? 'XXXXXXX' : ''?></td>
      <td style="text-align: left;width: 25%;">MUELLE 7  <?= $hacia == 'MUELLE 7' ? 'XXXXXXX' : ''?></td>
    </tr>
    <tr>
      <td style="text-align: left;width: 20%;">RICSA  <?= $desde == 'RICSA' ? 'XXXXXXX' : ''?></td>
      <td style="text-align: left;width: 20%;">TMU CICE  <?= $hacia == 'TMU CICE' ? 'XXXXXXX' : ''?></td>
    </tr>
  </table>

<br />
  
  <table style="width: 100%;" align="left">
   <tr> 
   <td style="text-align: right;width: 34%;"><B>MERCANCIA</B></td>
   <td style="text-align: LEFT;width: 20%;"><B><U>CARGA GENERAL</U></B></td>
   
   <td style="text-align: CENTER;width: 7%;"><B>TIPO</B></td>
   <td style="text-align: center;width: 7%;border: solid 1px black;"><B><?=$tipo_mercancia?></B></td>
   </tr>
</table>
  

 <br /> 
 <table style="width: 100%;" >
   <tr> 
   <td style="text-align: right;width: 30%;"><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>
   </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>CONTENEDOR</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:40px;max-width:40px"><b>MED</b></div></td>
     <td   style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC"><div style="width:70px; max-width:70px"><b>TIPO</b></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;background:#CCFFCC"><div style="width:105px;max-width:105px"><b>SELLOS</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:80px;max-width:80px"><b>TARA</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"><?=$contenedor?></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:40px;max-width:40px"><?=$linea?></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:40px;max-width:40px"><?=$dimension?></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:70px; max-width:70px"><?=$tipo?></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:105px;max-width:105px"><?=$sello?></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">
       <?= $tweight!='' ? number_format($tweight,2) : '';?>
     </span></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:80px;max-width:80px"><span style="width:400px; text-align:left"><? echo number_format($tara,2);?></span></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:95px;max-width:95px">
       <?= $peso_neto_con_tara!='' ? number_format($peso_neto_con_tara,2) : '';?>
     </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"><? echo $tipos_de_imo;?></span></div></td>
     <td  style="text-align: left; border: solid 1px #55DD44;"><div style="width:40px;max-width:40px"><?=$un?></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[$directorio_principal]?></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;"><?=$DIRECCION1[$directorio_principal]?><BR />
 
</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;"><?=$DIRECCION2[$directorio_principal]?></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;"><?=$RFC[$directorio_principal]?></td>
 
  </tr>
</table>
<BR /><BR />


<div style="text-align:center; width:100%"><?=$CIUDAD[$directorio_principal]?> 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[$directorio_principal]?></u></b> &nbsp;&nbsp;RFC: <b><u><?=$RFC[$directorio_principal]?></u></b> <br />
Domicilio: &nbsp; <b><u><?=$DIRECCION_COMPLETA[$directorio_principal]?></u></b> &nbsp;&nbsp;TEL: <b><u><?=$TELEFONO_COMPLETO[$directorio_principal]?></u></b> </div>

<br /><br />
<div style="width:100%; max-width:100%; text-align:left;border: solid 1px #666666;"> 
<B>Ccp Administraci&oacute;n Portuaria Integral de <?=$CIUDAD_UCASE[$directorio_principal]?>, S.A. de C.V. / M&oacute;dulo de control de Accesos<BR />
"SE NOTIFICA LA CARGA DE EXPORTACION CONFORME LAS DISPOSICIONES SEŅALADAS EN LA REGLA 16.31 PARTE B DEL CODIGO ISPS"</B>
</div>
    
<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 /><br><?=$_SESSION[gafete] ?><br />
  DEPARTAMENTO DE EXPORTACION</B> </div>
</page>
 
