From e7a5ad183dfbf183a64a0badda7e5fe93bbcb0b5 Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 22 Dec 2007 04:20:17 +0000 Subject: [PATCH] - Add the grade and school of each student to the signature page. --- register_participants_signature.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/register_participants_signature.php b/register_participants_signature.php index 912ddcf..55e316d 100644 --- a/register_participants_signature.php +++ b/register_participants_signature.php @@ -96,18 +96,24 @@ $pdf->newPage(); else $plural=""; - $topboxtext.="Exhibitor$plural: "; + $pdf->heading(i18n("Registration Summary")); + $pdf->addText($topboxtext); + $pdf->nextline(); + + $pdf->addTextX("Exhibitor$plural: ", 0.75); + foreach($studentinfoarray AS $studentinfo) { - $topboxtext.="$studentinfo->firstname $studentinfo->lastname, "; + $qq = mysql_query("SELECT school FROM schools WHERE id={$studentinfo->schools_id}"); + $rr = mysql_fetch_object($qq); + + $pdf->addTextX("$studentinfo->firstname $studentinfo->lastname, Grade {$studentinfo->grade}, {$rr->school}", 1.5); + $pdf->nextline(); } //strip off the last comma - $pdf->heading(i18n("Registration Summary")); - $topboxtext=substr($topboxtext,0,-2); //add the newline // $topboxtext.="\n"; - $pdf->addText($topboxtext); $pdf->hr(); $q=mysql_query("SELECT * FROM signaturepage WHERE name='exhibitordeclaration'");