pull the signature page information from the database, instead of hardcoded

This commit is contained in:
james 2006-02-23 23:25:53 +00:00
parent 45b4f7b220
commit caa1f593af

View File

@ -109,14 +109,22 @@ $pdf->newPage();
$pdf->addText($topboxtext); $pdf->addText($topboxtext);
$pdf->hr(); $pdf->hr();
$q=mysql_query("SELECT * FROM signaturepage WHERE name='exhibitordeclaration'");
$r=mysql_fetch_object($q);
if($r->use)
{
$pdf->heading(i18n("Exhibitor Declaration")); $pdf->heading(i18n("Exhibitor Declaration"));
$studentbox=$r->text;
/*
$studentbox="The following section is to be read and signed by the exhibitor$plural.\n\n". $studentbox="The following section is to be read and signed by the exhibitor$plural.\n\n".
($plural?"We":"I")." certify that:\n". ($plural?"We":"I")." certify that:\n".
" - The preparation of this project is mainly ".($plural?"our":"my")." own work\n". " - The preparation of this project is mainly ".($plural?"our":"my")." own work\n".
" - ".($plural?"We":"I")." have read the rules and regulations and agree to abide by them\n". " - ".($plural?"We":"I")." have read the rules and regulations and agree to abide by them\n".
" - ".($plural?"We":"I")." agree that the decision of the judges will be final\n"; " - ".($plural?"We":"I")." agree that the decision of the judges will be final\n";
*/
$pdf->addText($studentbox); $pdf->addText($studentbox);
foreach($studentinfoarray AS $studentinfo) foreach($studentinfoarray AS $studentinfo)
@ -140,18 +148,18 @@ $pdf->newPage();
} }
$pdf->hr(); $pdf->hr();
}
$q=mysql_query("SELECT * FROM signaturepage WHERE name='parentdeclaration'");
$r=mysql_fetch_object($q);
if($r->use)
{
//now for the parent/guardian signatures //now for the parent/guardian signatures
$pdf->heading(i18n("Parent/Guardian Declaration")); $pdf->heading(i18n("Parent/Guardian Declaration"));
$parentbox="The following is to be read and signed by the exhibitor$plural parent$plural/guardian$plural.\n\n". $parentbox=$r->text;
" - As a parent/guardian I certify to the best of my knowledge and believe the information contained in this application is correct, and the project is the work of the student. I also understand that the material used in the project is the responsibility of the student and that neither the school, the teacher, nor the ".$config['fairname']." can be held responsible for loss, damage, or theft, however caused. I further understand that all exhibits entered must be left on display until the end of the Fair. If my son/daughter does not remove the exhibit at the end of the Fair, the ".$config['fairname']." or the owner of the exhibition hall cannot be responsible for the disposal of the exhibit.\n\n".
" - If my son/daughter is awarded the honour of having his/her exhibit chosen for presentation at the Canada-Wide Science Fair, I consent to having him/her journey to the Fair, and will not hold the Fair responsible for any accident or mishap to the student or the exhibit.\n";
$pdf->addText($parentbox); $pdf->addText($parentbox);
foreach($studentinfoarray AS $studentinfo) foreach($studentinfoarray AS $studentinfo)
{ {
$pdf->vspace($height['sigspace']); $pdf->vspace($height['sigspace']);
@ -171,6 +179,7 @@ $pdf->newPage();
$pdf->nextLine(); $pdf->nextLine();
} }
}
/* /*