Esempio n. 1
0
 function Footer()
 {
     $txt = '';
     if ($this->footer_param['form']) {
         $txt = HTML2PDF::textGET('pdf05');
     }
     if ($this->footer_param['date'] && $this->footer_param['heure']) {
         $txt .= ($txt ? ' - ' : '') . HTML2PDF::textGET('pdf03');
     }
     if ($this->footer_param['date'] && !$this->footer_param['heure']) {
         $txt .= ($txt ? ' - ' : '') . HTML2PDF::textGET('pdf01');
     }
     if (!$this->footer_param['date'] && $this->footer_param['heure']) {
         $txt .= ($txt ? ' - ' : '') . HTML2PDF::textGET('pdf02');
     }
     if ($this->footer_param['page']) {
         $txt .= ($txt ? ' - ' : '') . HTML2PDF::textGET('pdf04');
     }
     if (strlen($txt) > 0) {
         $txt = str_replace('[[date_d]]', date('d'), $txt);
         $txt = str_replace('[[date_m]]', date('m'), $txt);
         $txt = str_replace('[[date_y]]', date('Y'), $txt);
         $txt = str_replace('[[date_h]]', date('H'), $txt);
         $txt = str_replace('[[date_i]]', date('i'), $txt);
         $txt = str_replace('[[date_s]]', date('s'), $txt);
         $txt = str_replace('[[current]]', $this->PageNo(), $txt);
         $txt = str_replace('[[nb]]', '{nb}', $txt);
         parent::SetY(-11);
         $this->setOverline(false);
         $this->setLinethrough(false);
         $this->SetFont('helvetica', 'I', 8);
         $this->Cell(0, 10, $txt, 0, 0, 'R');
     }
 }