$this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C'); } } $pdf->FPDF('L', 'mm', 'A4'); //$pdf->Open(); $pdf->AliasNbPages(); $pdf->SetLeftMargin(15); $pdf->PageNo(); //$pdf->SetTopMargin(0); $pdf->AddPage(); $pdf->SetFont('Arial', '', 7); $numeroreporte = $auxiliares->numero_reporte_masivo_nuevo('rep_masivo_tec'); if ($_REQUEST['empresa_remite'] == '0') { $empresa = "TODOS"; } else { $empresa = $empresas->devuelve_empresaremite($_REQUEST['empresa_remite']); } //$cargo->nuevo_reportemensual($numeroreporte,$_REQUEST['empresa_remite'],$_REQUEST['fecha'],$_REQUEST['fechaf']); $pdf->Cell(270, 10, 'REPORTE TECNICO DE CARGOS MASIVOS Nº ' . $numeroreporte . '', 0, 0, 'C'); $pdf->Ln(10); $pdf->Cell(50, 5, 'DE: PERUMAIL EXPRESS S.A.C.', 0, 0, 'L'); //$pdf->Ln(5); $pdf->Cell(145, 5, 'PARA: ' . $empresa . '', 0, 0, 'L'); //$pdf->Ln(5); $pdf->Cell(150, 5, 'FECHA: del ' . $_REQUEST['fecha'] . ' al ' . $_REQUEST['fecha2'] . '', 0, 0, 'L'); $pdf->Ln(5); $pdf->Cell(275, 5, '', 0, 0, 'C'); $pdf->Ln(5); $pdf->SetWidths(array(10, 15, 20, 20, 60, 60, 25, 25)); //srand(microtime()*1000000); $pdf->Row(array('Nº', 'Nº Guia', 'Fec. Emis.', 'Zona', 'Consignado', 'Direccion', 'Ciudad', 'Observaciones'));
<td align="right" class="color_celda"> </td> <td align="center" class="color_celda"> </td> <td colspan="3"><input name="Submit" type="button" class="btn" value="Listar Cargos" onclick="ver_datos()" /></td> </tr> <tr> <td align="right"> </td> <td align="center"> </td> <td colspan="3"> </td> </tr> </table> <table width="950" border="0" align="center"> <tr align="center"> <td align="left" class="color_celda">Empresa</td> <td colspan="3" align="left"><span class="textoblanco"><?php echo strtoupper($empresas->devuelve_empresaremite($_REQUEST['empresa_remite'])); ?> </span></td> <td colspan="2" align="left">Del <span class="textoblanco"><?php echo $_REQUEST['fecha']; ?> </span> al <span class="textoblanco"><?php echo $_REQUEST['fecha2']; ?> </span></td> <td colspan="2" align="right"><span class="enfasis"> <input name="Submit4" type="button" class="btn" value="Generar Reporte" onclick="vista_previa()"/> </span></td> </tr> <tr align="center" class="fondonegro"> <td width="53">Nº Guia </td>
*/ $pdf = new PDF_MC_Table(); $pdf->FPDF('L', 'mm', 'A4'); //$pdf->Open(); $pdf->AliasNbPages(); $pdf->SetLeftMargin(15); $pdf->PageNo(); //$pdf->SetTopMargin(0); $pdf->AddPage(); $pdf->SetFont('Arial', '', 6); $numeroreportemensual = $auxiliares->numeroreportemensual_nuevo(); if ($_REQUEST['empresa'] == '0') { $courier = "TODOS"; } else { $courier = $empresas->devuelve_empresaremite($_REQUEST['empresa']); } $cargo->nuevo_reportemensual($numeroreportemensual, $_REQUEST['empresa'], $_REQUEST['fecha'], $_REQUEST['fechaf']); $pdf->Cell(275, 10, 'MANIFIESTO Nº ' . $numeroreportemensual . '', 0, 0, 'C'); $pdf->Ln(10); $pdf->Cell(50, 5, 'DE: PERUMAIL EXPRESS S.A.C.', 0, 0, 'L'); $pdf->Cell(170, 5, 'PARA: ' . $courier . '', 0, 0, 'L'); $pdf->Cell(39, 5, 'FECHA: del ' . $_REQUEST['fecha'] . ' al ' . $_REQUEST['fechaf'] . '', 0, 0, 'L'); $pdf->Ln(5); $pdf->Cell(275, 5, '', 0, 0, 'C'); $pdf->Ln(5); $pdf->SetWidths(array(8, 62, 10, 55, 80, 19, 30)); //srand(microtime()*1000000); $pdf->Row(array('Nº', 'Empresa Remitente', 'Nº Guia', 'Consignado', 'Dirección', 'Destino', 'Oficio')); $rs = $cargo->cargocourier_listar('', '', $_REQUEST['empresa'], $_REQUEST['fecha'], $_REQUEST['fechaf'], '4', ''); //$rs= $cargo->cargocourier_listar($_REQUEST['courier_destino'],'','',$_REQUEST['fecha'],$_REQUEST['fechaf'],'3','');