From 0497a21b40480b34956126d97975b805efa611a0 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 22 Oct 2012 18:35:17 +0000 Subject: [PATCH] Add judge(all) active from last year to communication list --- admin/communication.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin/communication.inc.php b/admin/communication.inc.php index f0e8e81..f02bdfc 100644 --- a/admin/communication.inc.php +++ b/admin/communication.inc.php @@ -14,6 +14,9 @@ "SELECT firstname, lastname, email, deleted, MAX(year) FROM users WHERE types LIKE '%judge%' GROUP BY uid HAVING deleted='no' ORDER BY email"), + "judges_active_lastyear"=>array("name"=>"Judges (all) active from last year", "query"=> + "SELECT firstname, lastname, email FROM users LEFT JOIN users_judge ON users_judge.users_id=users.id WHERE types LIKE '%judge%' AND year='".($config['FAIRYEAR']-1)."' AND deleted='no' AND users_judge.judge_active='yes' ORDER BY email"), + "judges_active_thisyear"=>array("name"=>"Judges (all) active for this year", "query"=> "SELECT firstname, lastname, email FROM users LEFT JOIN users_judge ON users_judge.users_id=users.id WHERE types LIKE '%judge%' AND year='{$config['FAIRYEAR']}' AND deleted='no' AND users_judge.judge_active='yes' ORDER BY email"),