From 0aa6deab5ced6ba323002203a9ce65b294a15a29 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 29 Feb 2004 14:32:39 +0000 Subject: [PATCH] Modification pour utilisation des liens interpages --- htdocs/includes/fpdf/fpdf_indexes.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/htdocs/includes/fpdf/fpdf_indexes.php b/htdocs/includes/fpdf/fpdf_indexes.php index 8c706a7fc26..e672a9042fc 100644 --- a/htdocs/includes/fpdf/fpdf_indexes.php +++ b/htdocs/includes/fpdf/fpdf_indexes.php @@ -38,9 +38,13 @@ class PDF_Indexes extends FPDF } } - function ReferenceNewPage() + function ReferenceNewPage($link='') { $this->AddPage(); + if ($link) + { + $this->SetLink($link); + } $this->SetFont('Arial','',15); $this->SetXY(10,10); $this->MultiCell(190,12, $this->IndexesName[$this->IndexName], 1 ,'C', 0); @@ -65,14 +69,15 @@ class PDF_Indexes extends FPDF } } - function CreateReference($NbCol, $index) + function CreateReference($NbCol, $index, $link='') { $this->YMax = 270; $this->NbCol = $NbCol; $this->SetCol(0); $this->IndexName = $index; + $page = 1; // New Page - $this->ReferenceNewPage(); + $page = $this->ReferenceNewPage($link); //Initialization $this->SetFontSize(8);