/** * Création du second type d'en-tête possible d'un justificatif, celui-ci étant plus léger * * @param int $nb le numéro de la page * * @return void */ function ajoutEntete2($nb) { $this->pdf->setFont($this->fontb, '', 12); $this->pdf->WriteHTML("<h4>Justificatif de remboursement</h4>"); $this->pdf->setFont($this->font, '', 8); $this->pdf->SetFillColor(255, 255, 255); $this->pdf->SetDrawColor(0); $this->pdf->Rect(10, 18, 180, 20); $auteur = substr($this->auteur["adresse1"], 0, 29) . " " . $this->auteur["cp"] . " " . $this->auteur["ville"]; $presta = $this->fourn_presta; $presta_adresse = substr($presta["adresse1"], 0, 29) . " " . $presta["0"]->cp . " " . $presta["0"]->ville; $lignes = array(array("Document", "Identification", $this->facture->_id . " " . CMbDT::format(null, "%d.%m.%Y %H:%M:%S"), "", "Page {$nb}"), array("Auteur", "N° EAN(B)", $this->auteur["EAN"], $this->auteur["nom"], " Tél: " . $this->auteur["tel"]), array("Facture", "N° RCC(B)", $this->auteur["RCC"], $auteur, "Fax: " . $this->auteur["fax"]), array("Four.de", "N° EAN(P)", $presta["EAN"], $presta["nom_dr"], " Tél: " . $presta["0"]->tel), array("prestations", "N° RCC(B)", $presta["RCC"], $presta_adresse, "Fax: " . $presta["0"]->fax)); $this->pdf->setXY(10, $this->pdf->getY() - 4); foreach ($lignes as $ligne) { $this->pdf->setXY(10, $this->pdf->getY() + 4); foreach ($ligne as $key => $value) { $this->pdf->Cell($this->colonnes[$key], "", $value); } } }