2009-09-18 05:35:13 +00:00
< ?
/*
This file is part of the 'Science Fair In A Box' project
SFIAB Website : http :// www . sfiab . ca
Copyright ( C ) 2005 David Grant < dave @ lightbox . org >
This program is free software ; you can redistribute it and / or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation , version 2.
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the GNU
General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; see the file COPYING . If not , write to
the Free Software Foundation , Inc . , 59 Temple Place - Suite 330 ,
Boston , MA 02111 - 1307 , USA .
*/
2010-11-01 15:24:59 +00:00
$parts = explode ( '-' , $config [ 'dates' ][ 'fairdate' ]);
$fairYear = $parts [ 0 ];
2009-09-18 05:35:13 +00:00
$report_fairs_fields = array (
2010-06-09 07:43:59 +00:00
'fairinfo_name' => array (
'start_option_group' => 'Fair Information' ,
2009-09-18 05:35:13 +00:00
'name' => 'Fair -- Fair Name' ,
'header' => 'Name' ,
2010-06-08 18:49:14 +00:00
'width' => 38.1 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs.name' ),
'fairstats_year' => array (
2010-06-09 07:43:59 +00:00
'start_option_group' => 'Fair Statistics' ,
2009-09-18 05:35:13 +00:00
'name' => 'Fair Stats -- Year' ,
'header' => 'Year' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.year' ,
'components' => array ( 'fairs_stats' )),
'fairstats_year' => array (
'name' => 'Fair Stats -- Year' ,
'header' => 'Year' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.year' ,
'components' => array ( 'fairs_stats' )),
'fairstats_start_date' => array (
'name' => 'Fair Stats -- Fair Start' ,
'header' => 'Fair Start' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.start_date' ,
'components' => array ( 'fairs_stats' )),
'fairstats_end_date' => array (
'name' => 'Fair Stats -- Fair End' ,
'header' => 'Fair End' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.end_date' ,
'components' => array ( 'fairs_stats' )),
'fairstats_budget' => array (
'name' => 'Fair Stats -- Budget' ,
'header' => 'Budget' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.budget' ,
'components' => array ( 'fairs_stats' )),
'fairstats_address' => array (
'name' => 'Fair Stats -- Fair Location' ,
'header' => 'Fair Location' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.address' ,
'components' => array ( 'fairs_stats' )),
'fairstats_ysf_affiliation_complete' => array (
2010-02-11 22:35:57 +00:00
'name' => 'Fair Stats -- YSC Affilitation Complete' ,
'header' => 'YSC Affilitation Complete' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.ysf_affiliation_complete' ,
'components' => array ( 'fairs_stats' )),
'fairstats_charity' => array (
'name' => 'Fair Stats -- Charity Number/Info' ,
'header' => 'Charity Number/Info' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.charity' ,
'components' => array ( 'fairs_stats' )),
'fairstats_scholarships' => array (
'name' => 'Fair Stats -- Scholarship Info' ,
'header' => 'Scholarship Info' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.scholarships' ,
'components' => array ( 'fairs_stats' )),
'fairstats_male_1' => array (
'name' => 'Fair Stats -- Males Grade 1-3' ,
'header' => 'Males Grade 1-3' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.male_1' ,
'components' => array ( 'fairs_stats' )),
'fairstats_male_4' => array (
'name' => 'Fair Stats -- Males Grade 4-6' ,
'header' => 'Males Grade 4-6' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.male_4' ,
'components' => array ( 'fairs_stats' )),
'fairstats_male_7' => array (
'name' => 'Fair Stats -- Males Grade 7-8' ,
'header' => 'Males Grade 7-8' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.male_7' ,
'components' => array ( 'fairs_stats' )),
'fairstats_male_9' => array (
'name' => 'Fair Stats -- Males Grade 9-10' ,
'header' => 'Males Grade 9-10' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.male_9' ,
'components' => array ( 'fairs_stats' )),
'fairstats_male_11' => array (
'name' => 'Fair Stats -- Males Grade 11-12' ,
'header' => 'Males Grade 11-12' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.male_11' ,
'components' => array ( 'fairs_stats' )),
'fairstats_female_1' => array (
'name' => 'Fair Stats -- Females Grade 1-3' ,
'header' => 'Females Grade 1-3' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.female_1' ,
'components' => array ( 'fairs_stats' )),
'fairstats_female_4' => array (
'name' => 'Fair Stats -- Females Grade 4-6' ,
'header' => 'Females Grade 4-6' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.female_4' ,
'components' => array ( 'fairs_stats' )),
'fairstats_female_7' => array (
'name' => 'Fair Stats -- Females Grade 7-8' ,
'header' => 'Females Grade 7-8' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.female_7' ,
'components' => array ( 'fairs_stats' )),
'fairstats_female_9' => array (
'name' => 'Fair Stats -- Females Grade 9-10' ,
'header' => 'Females Grade 9-10' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.female_9' ,
'components' => array ( 'fairs_stats' )),
'fairstats_female_11' => array (
'name' => 'Fair Stats -- Females Grade 11-12' ,
'header' => 'Females Grade 11-12' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.female_11' ,
'components' => array ( 'fairs_stats' )),
'fairstats_projects_1' => array (
'name' => 'Fair Stats -- Projects Grade 1-3' ,
'header' => 'Projects Grade 1-3' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.projects_1' ,
'components' => array ( 'fairs_stats' )),
'fairstats_projects_4' => array (
'name' => 'Fair Stats -- Projects Grade 4-6' ,
'header' => 'Projects Grade 4-6' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.projects_4' ,
'components' => array ( 'fairs_stats' )),
'fairstats_projects_7' => array (
'name' => 'Fair Stats -- Projects Grade 7-8' ,
'header' => 'Projects Grade 7-8' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.projects_7' ,
'components' => array ( 'fairs_stats' )),
'fairstats_projects_9' => array (
'name' => 'Fair Stats -- Projects Grade 9-10' ,
'header' => 'Projects Grade 9-10' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.projects_9' ,
'components' => array ( 'fairs_stats' )),
'fairstats_projects_11' => array (
'name' => 'Fair Stats -- Projects Grade 11-12' ,
'header' => 'Projects Grade 11-12' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.projects_11' ,
'components' => array ( 'fairs_stats' )),
'fairstats_firstnations' => array (
'name' => 'Fair Stats -- First Nations Students' ,
'header' => 'First Nations Students' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.firstnations' ,
'components' => array ( 'fairs_stats' )),
'fairstats_students_atrisk' => array (
'name' => 'Fair Stats -- Inner City Students' ,
'header' => 'Inner City Students' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.students_atrisk' ,
'components' => array ( 'fairs_stats' )),
'fairstats_schools_atrisk' => array (
'name' => 'Fair Stats -- Inner City Schools' ,
'header' => 'Inner City Schools' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.schools_atrisk' ,
'components' => array ( 'fairs_stats' )),
'fairstats_students_total' => array (
'name' => 'Fair Stats -- Total Participants' ,
'header' => 'Total Participants' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.students_total' ,
'components' => array ( 'fairs_stats' )),
'fairstats_schools_total' => array (
'name' => 'Fair Stats -- Total Schools' ,
'header' => 'Total Schools' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.schools_total' ,
'components' => array ( 'fairs_stats' )),
'fairstats_schools_active' => array (
'name' => 'Fair Stats -- Active Schools' ,
'header' => 'Active Schools' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.schools_active' ,
'components' => array ( 'fairs_stats' )),
'fairstats_students_public' => array (
'name' => 'Fair Stats -- Participants from Public' ,
'header' => 'Participants from Public' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.students_public' ,
'components' => array ( 'fairs_stats' )),
'fairstats_schools_public' => array (
'name' => 'Fair Stats -- Public Schools' ,
'header' => 'Public Schools' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.schools_public' ,
'components' => array ( 'fairs_stats' )),
'fairstats_students_private' => array (
'name' => 'Fair Stats -- Participants from Independent' ,
'header' => 'Participants from Independent' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.students_private' ,
'components' => array ( 'fairs_stats' )),
'fairstats_schools_private' => array (
'name' => 'Fair Stats -- Independent Schools' ,
'header' => 'Independent Schools' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.schools_private' ,
'components' => array ( 'fairs_stats' )),
'fairstats_schools_districts' => array (
'name' => 'Fair Stats -- School Districts' ,
'header' => 'School Districts' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.schools_districts' ,
'components' => array ( 'fairs_stats' )),
'fairstats_studentsvisiting' => array (
'name' => 'Fair Stats -- Students Visiting' ,
'header' => 'Students Visiting' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.studentsvisiting' ,
'components' => array ( 'fairs_stats' )),
'fairstats_publicvisiting' => array (
'name' => 'Fair Stats -- Public Guests Visting' ,
'header' => 'Public Guests Visting' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.publicvisiting' ,
'components' => array ( 'fairs_stats' )),
'fairstats_teacherssupporting' => array (
'name' => 'Fair Stats -- Teachers Supporting Projects' ,
'header' => 'Teachers Supporting Projects' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.teacherssupporting' ,
'components' => array ( 'fairs_stats' )),
'fairstats_increasedinterest' => array (
'name' => 'Fair Stats -- Students Increased Interest in Science' ,
'header' => 'Students Increased Interest in Science' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.increasedinterest' ,
'components' => array ( 'fairs_stats' )),
'fairstats_consideringcareer' => array (
'name' => 'Fair Stats -- Students Considering Career in Science' ,
'header' => 'Students Considering Career in Science' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.consideringcareer' ,
'components' => array ( 'fairs_stats' )),
'fairstats_committee_members' => array (
'name' => 'Fair Stats -- Committee Members' ,
'header' => 'Committee Members' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.committee_members' ,
'components' => array ( 'fairs_stats' )),
'fairstats_judges' => array (
'name' => 'Fair Stats -- Judges' ,
'header' => 'Judges' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.judges' ,
'components' => array ( 'fairs_stats' )),
'fairstats_next_chair_name' => array (
'name' => 'Fair Stats -- Regional Chairperson Name' ,
'header' => 'Regional Chairperson Name' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.next_chair_name' ,
'components' => array ( 'fairs_stats' )),
2009-09-27 08:38:44 +00:00
'fairstats_next_chair_email' => array (
2009-09-18 05:35:13 +00:00
'name' => 'Fair Stats -- Email' ,
'header' => 'Email' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-27 08:38:44 +00:00
'table' => 'fairs_stats.next_chair_email' ,
2009-09-18 05:35:13 +00:00
'components' => array ( 'fairs_stats' )),
'fairstats_next_chair_hphone' => array (
'name' => 'Fair Stats -- Home Phone' ,
'header' => 'Home Phone' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.next_chair_hphone' ,
'components' => array ( 'fairs_stats' )),
'fairstats_next_chair_bphone' => array (
'name' => 'Fair Stats -- Business Phone' ,
'header' => 'Business Phone' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.next_chair_bphone' ,
'components' => array ( 'fairs_stats' )),
'fairstats_next_chair_fax' => array (
'name' => 'Fair Stats -- Fax' ,
'header' => 'Fax' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.next_chair_fax' ,
'components' => array ( 'fairs_stats' )),
'fairstats_delegate1' => array (
'name' => 'Fair Stats -- Delegate 1' ,
'header' => 'Delegate 1' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.delegate1' ,
'components' => array ( 'fairs_stats' )),
'fairstats_delegate2' => array (
'name' => 'Fair Stats -- Delegate 2' ,
'header' => 'Delegate 2' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.delegate2' ,
'components' => array ( 'fairs_stats' )),
'fairstats_delegate3' => array (
'name' => 'Fair Stats -- Delegate 3' ,
'header' => 'Delegate 3' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.delegate3' ,
'components' => array ( 'fairs_stats' )),
'fairstats_delegate4' => array (
'name' => 'Fair Stats -- Delegate 4' ,
'header' => 'Delegate 4' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.delegate4' ,
'components' => array ( 'fairs_stats' )),
'fairstats_delegate1_email' => array (
'name' => 'Fair Stats -- Delegate 1 Email' ,
'header' => 'Delegate 1 Email' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.delegate1_email' ,
'components' => array ( 'fairs_stats' )),
'fairstats_delegate2_email' => array (
'name' => 'Fair Stats -- Delegate 2 Email' ,
'header' => 'Delegate 2 Email' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.delegate2_email' ,
'components' => array ( 'fairs_stats' )),
'fairstats_delegate3_email' => array (
'name' => 'Fair Stats -- Delegate 3 Email' ,
'header' => 'Delegate 3 Email' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.delegate3_email' ,
'components' => array ( 'fairs_stats' )),
'fairstats_delegate4_email' => array (
'name' => 'Fair Stats -- Delegate 4 Email' ,
'header' => 'Delegate 4 Email' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.delegate4_email' ,
'components' => array ( 'fairs_stats' )),
'fairstats_delegate1_size' => array (
'name' => 'Fair Stats -- Delegate 1 Jacket Size' ,
'header' => 'Delegate 1 Jacket Size' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.delegate1_size' ,
'components' => array ( 'fairs_stats' )),
'fairstats_delegate2_size' => array (
'name' => 'Fair Stats -- Delegate 2 Jacket Size' ,
'header' => 'Delegate 2 Jacket Size' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.delegate2_size' ,
'components' => array ( 'fairs_stats' )),
'fairstats_delegate3_size' => array (
'name' => 'Fair Stats -- Delegate 3 Jacket Size' ,
'header' => 'Delegate 3 Jacket Size' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.delegate3_size' ,
'components' => array ( 'fairs_stats' )),
'fairstats_delegate4_size' => array (
'name' => 'Fair Stats -- Delegate 4 Jacket Size' ,
'header' => 'Delegate 4 Jacket Size' ,
2010-06-08 18:49:14 +00:00
'width' => 25.4 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => 'fairs_stats.delegate4_size' ,
'components' => array ( 'fairs_stats' )),
2010-06-09 07:43:59 +00:00
/* The label system depends on each report type having fair_name and fair_logo */
'fair_name' => array (
'start_option_group' => 'Local Fair Information' ,
'name' => 'Fair -- Name' ,
'header' => 'Fair Name' ,
'width' => 76.2 /*mm*/ ,
'table' => " ' " . mysql_escape_string ( $config [ 'fairname' ]) . " ' " ),
'fair_year' => array (
'name' => 'Fair -- Year' ,
'header' => 'Year' ,
'width' => 12.7 /*mm*/ ,
2010-11-01 15:24:59 +00:00
'table' => $fairYear ),
2010-06-09 07:43:59 +00:00
'fair_logo' => array (
'name' => 'Fair -- Logo (for Labels only)' ,
'header' => '' ,
'width' => 1 /*mm*/ ,
'table' => " CONCAT(' ') " ),
2009-09-18 05:35:13 +00:00
'static_text' => array (
'name' => 'Static Text (useful for labels)' ,
'header' => '' ,
2010-06-08 18:49:14 +00:00
'width' => 2.54 /*mm*/ ,
2009-09-18 05:35:13 +00:00
'table' => " CONCAT(' ') " ),
);
2010-11-01 15:24:59 +00:00
function report_fairs_fromwhere ( $report , $components ) /// FIXME - this isn't updated to use the conference['id'], but I don't see it used anywhere in the code anyway. Delete?
2009-09-18 05:35:13 +00:00
{
global $config , $report_fairs_fields ;
$fields = $report_fairs_fields ;
$year = $report [ 'year' ];
if ( in_array ( 'fairs_stats' , $components )) {
$fs_from = 'LEFT JOIN fairs_stats ON fairs_stats.fairs_id=fairs.id' ;
2010-07-13 03:30:17 +00:00
$fs_where = " fairs_stats.year=' $year ' AND " ;
2009-09-18 05:35:13 +00:00
}
$q = " FROM fairs
$fs_from
WHERE
$fs_where
2010-07-13 03:30:17 +00:00
1
2009-09-18 05:35:13 +00:00
" ;
return $q ;
}
?>