Esempio n. 1
0
 function Header()
 {
     parent::Header();
     //Print the table header if necessary
     if ($this->ProcessingTable) {
         $this->TableHeader();
     }
 }
Esempio n. 2
0
 static function output_pdf($head, $foot, $data, $encode = "cn2", $length = 10000)
 {
     include ROOT . 'lib/pdf/fpdf.php';
     include ROOT . 'lib/pdf/mbttfdef.php';
     include ROOT . 'lib/pdf/mbfpdf.php';
     include ROOT . 'lib/pdf/helveticab.php';
     include ROOT . 'lib/pdf/pdfall.php';
     $pdf = new PDFALL($encode);
     $pdf->pdfsetheaderfooter(self::pdf_change_encode(limit_length($head, 100), $encode), self::pdf_change_encode(limit_length($foot, 100), $encode));
     $pdf->AliasNbPages();
     $pdf->Open();
     $pdf->AddPage();
     $str = self::pdf_change_encode(limit_length($data, $length), $encode);
     $pdf->wrpdf01($str, 12);
     $pdf->Output("yourfile.pdf", "D");
 }