diff --git a/admin/judges.inc.php b/admin/judges.inc.php index 137be04..4cb3a40 100644 --- a/admin/judges.inc.php +++ b/admin/judges.inc.php @@ -26,6 +26,22 @@ function getJudgingTeams() $lastteamid=$r->id; $lastteamnum=$r->num; + /* Load timeslots */ + $rounds = array(); + $tq = mysql_query("SELECT * FROM judges_teams_timeslots_link + LEFT JOIN judges_timeslots ON judges_timeslots.id=judges_teams_timeslots_link.judges_timeslots_id + WHERE judges_teams_timeslots_link.judges_teams_id='{$r->id}'"); + $teams[$r->id]['timeslots'] = array(); + $teams[$r->id]['rounds'] = array(); + while($ts = mysql_fetch_assoc($tq)) { + $teams[$r->id]['timeslots'][] = $ts; + $rounds[$ts['round_id']] = $ts['round_id']; + } + foreach($rounds as $round_id) { + $tq = mysql_query("SELECT * FROM judges_timeslots WHERE id='{$round_id}'"); + $teams[$r->id]['rounds'][] = mysql_fetch_assoc($tq); + } + //get the members for this team $mq=mysql_query("SELECT users.id AS judges_id, diff --git a/admin/judges_teams_members.php b/admin/judges_teams_members.php index bfab15b..626caa8 100644 --- a/admin/judges_teams_members.php +++ b/admin/judges_teams_members.php @@ -295,6 +295,11 @@ function switchjudgeinfo() echo "