Don't do a newpage for empty awards if we're not showing them. Move the pronunciation key to a new line so it doesn't overlap the school.

This commit is contained in:
dave 2010-04-10 03:56:53 +00:00
parent 8c83a9a755
commit 02244937d2

View File

@ -77,8 +77,6 @@ if(!$scriptformat) $scriptformat="default";
if(mysql_num_rows($q)) {
while($r=mysql_fetch_object($q)) {
if($scriptformat=="formatted")
$rep->newPage();
$pq=mysql_query("SELECT
award_prizes.prize,
@ -118,6 +116,9 @@ if(!$scriptformat) $scriptformat="default";
}
mysql_data_seek($pq, 0);
}
if($scriptformat=="formatted")
$rep->newPage();
if($scriptformat=="default")
$rep->heading("$r->name ($r->type)");
if($scriptformat=="formatted") {
@ -209,8 +210,10 @@ if(!$scriptformat) $scriptformat="default";
for($x=0; $x<$studnum; $x++) {
$rep->addTextX($student_winner[$x],1.4);
$rep->addTextX($student_school[$x],5.5);
if($show_pronunciation == TRUE && $student_win_pronunc[$x])
$rep->addTextX("({$student_win_pronunc[$x]})",4.0);
if($show_pronunciation == TRUE && $student_win_pronunc[$x]) {
$rep->nextline();
$rep->addTextX("({$student_win_pronunc[$x]})",2.0);
}
if($type=="pdf")
$rep->nextline();
}