forked from science-ation/science-ation
- Add more columns to the school report generator
This commit is contained in:
parent
7a6294cb95
commit
6d7f06bd0f
@ -46,6 +46,11 @@ $report_schools_fields = array(
|
||||
'width' => 1,
|
||||
'table' => 'schools.fax' ),
|
||||
|
||||
'school_email' => array(
|
||||
'name' => 'School -- Email',
|
||||
'header' => 'School Email',
|
||||
'width' => 1,
|
||||
'table' => 'schools.schoolemail' ),
|
||||
|
||||
'school_address' => array(
|
||||
'name' => 'School Address -- Street Address',
|
||||
@ -83,6 +88,51 @@ $report_schools_fields = array(
|
||||
'width' => 0.75,
|
||||
'table' => 'schools.board' ),
|
||||
|
||||
'school_principal' => array(
|
||||
'name' => 'School -- Principal',
|
||||
'header' => 'Principal',
|
||||
'width' => 1.25,
|
||||
'table' => 'schools.principal' ),
|
||||
|
||||
'school_sh' => array(
|
||||
'name' => 'School -- Science Head',
|
||||
'header' => 'Science Head',
|
||||
'width' => 1.25,
|
||||
'table' => 'schools.sciencehead' ),
|
||||
|
||||
'school_shphone' => array(
|
||||
'name' => 'School -- Science Head Phone',
|
||||
'header' => 'Science Hd Phone',
|
||||
'width' => 1,
|
||||
'table' => 'schools.scienceheadphone' ),
|
||||
|
||||
'school_shemail' => array(
|
||||
'name' => 'School -- Science Head Email',
|
||||
'header' => 'Science Head Email',
|
||||
'width' => 1.5,
|
||||
'table' => 'schools.scienceheademail' ),
|
||||
|
||||
'school_contact' => array(
|
||||
'name' => 'School -- Contact (Principal if school PHONE exists, else Science Head)',
|
||||
'header' => 'Contact',
|
||||
'width' => 1.5,
|
||||
'table' => "IF(schools.phone='',schools.sciencehead,schools.principal)",
|
||||
'table_sort' => 'schools.principal' ),
|
||||
|
||||
'school_contactphone' => array(
|
||||
'name' => 'School -- Contact Phone (School Phone if exists, else Science Head Phone)',
|
||||
'header' => 'Contact Phone',
|
||||
'width' => 1,
|
||||
'table' => "IF(schools.phone='',schools.scienceheadphone,schools.phone)",
|
||||
'table_sort' => 'schools.phone' ),
|
||||
|
||||
'school_contactemail' => array(
|
||||
'name' => 'School -- Contact Email (School Email if school PHONE exists, else Science Head Email)',
|
||||
'header' => 'Contact Email',
|
||||
'width' => 1.5,
|
||||
'table' => "IF(schools.phone='',schools.scienceheademail,schools.schoolemail)",
|
||||
'table_sort' => 'schools.schoolemail' ),
|
||||
|
||||
);
|
||||
|
||||
function report_schools_fromwhere($report, $components)
|
||||
|
Loading…
Reference in New Issue
Block a user