diff --git a/admin/reports.inc.php b/admin/reports.inc.php
index 33cfd54d..f53adef5 100644
--- a/admin/reports.inc.php
+++ b/admin/reports.inc.php
@@ -28,6 +28,7 @@
require_once("reports_volunteers.inc.php"); /* $report_volunteers_fields */
require_once("reports_schools.inc.php");
require_once("reports_tours.inc.php");
+ require_once("reports_fairs.inc.php");
require_once('../lpdf.php');
require_once('../lcsv.php');
@@ -295,7 +296,7 @@ foreach($report_stock as $n=>$v) {
global $allow_options;
global $report_students_fields, $report_judges_fields, $report_awards_fields;
global $report_committees_fields, $report_schools_fields;
- global $report_volunteers_fields;
+ global $report_volunteers_fields, $report_fairs_fields;
global $report_tours_fields;
@@ -341,7 +342,7 @@ foreach($report_stock as $n=>$v) {
global $allow_options, $report_students_fields, $report_judges_fields;
global $report_committees_fields, $report_awards_fields;
global $report_schools_fields, $report_volunteers_fields;
- global $report_tours_fields;
+ global $report_tours_fields, $report_fairs_fields;
$report = array();
@@ -504,7 +505,7 @@ foreach($report_stock as $n=>$v) {
{
global $config, $report_students_fields, $report_judges_fields, $report_awards_fields, $report_schools_fields;
global $report_stock, $report_committees_fields, $report_volunteers_fields;
- global $report_tours_fields;
+ global $report_tours_fields, $report_fairs_fields;
global $filter_ops;
//print_r($report);
diff --git a/admin/reports_editor.php b/admin/reports_editor.php
index f9e07913..33a808b6 100644
--- a/admin/reports_editor.php
+++ b/admin/reports_editor.php
@@ -33,6 +33,7 @@
require_once('reports_schools.inc.php');
require_once('reports_volunteers.inc.php');
require_once('reports_tours.inc.php');
+ require_once('reports_fairs.inc.php');
require_once('reports.inc.php');
$fields = array();
@@ -352,7 +353,7 @@ function createData(x,y,w,h,l,face,align,valign,value) {
selector('type', array('student' => 'Student Report', 'judge' => 'Judge Report',
'award' => 'Award Report', 'committee' => 'Committee Member Report',
'school' => 'School Report', 'volunteer' => 'Volunteer Report',
- 'tour' => 'Tour Report'),
+ 'tour' => 'Tour Report', 'fair' => 'Feeder Fair Report'),
$report['type'],
"onChange=\"reportReload();\"");
echo "";
diff --git a/admin/reports_fairs.inc.php b/admin/reports_fairs.inc.php
new file mode 100644
index 00000000..48715841
--- /dev/null
+++ b/admin/reports_fairs.inc.php
@@ -0,0 +1,424 @@
+
+/*
+ This file is part of the 'Science Fair In A Box' project
+ SFIAB Website: http://www.sfiab.ca
+
+ Copyright (C) 2005 David Grant
+
+ 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.
+*/
+
+$report_fairs_fields = array(
+
+ 'fair_name' => array(
+ 'name' => 'Fair -- Fair Name',
+ 'header' => 'Name',
+ 'width' => 1.5,
+ 'table' => 'fairs.name'),
+
+ 'fairstats_year' => array (
+ 'name' => 'Fair Stats -- Year',
+ 'header' => 'Year',
+ 'width' => 1,
+ 'table' => 'fairs_stats.year',
+ 'components' => array('fairs_stats')),
+
+ 'fairstats_year' => array (
+ 'name' => 'Fair Stats -- Year',
+ 'header' => 'Year',
+ 'width' => 1,
+ 'table' => 'fairs_stats.year',
+ 'components' => array('fairs_stats')),
+
+ 'fairstats_start_date' => array (
+ 'name' => 'Fair Stats -- Fair Start',
+ 'header' => 'Fair Start',
+ 'width' => 1,
+ 'table' => 'fairs_stats.start_date',
+ 'components' => array('fairs_stats')),
+
+ 'fairstats_end_date' => array (
+ 'name' => 'Fair Stats -- Fair End',
+ 'header' => 'Fair End',
+ 'width' => 1,
+ 'table' => 'fairs_stats.end_date',
+ 'components' => array('fairs_stats')),
+
+ 'fairstats_budget' => array (
+ 'name' => 'Fair Stats -- Budget',
+ 'header' => 'Budget',
+ 'width' => 1,
+ 'table' => 'fairs_stats.budget',
+ 'components' => array('fairs_stats')),
+
+ 'fairstats_address' => array (
+ 'name' => 'Fair Stats -- Fair Location',
+ 'header' => 'Fair Location',
+ 'width' => 1,
+ 'table' => 'fairs_stats.address',
+ 'components' => array('fairs_stats')),
+ 'fairstats_ysf_affiliation_complete' => array (
+ 'name' => 'Fair Stats -- YSF Affilitation Complete',
+ 'header' => 'YSF Affilitation Complete',
+ 'width' => 1,
+ 'table' => 'fairs_stats.ysf_affiliation_complete',
+ 'components' => array('fairs_stats')),
+ 'fairstats_charity' => array (
+ 'name' => 'Fair Stats -- Charity Number/Info',
+ 'header' => 'Charity Number/Info',
+ 'width' => 1,
+ 'table' => 'fairs_stats.charity',
+ 'components' => array('fairs_stats')),
+ 'fairstats_scholarships' => array (
+ 'name' => 'Fair Stats -- Scholarship Info',
+ 'header' => 'Scholarship Info',
+ 'width' => 1,
+ 'table' => 'fairs_stats.scholarships',
+ 'components' => array('fairs_stats')),
+ 'fairstats_male_1' => array (
+ 'name' => 'Fair Stats -- Males Grade 1-3',
+ 'header' => 'Males Grade 1-3',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ 'table' => 'fairs_stats.projects_11',
+ 'components' => array('fairs_stats')),
+ 'fairstats_firstnations' => array (
+ 'name' => 'Fair Stats -- First Nations Students',
+ 'header' => 'First Nations Students',
+ 'width' => 1,
+ 'table' => 'fairs_stats.firstnations',
+ 'components' => array('fairs_stats')),
+ 'fairstats_students_atrisk' => array (
+ 'name' => 'Fair Stats -- Inner City Students',
+ 'header' => 'Inner City Students',
+ 'width' => 1,
+ 'table' => 'fairs_stats.students_atrisk',
+ 'components' => array('fairs_stats')),
+ 'fairstats_schools_atrisk' => array (
+ 'name' => 'Fair Stats -- Inner City Schools',
+ 'header' => 'Inner City Schools',
+ 'width' => 1,
+ 'table' => 'fairs_stats.schools_atrisk',
+ 'components' => array('fairs_stats')),
+ 'fairstats_students_total' => array (
+ 'name' => 'Fair Stats -- Total Participants',
+ 'header' => 'Total Participants',
+ 'width' => 1,
+ 'table' => 'fairs_stats.students_total',
+ 'components' => array('fairs_stats')),
+ 'fairstats_schools_total' => array (
+ 'name' => 'Fair Stats -- Total Schools',
+ 'header' => 'Total Schools',
+ 'width' => 1,
+ 'table' => 'fairs_stats.schools_total',
+ 'components' => array('fairs_stats')),
+ 'fairstats_schools_active' => array (
+ 'name' => 'Fair Stats -- Active Schools',
+ 'header' => 'Active Schools',
+ 'width' => 1,
+ 'table' => 'fairs_stats.schools_active',
+ 'components' => array('fairs_stats')),
+ 'fairstats_students_public' => array (
+ 'name' => 'Fair Stats -- Participants from Public',
+ 'header' => 'Participants from Public',
+ 'width' => 1,
+ 'table' => 'fairs_stats.students_public',
+ 'components' => array('fairs_stats')),
+ 'fairstats_schools_public' => array (
+ 'name' => 'Fair Stats -- Public Schools',
+ 'header' => 'Public Schools',
+ 'width' => 1,
+ 'table' => 'fairs_stats.schools_public',
+ 'components' => array('fairs_stats')),
+ 'fairstats_students_private' => array (
+ 'name' => 'Fair Stats -- Participants from Independent',
+ 'header' => 'Participants from Independent',
+ 'width' => 1,
+ 'table' => 'fairs_stats.students_private',
+ 'components' => array('fairs_stats')),
+ 'fairstats_schools_private' => array (
+ 'name' => 'Fair Stats -- Independent Schools',
+ 'header' => 'Independent Schools',
+ 'width' => 1,
+ 'table' => 'fairs_stats.schools_private',
+ 'components' => array('fairs_stats')),
+ 'fairstats_schools_districts' => array (
+ 'name' => 'Fair Stats -- School Districts',
+ 'header' => 'School Districts',
+ 'width' => 1,
+ 'table' => 'fairs_stats.schools_districts',
+ 'components' => array('fairs_stats')),
+ 'fairstats_studentsvisiting' => array (
+ 'name' => 'Fair Stats -- Students Visiting',
+ 'header' => 'Students Visiting',
+ 'width' => 1,
+ 'table' => 'fairs_stats.studentsvisiting',
+ 'components' => array('fairs_stats')),
+ 'fairstats_publicvisiting' => array (
+ 'name' => 'Fair Stats -- Public Guests Visting',
+ 'header' => 'Public Guests Visting',
+ 'width' => 1,
+ 'table' => 'fairs_stats.publicvisiting',
+ 'components' => array('fairs_stats')),
+ 'fairstats_teacherssupporting' => array (
+ 'name' => 'Fair Stats -- Teachers Supporting Projects',
+ 'header' => 'Teachers Supporting Projects',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ 'table' => 'fairs_stats.consideringcareer',
+ 'components' => array('fairs_stats')),
+ 'fairstats_committee_members' => array (
+ 'name' => 'Fair Stats -- Committee Members',
+ 'header' => 'Committee Members',
+ 'width' => 1,
+ 'table' => 'fairs_stats.committee_members',
+ 'components' => array('fairs_stats')),
+ 'fairstats_judges' => array (
+ 'name' => 'Fair Stats -- Judges',
+ 'header' => 'Judges',
+ 'width' => 1,
+ 'table' => 'fairs_stats.judges',
+ 'components' => array('fairs_stats')),
+ 'fairstats_next_chair_name' => array (
+ 'name' => 'Fair Stats -- Regional Chairperson Name',
+ 'header' => 'Regional Chairperson Name',
+ 'width' => 1,
+ 'table' => 'fairs_stats.next_chair_name',
+ 'components' => array('fairs_stats')),
+ 'fairstats_next_chairemail' => array (
+ 'name' => 'Fair Stats -- Email',
+ 'header' => 'Email',
+ 'width' => 1,
+ 'table' => 'fairs_stats.next_chairemail',
+ 'components' => array('fairs_stats')),
+ 'fairstats_next_chair_hphone' => array (
+ 'name' => 'Fair Stats -- Home Phone',
+ 'header' => 'Home Phone',
+ 'width' => 1,
+ 'table' => 'fairs_stats.next_chair_hphone',
+ 'components' => array('fairs_stats')),
+ 'fairstats_next_chair_bphone' => array (
+ 'name' => 'Fair Stats -- Business Phone',
+ 'header' => 'Business Phone',
+ 'width' => 1,
+ 'table' => 'fairs_stats.next_chair_bphone',
+ 'components' => array('fairs_stats')),
+ 'fairstats_next_chair_fax' => array (
+ 'name' => 'Fair Stats -- Fax',
+ 'header' => 'Fax',
+ 'width' => 1,
+ 'table' => 'fairs_stats.next_chair_fax',
+ 'components' => array('fairs_stats')),
+ 'fairstats_delegate1' => array (
+ 'name' => 'Fair Stats -- Delegate 1',
+ 'header' => 'Delegate 1',
+ 'width' => 1,
+ 'table' => 'fairs_stats.delegate1',
+ 'components' => array('fairs_stats')),
+ 'fairstats_delegate2' => array (
+ 'name' => 'Fair Stats -- Delegate 2',
+ 'header' => 'Delegate 2',
+ 'width' => 1,
+ 'table' => 'fairs_stats.delegate2',
+ 'components' => array('fairs_stats')),
+ 'fairstats_delegate3' => array (
+ 'name' => 'Fair Stats -- Delegate 3',
+ 'header' => 'Delegate 3',
+ 'width' => 1,
+ 'table' => 'fairs_stats.delegate3',
+ 'components' => array('fairs_stats')),
+ 'fairstats_delegate4' => array (
+ 'name' => 'Fair Stats -- Delegate 4',
+ 'header' => 'Delegate 4',
+ 'width' => 1,
+ 'table' => 'fairs_stats.delegate4',
+ 'components' => array('fairs_stats')),
+ 'fairstats_delegate1_email' => array (
+ 'name' => 'Fair Stats -- Delegate 1 Email',
+ 'header' => 'Delegate 1 Email',
+ 'width' => 1,
+ 'table' => 'fairs_stats.delegate1_email',
+ 'components' => array('fairs_stats')),
+ 'fairstats_delegate2_email' => array (
+ 'name' => 'Fair Stats -- Delegate 2 Email',
+ 'header' => 'Delegate 2 Email',
+ 'width' => 1,
+ 'table' => 'fairs_stats.delegate2_email',
+ 'components' => array('fairs_stats')),
+ 'fairstats_delegate3_email' => array (
+ 'name' => 'Fair Stats -- Delegate 3 Email',
+ 'header' => 'Delegate 3 Email',
+ 'width' => 1,
+ 'table' => 'fairs_stats.delegate3_email',
+ 'components' => array('fairs_stats')),
+ 'fairstats_delegate4_email' => array (
+ 'name' => 'Fair Stats -- Delegate 4 Email',
+ 'header' => 'Delegate 4 Email',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ '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',
+ 'width' => 1,
+ 'table' => 'fairs_stats.delegate4_size',
+ 'components' => array('fairs_stats')),
+
+
+ 'static_text' => array (
+ 'name' => 'Static Text (useful for labels)',
+ 'header' => '',
+ 'width' => 0.1,
+ 'table' => "CONCAT(' ')"),
+
+);
+
+ function report_fairs_fromwhere($report, $components)
+ {
+ 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';
+ $fs_where = "fairs_stats.year='$year'";
+
+ }
+
+ $q = " FROM fairs
+ $fs_from
+ WHERE
+ 1 AND
+ $fs_where
+ ";
+
+ return $q;
+}
+
+
+?>
diff --git a/db/db.code.version.txt b/db/db.code.version.txt
index 6a4573e8..405e2afe 100644
--- a/db/db.code.version.txt
+++ b/db/db.code.version.txt
@@ -1 +1 @@
-133
+134
diff --git a/db/db.update.134.sql b/db/db.update.134.sql
new file mode 100644
index 00000000..4d7ac6bb
--- /dev/null
+++ b/db/db.update.134.sql
@@ -0,0 +1,75 @@
+ALTER TABLE `reports` CHANGE `type` `type` ENUM( 'student', 'judge', 'award', 'committee', 'school', 'volunteer', 'tour', 'fair' ) NOT NULL DEFAULT 'student';
+
+INSERT INTO `reports` (`id`, `system_report_id`, `name`, `desc`, `creator`, `type`) VALUES
+ ('', '46', 'Feeder Fairs', 'All feeder fair statistics in CSV', 'The Grant Brothers', 'fair');
+INSERT INTO `reports_items` (`id`, `reports_id`, `type`, `ord`, `field`, `value`, `x`, `y`, `w`, `h`, `lines`, `face`, `align`) VALUES
+ ('', LAST_INSERT_ID(), 'option', 0, 'type', 'csv', 0, 0, 0, 0, 0, '', ''),
+ ('', LAST_INSERT_ID(), 'option', 1, 'group_new_page', 'no', 0, 0, 0, 0, 0, '', ''),
+ ('', LAST_INSERT_ID(), 'option', 2, 'allow_multiline', 'no', 0, 0, 0, 0, 0, '', ''),
+ ('', LAST_INSERT_ID(), 'option', 3, 'fit_columns', 'no', 0, 0, 0, 0, 0, '', ''),
+ ('', LAST_INSERT_ID(), 'option', 4, 'label_box', 'no', 0, 0, 0, 0, 0, '', ''),
+ ('', LAST_INSERT_ID(), 'option', 5, 'field_box', 'no', 0, 0, 0, 0, 0, '', ''),
+ ('', LAST_INSERT_ID(), 'option', 6, 'label_fairname', 'no', 0, 0, 0, 0, 0, '', ''),
+ ('', LAST_INSERT_ID(), 'option', 7, 'label_logo', 'no', 0, 0, 0, 0, 0, '', ''),
+ ('', LAST_INSERT_ID(), 'option', 8, 'stock', 'fullpage', 0, 0, 0, 0, 0, '', ''),
+ ('', LAST_INSERT_ID(), 'col', 0, 'fair_name', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 1, 'fairstats_year', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 2, 'fairstats_start_date', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 3, 'fairstats_end_date', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 4, 'fairstats_budget', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 5, 'fairstats_address', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 6, 'fairstats_ysf_affiliation_complete', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 7, 'fairstats_charity', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 8, 'fairstats_scholarships', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 9, 'fairstats_male_1', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 10, 'fairstats_male_4', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 11, 'fairstats_male_7', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 12, 'fairstats_male_9', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 13, 'fairstats_male_11', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 14, 'fairstats_female_1', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 15, 'fairstats_female_4', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 16, 'fairstats_female_7', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 17, 'fairstats_female_9', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 18, 'fairstats_female_11', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 19, 'fairstats_projects_1', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 20, 'fairstats_projects_4', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 21, 'fairstats_projects_7', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 22, 'fairstats_projects_9', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 23, 'fairstats_projects_11', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 24, 'fairstats_firstnations', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 25, 'fairstats_students_atrisk', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 26, 'fairstats_schools_atrisk', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 27, 'fairstats_students_total', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 28, 'fairstats_schools_total', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 29, 'fairstats_schools_active', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 30, 'fairstats_students_public', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 31, 'fairstats_schools_public', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 32, 'fairstats_students_private', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 33, 'fairstats_schools_private', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 34, 'fairstats_schools_districts', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 35, 'fairstats_studentsvisiting', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 36, 'fairstats_publicvisiting', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 37, 'fairstats_teacherssupporting', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 38, 'fairstats_increasedinterest', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 39, 'fairstats_consideringcareer', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 40, 'fairstats_committee_members', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 41, 'fairstats_judges', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 42, 'fairstats_next_chair_name', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 43, 'fairstats_next_chairemail', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 44, 'fairstats_next_chair_hphone', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 45, 'fairstats_next_chair_bphone', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 46, 'fairstats_next_chair_fax', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 47, 'fairstats_delegate1', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 48, 'fairstats_delegate1_email', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 49, 'fairstats_delegate1_size', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 50, 'fairstats_delegate2', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 51, 'fairstats_delegate2_email', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 52, 'fairstats_delegate2_size', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 53, 'fairstats_delegate3', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 54, 'fairstats_delegate3_email', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 55, 'fairstats_delegate3_size', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 56, 'fairstats_delegate4', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 57, 'fairstats_delegate4_email', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'col', 58, 'fairstats_delegate4_size', '', 0, 0, 0, 0, 1, '', ' '),
+ ('', LAST_INSERT_ID(), 'sort', 0, 'fair_name', '', 0, 0, 0, 0, 1, '', ' ');
+