";
echo error(i18n("No PDF generation library detected"),true);
}
echo i18n("Signature Page");
- if($statusstudent=="complete" && $statusproject=="complete" && $statusmentor=="complete" && $statussafety=="complete")
+ if($statusstudent=="complete" && $statusproject=="complete" && $statusmentor=="complete" && $statussafety=="complete" && $statusemergencycontact=="complete" && $statustour=="complete")
echo "";
echo " | ";
echo i18n("Print");
diff --git a/register_participants_signature.php b/register_participants_signature.php
index d2fc9f14..912ddcf6 100644
--- a/register_participants_signature.php
+++ b/register_participants_signature.php
@@ -129,6 +129,13 @@ $pdf->newPage();
foreach($studentinfoarray AS $studentinfo)
{
+ //we want to make sure the vspace, line, and text under the line dont
+ //get wrapped onto multiple pages, so make sure we have enough space for the whole thing before we
+ //start, and if we dont, make a new page. normal stop for footer is at 0.9, so 1.65 gives 0.75 inches
+ //which should be enough... i think :)
+ if($pdf->yloc< 1.65 )
+ $pdf->newPage();
+
$pdf->vspace($height['sigspace']);
//signature line
@@ -162,6 +169,13 @@ $pdf->newPage();
foreach($studentinfoarray AS $studentinfo)
{
+ //we want to make sure the vspace, line, and text under the line dont
+ //get wrapped onto multiple pages, so make sure we have enough space for the whole thing before we
+ //start, and if we dont, make a new page. normal stop for footer is at 0.9, so 1.65 gives 0.75 inches
+ //which should be enough... i think :)
+ if($pdf->yloc< 1.65 )
+ $pdf->newPage();
+
$pdf->vspace($height['sigspace']);
//signature line
@@ -192,6 +206,14 @@ $pdf->newPage();
$teacherbox=$r->text;
$pdf->addText($teacherbox);
+ //we want to make sure the vspace, line, and text under the line dont
+ //get wrapped onto multiple pages, so make sure we have enough space for the whole thing before we
+ //start, and if we dont, make a new page. normal stop for footer is at 0.9, so 1.65 gives 0.75 inches
+ //which should be enough... i think :)
+ if($pdf->yloc< 1.65 )
+ $pdf->newPage();
+
+
//we only need 1 teacher signature line, we can assume (maybe incorrectly) that both students
//have the same teacher.. if they are not the same, then they can get the best teacher to sign
//it doesnt matter.
|