// ?> Registered teams for NCPC 2005

Registered teams for NCPC 2005

There are " . count($registrations) . " teams registered in total.

"; $sitereg = array(); foreach($registrations as $r) { $s = $r['SiteID']; if (!isset($sitereg[$s])) { $sitereg[$s] = array(); } $sitereg[$s][] = $r; } foreach ($sites as $sid) { echo "

" . $siteinfo[$sid]['name'] . "

" . count($sitereg[$sid]) . " teams registered.

"; if (isset($sitereg[$sid])) { echo " "; foreach ($sitereg[$sid] as $n => $r) { echo " "; foreach (array(1,2,3) as $C) { $nam = trim($r['FirstMiddle'.$C]." ".$r['LastName'.$C]); if ($nam != '') { echo ""; } } echo " "; /* echo "
";
                foreach ($r as $k => $v) {
                    echo str_pad("$k:", 20, " ", STR_PAD_RIGHT) .  "$v\n";
                }
                echo "
                    
"; */ } echo "
Team name Member 1 Member 2 Member 3
".$r['TeamName']."$nam
"; } } ?>