Beispiel #1
0
 $supp = new Supplier();
 $supp->setSID($_POST['Supplier_ID']);
 $supp->setSupplierDetails();
 $pdf = new PDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
 //$pdf->AliasNbPages();
 $pdf->setAutoPageBreak(TRUE, 45);
 $pdf->AddPage('P', 'A4');
 $pdf->SetFont('helvetica', 'B', 13);
 $pdf->SetY(56);
 $pdf->Cell(125, 8, $supp->getName(), 0, 0, 'L');
 $pdf->SetFont('helvetica', 'B', 14);
 $pdf->Cell(100, 8, "DC NO: {$dcno}", 0, 1, 'L');
 $pdf->SetFont('helvetica', '', 13);
 $pdf->Cell(125, 8, $supp->getAddressl1(), 0, 0, 'L');
 $pdf->Cell(100, 8, "Date: {$dcdate}", 0, 1, 'L');
 $pdf->Cell(125, 8, $supp->getAddressl2(), 0, 0, 'L');
 $pdf->Cell(100, 8, "Your Ref: {$cref}", 0, 1, 'L');
 $pdf->Cell(125, 8, "Phone No: " . $supp->getPhoneNo(), 0, 0, 'L');
 $pdf->Cell(100, 8, "Date: {$crefdate}", 0, 1, 'L');
 $pdf->ln();
 $pdf->line(0, 87, 220, 87);
 //line before mode of dispatch
 $pdf->setY(86);
 $pdf->MultiCell(125, 16, "Please receive the following materials and acknowledge the receipt", 0, 'L', 0, 0, '', '', true, 0, false, true, 16, 'M', true);
 $pdf->Cell(100, 8, "Mode Of Dispatch: {$dmode}", 0, 1, 'L');
 $pdf->Cell(125, 8, "", 0, 0, 'L');
 $pdf->Cell(100, 8, "Status: {$dctype}", 0, 1, 'L');
 $pdf->SetFont('helvetica', '', 10);
 $pdf->Cell(150, 8, '', 0, 1, 'L');
 $pdf->line(0, 101, 220, 101);
 //line after mode of dispatch
Beispiel #2
0
     $previewok = $_POST['previewok'];
 } else {
     $previewok = '';
 }
 if (isset($_POST['opid'])) {
     $po->setValue('potermid', $_POST['opid']);
     $potermid = $_POST['opid'];
 }
 $popath = '/home/www/divyaeng2/popdfs/';
 //	$popath='/www/divyaeng2/popdfs/';
 $supp = new Supplier();
 $supp->setSID($_POST['Supplier_ID']);
 $supp->setSupplierDetails();
 $sname = $supp->getName();
 $addli = $supp->getAddressl1();
 $addl2 = $supp->getAddressl2();
 $phoneno = $supp->getPhoneNo();
 class PDF extends TCPDF
 {
     // Page header
     function Header()
     {
         $sname = $GLOBALS['sname'];
         $addli = $GLOBALS['addli'];
         $addl2 = $GLOBALS['addl2'];
         $podate = $GLOBALS['podate'];
         $suppref = $GLOBALS['suppref'];
         $phoneno = $GLOBALS['phoneno'];
         $supprefdate = $GLOBALS['supprefdate'];
         $pono = $GLOBALS['pono'];
         // Logo