Add the awards at the top of the judging teams view tables

This commit is contained in:
james 2005-05-06 18:05:10 +00:00
parent b3cad6ebd3
commit 7af110337a

View File

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