From a318e2d1fa6872c5199e0184680d5a5f7f876955 Mon Sep 17 00:00:00 2001 From: james Date: Wed, 14 Mar 2007 01:18:18 +0000 Subject: [PATCH] Always for the project number position, incase the project title wraps onto two lines, this prevents the table labels from spilling over to two pages. Also fix it so it doesnt have a final blank page at the end --- admin/reports_projects_tablelabels.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/reports_projects_tablelabels.php b/admin/reports_projects_tablelabels.php index 5022e8c..45d7e9d 100644 --- a/admin/reports_projects_tablelabels.php +++ b/admin/reports_projects_tablelabels.php @@ -142,6 +142,7 @@ "); echo mysql_error(); + $num=mysql_num_rows($projq); while($proj=mysql_fetch_object($projq)) { $rep->setFontSize(22); @@ -151,6 +152,7 @@ $rep->nextLine(); $rep->setFontSize(150); + $rep->yloc=6.75; if($projectnumber) $rep->addtext($proj->projectnumber,"center"); else @@ -194,7 +196,9 @@ else if($division) $rep->addText(i18n($proj->division),"center"); - $rep->newPage(); + $index++; + if($index!=$num) + $rep->newPage(); } $rep->output();