diff --git a/admin/judges_schedulerconfig.php b/admin/judges_schedulerconfig.php index 174fc4f..0a291aa 100644 --- a/admin/judges_schedulerconfig.php +++ b/admin/judges_schedulerconfig.php @@ -83,13 +83,13 @@ echo "
"; $totalteams=0; -$catq=mysql_query("SELECT * FROM projectcategories ORDER BY mingrade"); +$catq=mysql_query("SELECT * FROM projectcategories WHERE year='{$config['FAIRYEAR']}' ORDER BY mingrade"); while($catr=mysql_fetch_object($catq)) { echo "

$catr->category

"; echo ""; echo ""; - $divq=mysql_query("SELECT * FROM projectdivisions ORDER BY id"); + $divq=mysql_query("SELECT * FROM projectdivisions WHERE year='{$config['FAIRYEAR']}' ORDER BY id"); while($divr=mysql_fetch_object($divq)) { $numq=mysql_query("SELECT COUNT(id) AS num FROM projects WHERE projectcategories_id='$catr->id' AND projectdivisions_id='$divr->id'"); @@ -154,6 +154,8 @@ foreach($div AS $d_id=>$d_division) award_awards_projectdivisions WHERE award_awards.year='{$config['FAIRYEAR']}' + AND award_awardS_projecetcategories.year='{$config['FAIRYEAR']}' + AND award_awardS_projecetdivisions.year='{$config['FAIRYEAR']}' AND award_awards.id=award_awards_projectcategories.award_awards_id AND award_awards.id=award_awards_projectdivisions.award_awards_id AND award_awards_projectcategories.projectcategories_id='$c_id'
DivisionProjectsTeams