forked from science-ation/science-ation
Add CWSF Winners from Last Year and CWSF Winners from ALL Years to communication module
This commit is contained in:
parent
5322837060
commit
a6741d58ac
@ -62,6 +62,28 @@
|
|||||||
WHERE award_awards.cwsfaward='1' AND winners.year='".$config['FAIRYEAR']."'
|
WHERE award_awards.cwsfaward='1' AND winners.year='".$config['FAIRYEAR']."'
|
||||||
ORDER BY students.email"),
|
ORDER BY students.email"),
|
||||||
|
|
||||||
|
"participants_cwsf_lastyear"=>array("name"=>"CWSF Winners from last year","query"=>"
|
||||||
|
SELECT DISTINCT students.firstname, students.lastname, students.email
|
||||||
|
FROM award_awards
|
||||||
|
JOIN award_prizes ON award_prizes.award_awards_id=award_awards.id
|
||||||
|
JOIN winners ON winners.awards_prizes_id=award_prizes.id
|
||||||
|
JOIN projects ON winners.projects_id=projects.id
|
||||||
|
JOIN registrations ON projects.registrations_id=registrations.id
|
||||||
|
JOIN students ON students.registrations_id=registrations.id
|
||||||
|
WHERE award_awards.cwsfaward='1' AND winners.year='".($config['FAIRYEAR']-1)."'
|
||||||
|
ORDER BY students.email"),
|
||||||
|
|
||||||
|
"participants_cwsf_allyears"=>array("name"=>"CWSF Winners from all years","query"=>"
|
||||||
|
SELECT DISTINCT students.firstname, students.lastname, students.email
|
||||||
|
FROM award_awards
|
||||||
|
JOIN award_prizes ON award_prizes.award_awards_id=award_awards.id
|
||||||
|
JOIN winners ON winners.awards_prizes_id=award_prizes.id
|
||||||
|
JOIN projects ON winners.projects_id=projects.id
|
||||||
|
JOIN registrations ON projects.registrations_id=registrations.id
|
||||||
|
JOIN students ON students.registrations_id=registrations.id
|
||||||
|
WHERE award_awards.cwsfaward='1'
|
||||||
|
ORDER BY students.email"),
|
||||||
|
|
||||||
"sponsors"=>array("name"=>"Organization sponsors","query"=>
|
"sponsors"=>array("name"=>"Organization sponsors","query"=>
|
||||||
"SELECT id, organization, email FROM sponsors WHERE email!='' ORDER BY email"),
|
"SELECT id, organization, email FROM sponsors WHERE email!='' ORDER BY email"),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user