forked from science-ation/science-ation
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:
parent
8c83a9a755
commit
02244937d2
@ -77,8 +77,6 @@ if(!$scriptformat) $scriptformat="default";
|
|||||||
|
|
||||||
if(mysql_num_rows($q)) {
|
if(mysql_num_rows($q)) {
|
||||||
while($r=mysql_fetch_object($q)) {
|
while($r=mysql_fetch_object($q)) {
|
||||||
if($scriptformat=="formatted")
|
|
||||||
$rep->newPage();
|
|
||||||
|
|
||||||
$pq=mysql_query("SELECT
|
$pq=mysql_query("SELECT
|
||||||
award_prizes.prize,
|
award_prizes.prize,
|
||||||
@ -118,6 +116,9 @@ if(!$scriptformat) $scriptformat="default";
|
|||||||
}
|
}
|
||||||
mysql_data_seek($pq, 0);
|
mysql_data_seek($pq, 0);
|
||||||
}
|
}
|
||||||
|
if($scriptformat=="formatted")
|
||||||
|
$rep->newPage();
|
||||||
|
|
||||||
if($scriptformat=="default")
|
if($scriptformat=="default")
|
||||||
$rep->heading("$r->name ($r->type)");
|
$rep->heading("$r->name ($r->type)");
|
||||||
if($scriptformat=="formatted") {
|
if($scriptformat=="formatted") {
|
||||||
@ -209,8 +210,10 @@ if(!$scriptformat) $scriptformat="default";
|
|||||||
for($x=0; $x<$studnum; $x++) {
|
for($x=0; $x<$studnum; $x++) {
|
||||||
$rep->addTextX($student_winner[$x],1.4);
|
$rep->addTextX($student_winner[$x],1.4);
|
||||||
$rep->addTextX($student_school[$x],5.5);
|
$rep->addTextX($student_school[$x],5.5);
|
||||||
if($show_pronunciation == TRUE && $student_win_pronunc[$x])
|
if($show_pronunciation == TRUE && $student_win_pronunc[$x]) {
|
||||||
$rep->addTextX("({$student_win_pronunc[$x]})",4.0);
|
$rep->nextline();
|
||||||
|
$rep->addTextX("({$student_win_pronunc[$x]})",2.0);
|
||||||
|
}
|
||||||
if($type=="pdf")
|
if($type=="pdf")
|
||||||
$rep->nextline();
|
$rep->nextline();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user