From 3519bc5e0e87a63a2184f13f84ffbd99dc318dd7 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 12 Mar 2007 14:23:44 +0000 Subject: [PATCH] Add three new email recipients to the communications module: 1) special award sponsors (confirmed only) 2) special award sponsors (unconfirmed only) 3) special award sponsors (all) --- admin/communication.inc.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/admin/communication.inc.php b/admin/communication.inc.php index 5ac95a4..55519bb 100644 --- a/admin/communication.inc.php +++ b/admin/communication.inc.php @@ -27,5 +27,15 @@ "participants_notcomplete_thisyear"=>array("name"=>"Participants not 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' AND registrations.status!='new' ORDER BY students.email"), + + "special_award_sponsors_confirmed"=>array("name"=>"Special Award Sponsors (confirmed only)","query"=> + "SELECT DISTINCT(award_sponsors.id), organization, firstname, lastname, award_contacts.email FROM award_sponsors, award_awards, award_contacts WHERE award_awards.award_sponsors_id=award_sponsors.id AND award_contacts.award_sponsors_id=award_sponsors.id AND award_sponsors.confirmed='yes' AND award_awards.award_types_id='2'"), + + "special_award_sponsors_unconfirmed"=>array("name"=>"Special Award Sponsors (unconfirmed only)","query"=> + "SELECT DISTINCT(award_sponsors.id), organization, firstname, lastname, award_contacts.email FROM award_sponsors, award_awards, award_contacts WHERE award_awards.award_sponsors_id=award_sponsors.id AND award_contacts.award_sponsors_id=award_sponsors.id AND award_sponsors.confirmed='no' AND award_awards.award_types_id='2'"), + + "special_award_sponsors_all"=>array("name"=>"Special Award Sponsors (all)","query"=> + "SELECT DISTINCT(award_sponsors.id), organization, firstname, lastname, award_contacts.email FROM award_sponsors, award_awards, award_contacts WHERE award_awards.award_sponsors_id=award_sponsors.id AND award_contacts.award_sponsors_id=award_sponsors.id AND award_awards.award_types_id='2'"), + ); ?>