From 642dac036f959182317dba05d012cd910d615947 Mon Sep 17 00:00:00 2001 From: james Date: Wed, 17 Sep 2008 14:23:30 +0000 Subject: [PATCH] Add participants last year and participants all years to communications system --- admin/communication.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/admin/communication.inc.php b/admin/communication.inc.php index a679c0f..ffb2769 100644 --- a/admin/communication.inc.php +++ b/admin/communication.inc.php @@ -27,6 +27,12 @@ "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"), + "participants_complete_lastyear"=>array("name"=>"Participants complete last year","query"=> + "SELECT firstname, lastname, students.email FROM students,registrations WHERE students.registrations_id=registrations.id AND registrations.year='".($config['FAIRYEAR']-1)."' AND ( registrations.status='complete' OR registrations.status='paymentpending') ORDER BY students.email"), + + "participants_complete_allyears"=>array("name"=>"Participants complete all years","query"=> + "SELECT DISTINCT firstname, lastname, students.email FROM students,registrations WHERE students.registrations_id=registrations.id AND ( registrations.status='complete' OR registrations.status='paymentpending') 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' AND award_contacts.year='".$config['FAIRYEAR']."'"),