cn = $p_cn; $this->own = new own($this->cn); $this->soc = $this->own->MY_NAME; $this->date = date('d.m.Y'); } function setDossierInfo($dossier = "n/a") { $this->dossier = utf8_decode(dossier::name()." ".$dossier); } function Header() { //Arial bold 12 $this->SetFont('Arial', 'B', 12); //Title $this->Cell(0,10,$this->dossier, 'B', 0, 'C'); //Line break $this->Ln(20); } function Footer() { //Position at 1.5 cm from bottom $this->SetY(-15); //Arial italic 8 $this->SetFont('Arial', 'I', 8); //Page number $this->Cell(0,10,'Date '.$this->date." - Page ".$this->PageNo().'/{nb}',0,0,'C'); } function Cell ($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='') { $txt = str_replace("\\", "", $txt); return parent::Cell($w, $h, utf8_decode($txt), $border, $ln, $align, $fill, $link); } }