forked from science-ation/science-ation
Add the awards at the top of the judging teams view tables
This commit is contained in:
parent
b3cad6ebd3
commit
7af110337a
@ -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']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user