From 7af110337a01562dd15546a74beb0d447fad02e6 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 6 May 2005 18:05:10 +0000 Subject: [PATCH] Add the awards at the top of the judging teams view tables --- admin/reports_judges_teams_view.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/admin/reports_judges_teams_view.php b/admin/reports_judges_teams_view.php index ecf9c1c0..003fa0ee 100644 --- a/admin/reports_judges_teams_view.php +++ b/admin/reports_judges_teams_view.php @@ -58,6 +58,18 @@ $rep->heading($team['name']." (".$team['num'].")"); + $numawards=count($team['awards']); + if($numawards==1) $plural=""; else $plural="s"; + + $awardstr="$numawards Award$plural: "; + foreach($team['awards'] AS $award) + { + $awardstr.="(".$award['award_type'].") ".$award['name'].", "; + } + //trim off the last ", " + $awardstr=substr($awardstr,0,-2); + $rep->addText($awardstr); + foreach($team['members'] AS $member) { $table['data'][]=array($member['captain'],$member['firstname'],$member['lastname']);