/**
  * Edition de l'entete des journaux
  *
  * @return void
  */
 function editEntete()
 {
     $this->page++;
     $this->pdf->AddPage();
     $this->pdf->setFont($this->font, '', 10);
     $nom_journal = "";
     switch ($this->type_pdf) {
         case "paiement":
             $nom_journal = "Journal des paiements";
             break;
         case "debiteur":
             $nom_journal = "Journal de facturation";
             break;
         case "rappel":
             $nom_journal = "Journal rappels/contentieux";
             break;
         case "checklist":
             $definitive = $this->definitive ? "définitives" : "provisoires";
             $nom_journal = "Liste factures {$definitive} arrétées au " . CMbDT::transform("", CMbDT::date(), '%d/%m/%Y');
             break;
     }
     $this->editCell(10, 10, 70, CGroups::loadCurrent()->text);
     $this->pdf->Cell(160, "", $nom_journal, null, null, "C");
     $this->pdf->Cell(67, "", "Page: " . $this->page);
     $this->editCell(10, 15, 70, "Date : " . CMbDT::transform("", CMbDT::dateTime(), '%d/%m/%Y - %H:%M'));
     $this->editCell(240, 15, 70, "Numéro journal: " . $this->journal_id);
     //Les lignes
     $this->pdf->Line(5, 20, 293, 20);
     $this->pdf->Line(5, 30, 293, 30);
     $this->pdf->Line(5, 5, 5, 205);
     $this->pdf->Line(5, 5, 293, 5);
     $this->pdf->Line(293, 5, 293, 205);
     $this->pdf->Line(5, 205, 293, 205);
     $this->pdf->setFont($this->font, '', 9);
 }
 /**
  * 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);
         }
     }
 }