} $pdf = new pdf(); $pdf->AliasNbPages(); $titulos = array('MOVIMIENTO','PAGADA-CONTADO','PAGADA-CREDITO','COBRAR-CONTADO','COBRAR-CREDITO','TOTAL'); $medidas = array(20,35,35,35,35,35); $pdf->AddPage(); $pdf->SetFont('Arial','B',6); //Table with 20 rows and 4 columns $pdf->SetWidths($medidas); $pdf->Titulos($titulos,$medidas); $pdf->SetFont('Arial','',7); for($i=0;$i<count($data);$i++){ $pdf->Row($data[$i]); } $pdf->SetFont('Arial','B',6); $total = $pagcontado + $pagcredito + $cobcontado + $cobcredito; $pdf->addLeyenda2("TOTALES:",160,10); $pdf->addLeyenda2("$".number_format($pagcontado,2,'.',','),160,40); $pdf->addLeyenda2("$".number_format($pagcredito,2,'.',','),160,80); $pdf->addLeyenda2("$".number_format($cobcontado,2,'.',','),160,120); $pdf->addLeyenda2("$".number_format($cobcredito,2,'.',','),160,150); $pdf->addLeyenda2("$".number_format($total,2,'.',','),160,190); $pdf->Output(); ?>
$pdf->AliasNbPages(); $titulos = array('GUIA','FECHA','FLETE','DESCUENTO','FLETE NETO','COMISION','RECOLECCION','COMISION RAD','ENTREGA','COMISION EAD','COM. SOBREPESO','TOTAL','TOTAL GRAL','CONDICION','STATUS'); $medidas = array(22,15,20,20,25,20,20,20,20,20,20,35,35,25,40); $pdf->AddPage(); $pdf->SetFont('Arial','B',6); $pdf->SetWidths($medidas); $pdf->Titulos($titulos,$medidas); $pdf->SetFont('Arial','',6); for($i=0;$i<count($data);$i++){ $pdf->Row($data[$i]); } $pdf->addLeyenda2("TOTALES:",190,10); $pdf->addLeyenda2("$".number_format($flete,2,'.',','),190,55); $pdf->addLeyenda2("$".number_format($descuento,2,'.',','),190,75); $pdf->addLeyenda2("$".number_format($fleteneto,2,'.',','),190,100); $pdf->addLeyenda2("$".number_format($comision,2,'.',','),190,120); $pdf->addLeyenda2("$".number_format($recoleccion,2,'.',','),190,140); $pdf->addLeyenda2("$".number_format($comisionrad,2,'.',','),190,160); $pdf->addLeyenda2("$".number_format($entrega,2,'.',','),190,180); $pdf->addLeyenda2("$".number_format($comisionead,2,'.',','),190,200); $pdf->addLeyenda2("$".number_format($sobrepeso,2,'.',','),190,220); $pdf->addLeyenda2("$".number_format($total,2,'.',','),190,260); $pdf->addLeyenda2("$".number_format($totalgral,2,'.',','),190,300); $pdf->Output(); ?>
$i++; } return $nl; } } $pdf = new pdf(); $pdf->AliasNbPages(); $titulos = array('SUC','GUIAS','VALOR DECLARADO','SEGURO'); $medidas = array(20,30,70,70); $pdf->AddPage(); $pdf->SetFont('Arial','B',7); //Table with 20 rows and 4 columns $pdf->SetWidths($medidas); $pdf->Titulos($titulos,$medidas); $pdf->SetFont('Arial','',7); for($i=0;$i<count($data);$i++){ $pdf->Row($data[$i]); } $pdf->addLeyenda2("TOTAL:",260,30); $pdf->addLeyenda2($tguias,260,50); $pdf->addLeyenda2("$".number_format($tvalor,2,'.',','),260,100); $pdf->addLeyenda2("$".number_format($tseguro,2,'.',','),260,180); $pdf->Output(); ?>
$this->Line($r1, $mid, $r2, $mid); $this->SetXY($r1 + ($r2-$r1)/2 -3 , ($y1 + 1) -5 ); $this->SetFont("Arial", "", 7); $this->Cell(10,5, utf8_decode($titulo), 0, 0, "C"); $this->SetXY($r1 + ($r2-$r1)/2 -5 , $y1 + 5 ); $this->SetFont( "Arial", "", 7); $this->Cell(10,5, utf8_decode($mode), 0, 0, "C"); } } $pdf = new pdf(); $pdf->AliasNbPages(); $titulos = array('CANTIDAD','DESCRIPCION','CONTENIDO','PESO KG','PESO VOL'); $medidas = array(20,60,60,18,18); $pdf->AddPage(); $pdf->SetFont('Arial','B',7); $pdf->SetWidths($medidas); $pdf->Titulos($titulos,$medidas); $pdf->SetFont('Arial','',7); for($i=0;$i<count($data);$i++){ $pdf->Row($data[$i]); } $pdf->addLeyenda2("EVALUADOR: ".$e->empleado."",240,10); $pdf->addFirma("FIRMA CONFORMIDAD",80,260,"",60); $pdf->Output(); ?>
} return $nl; } } $pdf = new pdf('L','mm','A4'); $pdf->AliasNbPages(); $titulos = array('SUC','GUIA','FECHA','REMITENTE','DESTINATARIO','VALOR DECLARADO','SEGURO'); $medidas = array(15,25,20,80,80,27,27); $pdf->Header($_GET[fechainicio],$_GET[fechafin]); $pdf->AddPage(); $pdf->SetFont('Arial','B',7); //Table with 20 rows and 4 columns $pdf->SetWidths($medidas); $pdf->Titulos($titulos,$medidas); $pdf->SetFont('Arial','',7); for($i=0;$i<count($data);$i++){ $pdf->Row($data[$i]); } $pdf->addLeyenda2("TOTAL:",180,210); $pdf->addLeyenda2("$".number_format($tvalor,2,'.',','),180,235); $pdf->addLeyenda2("$".number_format($tseguro,2,'.',','),180,265); // $pdf->Output(); ?>
} } else { $i = $sep + 1; } $sep = -1; $j = $i; $l = 0; $nl++; } else { $i++; } } return $nl; } } $pdf = new pdf('L', 'mm', 'A4'); $pdf->AliasNbPages(); $titulos = array('ESTADO', 'CLIENTE', 'DIRECCION', 'REFERENCIA', 'FECHA', 'F. VENCIMIENTO', 'COBRAR', 'OBSERVACIONES'); $medidas = array(20, 60, 65, 30, 20, 22, 25, 40); $pdf->AddPage(); $pdf->SetFont('Arial', 'B', 7); //Table with 20 rows and 4 columns $pdf->SetWidths($medidas); $pdf->Titulos($titulos, $medidas); $pdf->SetFont('Arial', '', 7); for ($i = 0; $i < count($data); $i++) { $pdf->Row($data[$i]); } $pdf->addLeyenda2("TOTAL:", 180, 200); $pdf->addLeyenda2("\$" . number_format($tpagado, 2, '.', ','), 180, 238); $pdf->Output();