diff --git a/admin/reports_acscript.php b/admin/reports_acscript.php index c59d564..43af14e 100644 --- a/admin/reports_acscript.php +++ b/admin/reports_acscript.php @@ -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(); }