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
This commit is contained in:
james 2007-03-14 01:18:18 +00:00
parent faceec20ed
commit a318e2d1fa

View File

@ -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();