- Add the grade and school of each student to the signature page.

This commit is contained in:
dave 2007-12-22 04:20:17 +00:00
parent 0d0e6bbb0f
commit e7a5ad183d

View File

@ -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'");