forked from science-ation/science-ation
- Add a field for trophies
- Fix a bug with the ordering of the sql statement. Something I noticed fixing this bug: Tour info and award info will generate an error if used together.
This commit is contained in:
parent
4587fd3c86
commit
7651426f03
@ -471,6 +471,16 @@ $report_students_fields = array(
|
|||||||
'table_sort' => 'award_prizes.order',
|
'table_sort' => 'award_prizes.order',
|
||||||
'components' => array('awards')),
|
'components' => array('awards')),
|
||||||
|
|
||||||
|
'award_prize_trophy_any' => array(
|
||||||
|
'name' => 'Award -- Trophy (\'Yes\' if the award has a trophy)',
|
||||||
|
'header' => 'Trophy',
|
||||||
|
'width' => 0.5,
|
||||||
|
'table' => "IF ( award_prizes.trophystudentkeeper=1
|
||||||
|
OR award_prizes.trophystudentreturn=1
|
||||||
|
OR award_prizes.trophyschoolkeeper=1
|
||||||
|
OR award_prizes.trophyschoolreturn=1, 'Yes', 'No')",
|
||||||
|
'components' => array('awards')),
|
||||||
|
|
||||||
'nom_awards' => array(
|
'nom_awards' => array(
|
||||||
'name' => 'Award Nominations -- Award Name (warning: duplicates student for multiple awards!)',
|
'name' => 'Award Nominations -- Award Name (warning: duplicates student for multiple awards!)',
|
||||||
'header' => 'Award Name',
|
'header' => 'Award Name',
|
||||||
@ -784,10 +794,10 @@ $report_students_fields = array(
|
|||||||
LEFT JOIN projectdivisions ON projectdivisions.id=projects.projectdivisions_id
|
LEFT JOIN projectdivisions ON projectdivisions.id=projects.projectdivisions_id
|
||||||
LEFT JOIN projectcategories ON projectcategories.id=projects.projectcategories_id
|
LEFT JOIN projectcategories ON projectcategories.id=projects.projectcategories_id
|
||||||
$emergencycontact_join
|
$emergencycontact_join
|
||||||
$tour_join
|
|
||||||
$awards_join
|
|
||||||
$partner_join
|
$partner_join
|
||||||
$mentor_join
|
$mentor_join
|
||||||
|
$tour_join
|
||||||
|
$awards_join
|
||||||
WHERE
|
WHERE
|
||||||
students.year='$year'
|
students.year='$year'
|
||||||
AND projects.year='$year'
|
AND projects.year='$year'
|
||||||
@ -795,9 +805,9 @@ $report_students_fields = array(
|
|||||||
AND projectcategories.year='$year'
|
AND projectcategories.year='$year'
|
||||||
AND projectdivisions.year='$year'
|
AND projectdivisions.year='$year'
|
||||||
AND (registrations.status='complete' OR registrations.status='paymentpending')
|
AND (registrations.status='complete' OR registrations.status='paymentpending')
|
||||||
|
$mentor_where
|
||||||
$awards_where
|
$awards_where
|
||||||
$tour_where
|
$tour_where
|
||||||
$mentor_where
|
|
||||||
";
|
";
|
||||||
|
|
||||||
return $q;
|
return $q;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user