From 7be16e14c14cc8dbec5f482533e72df51ceeb5da Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 16 Apr 2005 17:53:47 +0000 Subject: [PATCH] Ajout de l'Header --- .../mods/pdf/pdf_expedition.class.php | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/htdocs/expedition/mods/pdf/pdf_expedition.class.php b/htdocs/expedition/mods/pdf/pdf_expedition.class.php index a589b6d5c0d..98e3c73cc21 100644 --- a/htdocs/expedition/mods/pdf/pdf_expedition.class.php +++ b/htdocs/expedition/mods/pdf/pdf_expedition.class.php @@ -26,6 +26,31 @@ require_once DOL_DOCUMENT_ROOT.'/includes/fpdf/DolibarrPdfBarCode.class.php'; Class pdf_expedition extends DolibarrPdfBarCode { + function Header() + { + $this->rect(5, 5, 200, 30); + + $this->Code39(8, 8, $this->expe->ref); + + $this->SetFont('Arial','', 14); + $this->Text(105, 12, "Bordereau d'expédition : ".$this->expe->ref); + $this->Text(105, 18, "Date : " . strftime("%d %b %Y", $this->expe->date)); + $this->Text(105, 24, "Page : ". $this->PageNo() ."/{nb}", 0); + + + $this->rect(5, 40, 200, 250); + + $this->tableau_top = 40; + + $this->SetFont('Arial','', 10); + $a = $this->tableau_top + 5; + $this->Text(10, $a, "Produit"); + $this->Text(166, $a, "Quantitée"); + $this->Text(166, $a+4, "Commandée"); + $this->Text(190, $a, "Livrée"); + + } + } ?>