From 7ca5edc2a1ebc91af64aafdce6b6b21f32e495c1 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 15 Jun 2010 22:01:09 +0000 Subject: [PATCH] Show team registrations on the schedule view for teachers --- schoolschedule.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/schoolschedule.php b/schoolschedule.php index 6755c2f..3e0afed 100644 --- a/schoolschedule.php +++ b/schoolschedule.php @@ -115,8 +115,20 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode']){ echo i18n("Capacity").": "; $regteams=getNumRegistrations($r->id); $maxteams=$r->somaxteams; - echo i18n("%1 of %2",array($regteams,$maxteams)); + echo i18n("%1 of %2",array($regteams,$maxteams))."
"; + $regq=mysql_query("SELECT so_teams.name + FROM schedule_registrations + JOIN so_teams ON so_teams_id=so_teams.id + WHERE schedule_registrations.conferences_id='{$conference['id']}' + AND so_teams.schools_id={$school->id} + AND schedule_registrations.schedule_id='$r->id'"); + echo mysql_error(); + while($regr=mysql_fetch_object($regq)) { + echo "
"; + echo $regr->name; + echo "
"; + } } echo "";