From 5e8aa4ca2bb1fd74f506f7f9b57128a42dd3d3cd Mon Sep 17 00:00:00 2001 From: james Date: Wed, 8 Mar 2006 22:12:55 +0000 Subject: [PATCH] Add recipient "Judges not active for this year" to communication module --- admin/communication.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/communication.inc.php b/admin/communication.inc.php index a4f217d0..7dd80cd6 100644 --- a/admin/communication.inc.php +++ b/admin/communication.inc.php @@ -7,6 +7,8 @@ "judges_active_thisyear"=>array("name"=>"Judges active for this year", "query"=> "SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges,judges_years WHERE judges_years.year='".$config['FAIRYEAR']."' AND judges.id=judges_years.judges_id ORDER BY email"), + "judges_inactive"=>array("name"=>"Judges not active for this year", "query"=> + "SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges LEFT JOIN judges_years ON judges_years.judges_id=judges.id WHERE judges_years.year!='".$config['FAIRYEAR']."' ORDER BY email"), "judges_active_complete_thisyear"=>array("name"=>"Judges active for this year and complete", "query"=> "SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges,judges_years WHERE judges_years.year='".$config['FAIRYEAR']."' AND judges.id=judges_years.judges_id AND judges.complete='yes' ORDER BY email"), @@ -15,7 +17,6 @@ "judges_active_incomplete_thisyear"=>array("name"=>"Judges active for this year but not complete", "query"=> "SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges,judges_years WHERE judges_years.year='".$config['FAIRYEAR']."' AND judges.id=judges_years.judges_id AND judges.complete!='yes' ORDER BY email"), - "participants_complete_thisyear"=>array("name"=>"Participants complete this year","query"=> "SELECT firstname, lastname, students.email FROM students,registrations WHERE students.registrations_id=registrations.id AND registrations.year='".$config['FAIRYEAR']."' AND ( registrations.status='complete' OR registrations.status='paymentpending') ORDER BY students.email"),