Convert all width to millimeters

This commit is contained in:
dave 2010-06-08 18:49:14 +00:00
parent dcf3f1687d
commit 1f1691167c
9 changed files with 365 additions and 365 deletions

View File

@ -26,99 +26,99 @@ $report_awards_fields = array(
'start_option_group' => 'Award Information', 'start_option_group' => 'Award Information',
'name' => 'Award -- Name', 'name' => 'Award -- Name',
'header' => 'Award Name', 'header' => 'Award Name',
'width' => 3.0, 'width' => 76.2 /*mm*/,
'table' => 'award_awards.name' ), 'table' => 'award_awards.name' ),
'criteria' => array( 'criteria' => array(
'name' => 'Award -- Criteria', 'name' => 'Award -- Criteria',
'header' => 'Award Criteria', 'header' => 'Award Criteria',
'width' => 3.0, 'width' => 76.2 /*mm*/,
'table' => 'award_awards.criteria' ), 'table' => 'award_awards.criteria' ),
'presenter' => array( 'presenter' => array(
'name' => 'Award -- Presenter', 'name' => 'Award -- Presenter',
'header' => 'Award Presenter', 'header' => 'Award Presenter',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'award_awards.presenter' ), 'table' => 'award_awards.presenter' ),
'order' => array( 'order' => array(
'name' => 'Award -- Order', 'name' => 'Award -- Order',
'header' => 'Award Order', 'header' => 'Award Order',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'award_awards.order' ), 'table' => 'award_awards.order' ),
'cwsfaward' => array( 'cwsfaward' => array(
'name' => 'Award -- CWSF Award', 'name' => 'Award -- CWSF Award',
'header' => 'CWSF', 'header' => 'CWSF',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'award_awards.cwsfaward', 'table' => 'award_awards.cwsfaward',
'value_map' => array ('0' => 'No', '1' => 'Yes')), 'value_map' => array ('0' => 'No', '1' => 'Yes')),
'type' => array( 'type' => array(
'name' => 'Award -- Type', 'name' => 'Award -- Type',
'header' => 'Award Type', 'header' => 'Award Type',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'award_types.type' ), 'table' => 'award_types.type' ),
'empty_winner_box' => array( 'empty_winner_box' => array(
'name' => 'Award -- Empty Winner Box (for hand entry on printed reports)', 'name' => 'Award -- Empty Winner Box (for hand entry on printed reports)',
'header' => 'Winner', 'header' => 'Winner',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => "CONCAT('')" ), 'table' => "CONCAT('')" ),
'sponsor_organization' => array( 'sponsor_organization' => array(
'start_option_group' => 'Sponsor Information', 'start_option_group' => 'Sponsor Information',
'name' => 'Sponsor -- Organization', 'name' => 'Sponsor -- Organization',
'header' => 'Sponsor Organization', 'header' => 'Sponsor Organization',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => 'sponsors.organization' ), 'table' => 'sponsors.organization' ),
'sponsor_phone' => array( 'sponsor_phone' => array(
'name' => 'Sponsor -- Phone', 'name' => 'Sponsor -- Phone',
'header' => 'Sp. Phone', 'header' => 'Sp. Phone',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'sponsors.phone' ), 'table' => 'sponsors.phone' ),
'sponsor_fax' => array( 'sponsor_fax' => array(
'name' => 'Sponsor -- Fax', 'name' => 'Sponsor -- Fax',
'header' => 'Sp. Fax', 'header' => 'Sp. Fax',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'sponsors.fax' ), 'table' => 'sponsors.fax' ),
'sponsor_address' => array( 'sponsor_address' => array(
'name' => 'Sponsor -- Street Address', 'name' => 'Sponsor -- Street Address',
'header' => 'Sponsor Address', 'header' => 'Sponsor Address',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => 'sponsors.address'), 'table' => 'sponsors.address'),
'sponsor_city' => array( 'sponsor_city' => array(
'name' => 'Sponsor -- City', 'name' => 'Sponsor -- City',
'header' => 'Sp. City', 'header' => 'Sp. City',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'sponsors.city' ), 'table' => 'sponsors.city' ),
'sponsor_province' => array( 'sponsor_province' => array(
'name' => 'Sponsor -- '.$config['provincestate'], 'name' => 'Sponsor -- '.$config['provincestate'],
'header' => 'Sp. '.$config['provincestate'], 'header' => 'Sp. '.$config['provincestate'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'sponsors.province_code' ), 'table' => 'sponsors.province_code' ),
'sponsor_postal' => array( 'sponsor_postal' => array(
'name' => 'Sponsor -- '.$config['postalzip'], 'name' => 'Sponsor -- '.$config['postalzip'],
'header' => 'Sp. '.$config['postalzip'], 'header' => 'Sp. '.$config['postalzip'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'sponsors.postalcode' ), 'table' => 'sponsors.postalcode' ),
'sponsor_notes' => array( 'sponsor_notes' => array(
'name' => 'Sponsor -- Notes', 'name' => 'Sponsor -- Notes',
'header' => 'Sponsor Notes', 'header' => 'Sponsor Notes',
'width' => 3, 'width' => 76.2 /*mm*/,
'table' => 'sponsors.notes' ), 'table' => 'sponsors.notes' ),
'sponsorship_status' => array( 'sponsorship_status' => array(
'name' => 'Sponsorship -- Status', 'name' => 'Sponsorship -- Status',
'header' => 'Sp. Status', 'header' => 'Sp. Status',
'width' => .5, 'width' => 12.7 /*mm*/,
'table' => 'sponsorships.status', 'table' => 'sponsorships.status',
'value_map' => array ('pending' => 'Pending', 'confirmed' => 'Confirmed'), "received"=>"Received"), 'value_map' => array ('pending' => 'Pending', 'confirmed' => 'Confirmed'), "received"=>"Received"),
@ -126,105 +126,105 @@ $report_awards_fields = array(
'start_option_group' => 'Sponsor Primary Contact', 'start_option_group' => 'Sponsor Primary Contact',
'name' => 'Primary Contact -- Salutation', 'name' => 'Primary Contact -- Salutation',
'header' => 'Cnct. Salutation', 'header' => 'Cnct. Salutation',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'PRIMARYCONTACTUSER.salutation' ), 'table' => 'PRIMARYCONTACTUSER.salutation' ),
'pcontact_last_name' => array( 'pcontact_last_name' => array(
'name' => 'Primary Contact -- Last Name', 'name' => 'Primary Contact -- Last Name',
'header' => 'Cnct. Last Name', 'header' => 'Cnct. Last Name',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'PRIMARYCONTACTUSER.lastname' ), 'table' => 'PRIMARYCONTACTUSER.lastname' ),
'pcontact_first_name' => array( 'pcontact_first_name' => array(
'name' => 'Primary Contact -- First Name', 'name' => 'Primary Contact -- First Name',
'header' => 'Cnct. First Name', 'header' => 'Cnct. First Name',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'PRIMARYCONTACTUSER.firstname' ), 'table' => 'PRIMARYCONTACTUSER.firstname' ),
'pcontact_name' => array( 'pcontact_name' => array(
'name' => 'Primary Contact -- Full Name (last, first)', 'name' => 'Primary Contact -- Full Name (last, first)',
'header' => 'Contact Name', 'header' => 'Contact Name',
'width' => 1.75, 'width' => 44.45 /*mm*/,
'table' => "CONCAT(PRIMARYCONTACTUSER.lastname, ', ', PRIMARYCONTACTUSER.firstname)", 'table' => "CONCAT(PRIMARYCONTACTUSER.lastname, ', ', PRIMARYCONTACTUSER.firstname)",
'table_sort'=> 'PRIMARYCONTACTUSER.lastname' ), 'table_sort'=> 'PRIMARYCONTACTUSER.lastname' ),
'pcontact_namefl' => array( 'pcontact_namefl' => array(
'name' => 'Primary Contact -- Full Name (salutation first last)', 'name' => 'Primary Contact -- Full Name (salutation first last)',
'header' => 'Contact Name', 'header' => 'Contact Name',
'width' => 1.75, 'width' => 44.45 /*mm*/,
'table' => "CONCAT(PRIMARYCONTACTUSER.salutation, ' ', PRIMARYCONTACTUSER.firstname, ' ', PRIMARYCONTACTUSER.lastname)", 'table' => "CONCAT(PRIMARYCONTACTUSER.salutation, ' ', PRIMARYCONTACTUSER.firstname, ' ', PRIMARYCONTACTUSER.lastname)",
'table_sort'=> 'PRIMARYCONTACTUSER.lastname' ), 'table_sort'=> 'PRIMARYCONTACTUSER.lastname' ),
'pcontact_position' => array( 'pcontact_position' => array(
'name' => 'Primary Contact -- Position', 'name' => 'Primary Contact -- Position',
'header' => 'Cnct. Position', 'header' => 'Cnct. Position',
'width' => 1.25, 'width' => 31.75 /*mm*/,
'table' => 'PRIMARYCONTACT.position'), 'table' => 'PRIMARYCONTACT.position'),
'pcontact_email' => array( 'pcontact_email' => array(
'name' => 'Primary Contact -- Email', 'name' => 'Primary Contact -- Email',
'header' => 'Cnct. Email', 'header' => 'Cnct. Email',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => 'PRIMARYCONTACTUSER.email'), 'table' => 'PRIMARYCONTACTUSER.email'),
'pcontact_hphone' => array( 'pcontact_hphone' => array(
'name' => 'Primary Contact -- Home Phone', 'name' => 'Primary Contact -- Home Phone',
'header' => 'Cnct. Home', 'header' => 'Cnct. Home',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'PRIMARYCONTACTUSER.phonehome' ), 'table' => 'PRIMARYCONTACTUSER.phonehome' ),
'pcontact_wphone' => array( 'pcontact_wphone' => array(
'name' => 'Primary Contact -- Work Phone', 'name' => 'Primary Contact -- Work Phone',
'header' => 'Cnct. Work', 'header' => 'Cnct. Work',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'PRIMARYCONTACTUSER.phonework' ), 'table' => 'PRIMARYCONTACTUSER.phonework' ),
'pcontact_cphone' => array( 'pcontact_cphone' => array(
'name' => 'Primary Contact -- Cell Phone', 'name' => 'Primary Contact -- Cell Phone',
'header' => 'Cnct. Cell', 'header' => 'Cnct. Cell',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'PRIMARYCONTACTUSER.phonecell' ), 'table' => 'PRIMARYCONTACTUSER.phonecell' ),
'pcontact_fax' => array( 'pcontact_fax' => array(
'name' => 'Primary Contact -- Fax', 'name' => 'Primary Contact -- Fax',
'header' => 'Cnct. Fax', 'header' => 'Cnct. Fax',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'PRIMARYCONTACTUSER.fax' ), 'table' => 'PRIMARYCONTACTUSER.fax' ),
'pcontact_notes' => array( 'pcontact_notes' => array(
'name' => 'Primary Contact -- Notes', 'name' => 'Primary Contact -- Notes',
'header' => 'Contact Notes', 'header' => 'Contact Notes',
'width' => 3, 'width' => 76.2 /*mm*/,
'table' => 'PRIMARYCONTACT.notes' ), 'table' => 'PRIMARYCONTACT.notes' ),
'pcontact_address' => array( 'pcontact_address' => array(
'name' => 'Primary Contact Address -- Street', 'name' => 'Primary Contact Address -- Street',
'header' => 'Address', 'header' => 'Address',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => "CONCAT(PRIMARYCONTACTUSER.address, ' ', PRIMARYCONTACTUSER.address2)"), 'table' => "CONCAT(PRIMARYCONTACTUSER.address, ' ', PRIMARYCONTACTUSER.address2)"),
'pcontact_city' => array( 'pcontact_city' => array(
'name' => 'Primary Contact Address -- City', 'name' => 'Primary Contact Address -- City',
'header' => 'City', 'header' => 'City',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'PRIMARYCONTACTUSER.city'), 'table' => 'PRIMARYCONTACTUSER.city'),
'pcontact_province' => array( 'pcontact_province' => array(
'name' => 'Primary Contact Address -- '.$config['provincestate'], 'name' => 'Primary Contact Address -- '.$config['provincestate'],
'header' => $config['provincestate'], 'header' => $config['provincestate'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'PRIMARYCONTACTUSER.province'), 'table' => 'PRIMARYCONTACTUSER.province'),
'pcontact_postal' => array( 'pcontact_postal' => array(
'name' => 'Primary Contact Address -- '.$config['postalzip'], 'name' => 'Primary Contact Address -- '.$config['postalzip'],
'header' => $config['postalzip'], 'header' => $config['postalzip'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'PRIMARYCONTACTUSER.postalcode' ), 'table' => 'PRIMARYCONTACTUSER.postalcode' ),
'pcontact_city_prov' => array( 'pcontact_city_prov' => array(
'name' => 'Primary Contact Address -- City, '.$config['provincestate'].' (for mailing)', 'name' => 'Primary Contact Address -- City, '.$config['provincestate'].' (for mailing)',
'header' => 'City', 'header' => 'City',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => "CONCAT(PRIMARYCONTACTUSER.city, ', ', PRIMARYCONTACTUSER.province)"), 'table' => "CONCAT(PRIMARYCONTACTUSER.city, ', ', PRIMARYCONTACTUSER.province)"),
'judgeteamname' => array( 'judgeteamname' => array(
@ -232,28 +232,28 @@ $report_awards_fields = array(
'components' => array('judgingteam'), 'components' => array('judgingteam'),
'name' => 'Judging Team -- Name', 'name' => 'Judging Team -- Name',
'header' => 'Judging Team', 'header' => 'Judging Team',
'width' => 3.0, 'width' => 76.2 /*mm*/,
'table' => 'judges_teams.name'), 'table' => 'judges_teams.name'),
'judgeteamnum' => array( 'judgeteamnum' => array(
'components' => array('judgingteam'), 'components' => array('judgingteam'),
'name' => 'Judging Team -- Number', 'name' => 'Judging Team -- Number',
'header' => 'Team', 'header' => 'Team',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'judges_teams.num'), 'table' => 'judges_teams.num'),
'judgeteammembers_name' => array( 'judgeteammembers_name' => array(
'components' => array('judgingteam', 'judgingteammembers'), 'components' => array('judgingteam', 'judgingteammembers'),
'name' => 'Judging Team -- Judge Name', 'name' => 'Judging Team -- Judge Name',
'header' => 'Judge Name', 'header' => 'Judge Name',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => "CONCAT(judges.firstname, ' ', judges.lastname)"), 'table' => "CONCAT(judges.firstname, ' ', judges.lastname)"),
'judgeteammembers' => array( 'judgeteammembers' => array(
'components' => array('judgingteam', 'judgingteammembers'), 'components' => array('judgingteam', 'judgingteammembers'),
'name' => 'Judging Team -- Members (REQUIRES MySQL 5.0)', 'name' => 'Judging Team -- Members (REQUIRES MySQL 5.0)',
'header' => 'Team Members', 'header' => 'Team Members',
'width' => 3.0, 'width' => 76.2 /*mm*/,
'table' => "GROUP_CONCAT(judges.firstname, ' ', judges.lastname ORDER BY judges.lastname SEPARATOR ', ')", 'table' => "GROUP_CONCAT(judges.firstname, ' ', judges.lastname ORDER BY judges.lastname SEPARATOR ', ')",
'group_by' => array('award_awards.id', 'judges_teams.num') ), 'group_by' => array('award_awards.id', 'judges_teams.num') ),
@ -261,28 +261,28 @@ $report_awards_fields = array(
'start_option_group' => 'Prize Info (Duplicates award data for each prize, omits awards with no prizes)', 'start_option_group' => 'Prize Info (Duplicates award data for each prize, omits awards with no prizes)',
'name' => 'Prize -- Name', 'name' => 'Prize -- Name',
'header' => 'Prize Name', 'header' => 'Prize Name',
'width' => 2, 'width' => 50.8 /*mm*/,
'table' => 'award_prizes.prize', 'table' => 'award_prizes.prize',
'components' => array('prizes')), 'components' => array('prizes')),
'prize_cash' => array( 'prize_cash' => array(
'name' => 'Prize -- Cash Amount', 'name' => 'Prize -- Cash Amount',
'header' => 'Cash', 'header' => 'Cash',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'award_prizes.cash', 'table' => 'award_prizes.cash',
'components' => array('prizes')), 'components' => array('prizes')),
'prize_scholarship' => array( 'prize_scholarship' => array(
'name' => 'Prize -- Scholarship Amount', 'name' => 'Prize -- Scholarship Amount',
'header' => 'Scholarship', 'header' => 'Scholarship',
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'award_prizes.scholarship', 'table' => 'award_prizes.scholarship',
'components' => array('prizes')), 'components' => array('prizes')),
'prize_value' => array( 'prize_value' => array(
'name' => 'Prize -- Value Amount', 'name' => 'Prize -- Value Amount',
'header' => 'Value', 'header' => 'Value',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'award_prizes.value', 'table' => 'award_prizes.value',
'components' => array('prizes')), 'components' => array('prizes')),
@ -290,7 +290,7 @@ $report_awards_fields = array(
'prize_fullname' => array( 'prize_fullname' => array(
'name' => 'Prize -- Name, Category, Division', 'name' => 'Prize -- Name, Category, Division',
'header' => 'Prize Name', 'header' => 'Prize Name',
'width' => 4, 'width' => 101.6 /*mm,
'table' => "CONCAT(award_prizes.prize,' in ',projectcategories.category,' ', projectdivisions.division)", 'table' => "CONCAT(award_prizes.prize,' in ',projectcategories.category,' ', projectdivisions.division)",
'table_sort' => 'award_prizes.order', 'table_sort' => 'award_prizes.order',
'components' => array('prizes')), 'components' => array('prizes')),
@ -298,7 +298,7 @@ $report_awards_fields = array(
'prize_trophy_any' => array( 'prize_trophy_any' => array(
'name' => 'Prize -- Trophy (\'Yes\' if the award has a trophy)', 'name' => 'Prize -- Trophy (\'Yes\' if the award has a trophy)',
'header' => 'Trophy', 'header' => 'Trophy',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => "IF ( award_prizes.trophystudentkeeper=1 'table' => "IF ( award_prizes.trophystudentkeeper=1
OR award_prizes.trophystudentreturn=1 OR award_prizes.trophystudentreturn=1
OR award_prizes.trophyschoolkeeper=1 OR award_prizes.trophyschoolkeeper=1
@ -308,7 +308,7 @@ $report_awards_fields = array(
'prize_trophy_return' => array( 'prize_trophy_return' => array(
'name' => 'Prize -- Annual Trophy (\'Yes\' if the award has a school or student trophy that isn\'t a keeper)', 'name' => 'Prize -- Annual Trophy (\'Yes\' if the award has a school or student trophy that isn\'t a keeper)',
'header' => 'Trophy', 'header' => 'Trophy',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => "IF ( award_prizes.trophystudentreturn=1 'table' => "IF ( award_prizes.trophystudentreturn=1
OR award_prizes.trophyschoolreturn=1, 'Yes', 'No')", OR award_prizes.trophyschoolreturn=1, 'Yes', 'No')",
'components' => array('prizes')), 'components' => array('prizes')),
@ -316,21 +316,21 @@ $report_awards_fields = array(
'prize_trophy_return_student' => array( 'prize_trophy_return_student' => array(
'name' => 'Prize -- Annual Student Trophy (\'Yes\' if the award has astudent trophy that isn\'t a keeper)', 'name' => 'Prize -- Annual Student Trophy (\'Yes\' if the award has astudent trophy that isn\'t a keeper)',
'header' => 'Ind.', 'header' => 'Ind.',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => "IF ( award_prizes.trophystudentreturn=1, 'Yes', 'No')", 'table' => "IF ( award_prizes.trophystudentreturn=1, 'Yes', 'No')",
'components' => array('prizes')), 'components' => array('prizes')),
'prize_trophy_return_school' => array( 'prize_trophy_return_school' => array(
'name' => 'Prize -- Annual School Trophy (\'Yes\' if the award has a school trophy that isn\'t a keeper)', 'name' => 'Prize -- Annual School Trophy (\'Yes\' if the award has a school trophy that isn\'t a keeper)',
'header' => 'Sch.', 'header' => 'Sch.',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => "IF ( award_prizes.trophyschoolreturn=1, 'Yes', 'No')", 'table' => "IF ( award_prizes.trophyschoolreturn=1, 'Yes', 'No')",
'components' => array('prizes')), 'components' => array('prizes')),
'prize_all' => array( 'prize_all' => array(
'name' => 'Prize -- Lists all prize data (name, cash, scholarship, value, trophies)', 'name' => 'Prize -- Lists all prize data (name, cash, scholarship, value, trophies)',
'header' => 'Prize', 'header' => 'Prize',
'width' => 2, 'width' => 50.8 /*mm*/,
'table' => "CONCAT( 'table' => "CONCAT(
IF(award_prizes.prize != '', CONCAT(award_prizes.prize,'\n', ''),''), IF(award_prizes.prize != '', CONCAT(award_prizes.prize,'\n', ''),''),
IF(award_prizes.cash != '', CONCAT('$',award_prizes.cash,'\n'), ''), IF(award_prizes.cash != '', CONCAT('$',award_prizes.cash,'\n'), ''),

View File

@ -25,94 +25,94 @@ $report_committees_fields = array(
'name' => array( 'name' => array(
'name' => 'Committee Member -- Full Name ', 'name' => 'Committee Member -- Full Name ',
'header' => 'Name', 'header' => 'Name',
'width' => 1.75, 'width' => 44.45 /*mm*/,
'table' => "CONCAT(users.firstname, ' ', users.lastname)", 'table' => "CONCAT(users.firstname, ' ', users.lastname)",
'table_sort' => 'users.lastname'), 'table_sort' => 'users.lastname'),
'last_name' => array( 'last_name' => array(
'name' => 'Committee Member -- Last Name', 'name' => 'Committee Member -- Last Name',
'header' => 'Last Name', 'header' => 'Last Name',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'users.lastname' ), 'table' => 'users.lastname' ),
'first_name' => array( 'first_name' => array(
'name' => 'Committee Member -- First Name', 'name' => 'Committee Member -- First Name',
'header' => 'First Name', 'header' => 'First Name',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'users.firstname' ), 'table' => 'users.firstname' ),
'email' => array( 'email' => array(
'name' => 'Committee Member -- Email', 'name' => 'Committee Member -- Email',
'header' => 'Email', 'header' => 'Email',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => 'users.email'), 'table' => 'users.email'),
'phone_home' => array( 'phone_home' => array(
'name' => 'Committee Member -- Phone (Home)', 'name' => 'Committee Member -- Phone (Home)',
'header' => 'Phone(Home)', 'header' => 'Phone(Home)',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users.phonehome'), 'table' => 'users.phonehome'),
'phone_work' => array( 'phone_work' => array(
'name' => 'Committee Member -- Phone (Work)', 'name' => 'Committee Member -- Phone (Work)',
'header' => 'Phone(Work)', 'header' => 'Phone(Work)',
'width' => 1.25, 'width' => 31.75 /*mm*/,
'table' => 'users.phonework'), 'table' => 'users.phonework'),
'phone_cel' => array( 'phone_cel' => array(
'name' => 'Committee Member -- Phone (Cel)', 'name' => 'Committee Member -- Phone (Cel)',
'header' => 'Phone(Cel)', 'header' => 'Phone(Cel)',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users.phonecell'), 'table' => 'users.phonecell'),
'address' => array( 'address' => array(
'name' => 'Committee Member -- Address Street', 'name' => 'Committee Member -- Address Street',
'header' => 'Address', 'header' => 'Address',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => "CONCAT(users.address, ' ', users.address2)"), 'table' => "CONCAT(users.address, ' ', users.address2)"),
'city' => array( 'city' => array(
'name' => 'Committee Member -- Address City', 'name' => 'Committee Member -- Address City',
'header' => 'City', 'header' => 'City',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'users.city' ), 'table' => 'users.city' ),
'province' => array( 'province' => array(
'name' => 'Committee Member -- Address '.$config['provincestate'], 'name' => 'Committee Member -- Address '.$config['provincestate'],
'header' => $config['provincestate'], 'header' => $config['provincestate'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'users.province' ), 'table' => 'users.province' ),
'postal' => array( 'postal' => array(
'name' => 'Committee Member -- Address '.$config['postalzip'], 'name' => 'Committee Member -- Address '.$config['postalzip'],
'header' => $config['postalzip'], 'header' => $config['postalzip'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'users.postalcode' ), 'table' => 'users.postalcode' ),
'organization' => array( 'organization' => array(
'name' => 'Committee Member -- Organization', 'name' => 'Committee Member -- Organization',
'header' => 'Organization', 'header' => 'Organization',
'width' => 2, 'width' => 50.8 /*mm*/,
'table' => 'users.organization'), 'table' => 'users.organization'),
'firstaid' => array( 'firstaid' => array(
'name' => 'Committee Member -- First Aid Training', 'name' => 'Committee Member -- First Aid Training',
'header' => 'F.Aid', 'header' => 'F.Aid',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users.firstaid', 'table' => 'users.firstaid',
'value_map' =>array ('no' => 'no', 'yes' => 'YES')), 'value_map' =>array ('no' => 'no', 'yes' => 'YES')),
'cpr' => array( 'cpr' => array(
'name' => 'Committee Member -- CPR Training', 'name' => 'Committee Member -- CPR Training',
'header' => 'CPR', 'header' => 'CPR',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users.cpr', 'table' => 'users.cpr',
'value_map' =>array ('no' => 'no', 'yes' => 'YES')), 'value_map' =>array ('no' => 'no', 'yes' => 'YES')),
'static_text' => array( 'static_text' => array(
'name' => 'Static Text (useful for labels)', 'name' => 'Static Text (useful for labels)',
'header' => '', 'header' => '',
'width' => 0.1, 'width' => 2.54 /*mm*/,
'table' => "CONCAT(' ')"), 'table' => "CONCAT(' ')"),
); );

View File

@ -25,366 +25,366 @@ $report_fairs_fields = array(
'fair_name' => array( 'fair_name' => array(
'name' => 'Fair -- Fair Name', 'name' => 'Fair -- Fair Name',
'header' => 'Name', 'header' => 'Name',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'fairs.name'), 'table' => 'fairs.name'),
'fairstats_year' => array ( 'fairstats_year' => array (
'name' => 'Fair Stats -- Year', 'name' => 'Fair Stats -- Year',
'header' => 'Year', 'header' => 'Year',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.year', 'table' => 'fairs_stats.year',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_year' => array ( 'fairstats_year' => array (
'name' => 'Fair Stats -- Year', 'name' => 'Fair Stats -- Year',
'header' => 'Year', 'header' => 'Year',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.year', 'table' => 'fairs_stats.year',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_start_date' => array ( 'fairstats_start_date' => array (
'name' => 'Fair Stats -- Fair Start', 'name' => 'Fair Stats -- Fair Start',
'header' => 'Fair Start', 'header' => 'Fair Start',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.start_date', 'table' => 'fairs_stats.start_date',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_end_date' => array ( 'fairstats_end_date' => array (
'name' => 'Fair Stats -- Fair End', 'name' => 'Fair Stats -- Fair End',
'header' => 'Fair End', 'header' => 'Fair End',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.end_date', 'table' => 'fairs_stats.end_date',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_budget' => array ( 'fairstats_budget' => array (
'name' => 'Fair Stats -- Budget', 'name' => 'Fair Stats -- Budget',
'header' => 'Budget', 'header' => 'Budget',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.budget', 'table' => 'fairs_stats.budget',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_address' => array ( 'fairstats_address' => array (
'name' => 'Fair Stats -- Fair Location', 'name' => 'Fair Stats -- Fair Location',
'header' => 'Fair Location', 'header' => 'Fair Location',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.address', 'table' => 'fairs_stats.address',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_ysf_affiliation_complete' => array ( 'fairstats_ysf_affiliation_complete' => array (
'name' => 'Fair Stats -- YSC Affilitation Complete', 'name' => 'Fair Stats -- YSC Affilitation Complete',
'header' => 'YSC Affilitation Complete', 'header' => 'YSC Affilitation Complete',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.ysf_affiliation_complete', 'table' => 'fairs_stats.ysf_affiliation_complete',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_charity' => array ( 'fairstats_charity' => array (
'name' => 'Fair Stats -- Charity Number/Info', 'name' => 'Fair Stats -- Charity Number/Info',
'header' => 'Charity Number/Info', 'header' => 'Charity Number/Info',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.charity', 'table' => 'fairs_stats.charity',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_scholarships' => array ( 'fairstats_scholarships' => array (
'name' => 'Fair Stats -- Scholarship Info', 'name' => 'Fair Stats -- Scholarship Info',
'header' => 'Scholarship Info', 'header' => 'Scholarship Info',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.scholarships', 'table' => 'fairs_stats.scholarships',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_male_1' => array ( 'fairstats_male_1' => array (
'name' => 'Fair Stats -- Males Grade 1-3', 'name' => 'Fair Stats -- Males Grade 1-3',
'header' => 'Males Grade 1-3', 'header' => 'Males Grade 1-3',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.male_1', 'table' => 'fairs_stats.male_1',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_male_4' => array ( 'fairstats_male_4' => array (
'name' => 'Fair Stats -- Males Grade 4-6', 'name' => 'Fair Stats -- Males Grade 4-6',
'header' => 'Males Grade 4-6', 'header' => 'Males Grade 4-6',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.male_4', 'table' => 'fairs_stats.male_4',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_male_7' => array ( 'fairstats_male_7' => array (
'name' => 'Fair Stats -- Males Grade 7-8', 'name' => 'Fair Stats -- Males Grade 7-8',
'header' => 'Males Grade 7-8', 'header' => 'Males Grade 7-8',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.male_7', 'table' => 'fairs_stats.male_7',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_male_9' => array ( 'fairstats_male_9' => array (
'name' => 'Fair Stats -- Males Grade 9-10', 'name' => 'Fair Stats -- Males Grade 9-10',
'header' => 'Males Grade 9-10', 'header' => 'Males Grade 9-10',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.male_9', 'table' => 'fairs_stats.male_9',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_male_11' => array ( 'fairstats_male_11' => array (
'name' => 'Fair Stats -- Males Grade 11-12', 'name' => 'Fair Stats -- Males Grade 11-12',
'header' => 'Males Grade 11-12', 'header' => 'Males Grade 11-12',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.male_11', 'table' => 'fairs_stats.male_11',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_female_1' => array ( 'fairstats_female_1' => array (
'name' => 'Fair Stats -- Females Grade 1-3', 'name' => 'Fair Stats -- Females Grade 1-3',
'header' => 'Females Grade 1-3', 'header' => 'Females Grade 1-3',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.female_1', 'table' => 'fairs_stats.female_1',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_female_4' => array ( 'fairstats_female_4' => array (
'name' => 'Fair Stats -- Females Grade 4-6', 'name' => 'Fair Stats -- Females Grade 4-6',
'header' => 'Females Grade 4-6', 'header' => 'Females Grade 4-6',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.female_4', 'table' => 'fairs_stats.female_4',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_female_7' => array ( 'fairstats_female_7' => array (
'name' => 'Fair Stats -- Females Grade 7-8', 'name' => 'Fair Stats -- Females Grade 7-8',
'header' => 'Females Grade 7-8', 'header' => 'Females Grade 7-8',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.female_7', 'table' => 'fairs_stats.female_7',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_female_9' => array ( 'fairstats_female_9' => array (
'name' => 'Fair Stats -- Females Grade 9-10', 'name' => 'Fair Stats -- Females Grade 9-10',
'header' => 'Females Grade 9-10', 'header' => 'Females Grade 9-10',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.female_9', 'table' => 'fairs_stats.female_9',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_female_11' => array ( 'fairstats_female_11' => array (
'name' => 'Fair Stats -- Females Grade 11-12', 'name' => 'Fair Stats -- Females Grade 11-12',
'header' => 'Females Grade 11-12', 'header' => 'Females Grade 11-12',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.female_11', 'table' => 'fairs_stats.female_11',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_projects_1' => array ( 'fairstats_projects_1' => array (
'name' => 'Fair Stats -- Projects Grade 1-3', 'name' => 'Fair Stats -- Projects Grade 1-3',
'header' => 'Projects Grade 1-3', 'header' => 'Projects Grade 1-3',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.projects_1', 'table' => 'fairs_stats.projects_1',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_projects_4' => array ( 'fairstats_projects_4' => array (
'name' => 'Fair Stats -- Projects Grade 4-6', 'name' => 'Fair Stats -- Projects Grade 4-6',
'header' => 'Projects Grade 4-6', 'header' => 'Projects Grade 4-6',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.projects_4', 'table' => 'fairs_stats.projects_4',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_projects_7' => array ( 'fairstats_projects_7' => array (
'name' => 'Fair Stats -- Projects Grade 7-8', 'name' => 'Fair Stats -- Projects Grade 7-8',
'header' => 'Projects Grade 7-8', 'header' => 'Projects Grade 7-8',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.projects_7', 'table' => 'fairs_stats.projects_7',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_projects_9' => array ( 'fairstats_projects_9' => array (
'name' => 'Fair Stats -- Projects Grade 9-10', 'name' => 'Fair Stats -- Projects Grade 9-10',
'header' => 'Projects Grade 9-10', 'header' => 'Projects Grade 9-10',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.projects_9', 'table' => 'fairs_stats.projects_9',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_projects_11' => array ( 'fairstats_projects_11' => array (
'name' => 'Fair Stats -- Projects Grade 11-12', 'name' => 'Fair Stats -- Projects Grade 11-12',
'header' => 'Projects Grade 11-12', 'header' => 'Projects Grade 11-12',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.projects_11', 'table' => 'fairs_stats.projects_11',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_firstnations' => array ( 'fairstats_firstnations' => array (
'name' => 'Fair Stats -- First Nations Students', 'name' => 'Fair Stats -- First Nations Students',
'header' => 'First Nations Students', 'header' => 'First Nations Students',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.firstnations', 'table' => 'fairs_stats.firstnations',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_students_atrisk' => array ( 'fairstats_students_atrisk' => array (
'name' => 'Fair Stats -- Inner City Students', 'name' => 'Fair Stats -- Inner City Students',
'header' => 'Inner City Students', 'header' => 'Inner City Students',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.students_atrisk', 'table' => 'fairs_stats.students_atrisk',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_schools_atrisk' => array ( 'fairstats_schools_atrisk' => array (
'name' => 'Fair Stats -- Inner City Schools', 'name' => 'Fair Stats -- Inner City Schools',
'header' => 'Inner City Schools', 'header' => 'Inner City Schools',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.schools_atrisk', 'table' => 'fairs_stats.schools_atrisk',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_students_total' => array ( 'fairstats_students_total' => array (
'name' => 'Fair Stats -- Total Participants', 'name' => 'Fair Stats -- Total Participants',
'header' => 'Total Participants', 'header' => 'Total Participants',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.students_total', 'table' => 'fairs_stats.students_total',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_schools_total' => array ( 'fairstats_schools_total' => array (
'name' => 'Fair Stats -- Total Schools', 'name' => 'Fair Stats -- Total Schools',
'header' => 'Total Schools', 'header' => 'Total Schools',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.schools_total', 'table' => 'fairs_stats.schools_total',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_schools_active' => array ( 'fairstats_schools_active' => array (
'name' => 'Fair Stats -- Active Schools', 'name' => 'Fair Stats -- Active Schools',
'header' => 'Active Schools', 'header' => 'Active Schools',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.schools_active', 'table' => 'fairs_stats.schools_active',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_students_public' => array ( 'fairstats_students_public' => array (
'name' => 'Fair Stats -- Participants from Public', 'name' => 'Fair Stats -- Participants from Public',
'header' => 'Participants from Public', 'header' => 'Participants from Public',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.students_public', 'table' => 'fairs_stats.students_public',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_schools_public' => array ( 'fairstats_schools_public' => array (
'name' => 'Fair Stats -- Public Schools', 'name' => 'Fair Stats -- Public Schools',
'header' => 'Public Schools', 'header' => 'Public Schools',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.schools_public', 'table' => 'fairs_stats.schools_public',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_students_private' => array ( 'fairstats_students_private' => array (
'name' => 'Fair Stats -- Participants from Independent', 'name' => 'Fair Stats -- Participants from Independent',
'header' => 'Participants from Independent', 'header' => 'Participants from Independent',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.students_private', 'table' => 'fairs_stats.students_private',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_schools_private' => array ( 'fairstats_schools_private' => array (
'name' => 'Fair Stats -- Independent Schools', 'name' => 'Fair Stats -- Independent Schools',
'header' => 'Independent Schools', 'header' => 'Independent Schools',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.schools_private', 'table' => 'fairs_stats.schools_private',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_schools_districts' => array ( 'fairstats_schools_districts' => array (
'name' => 'Fair Stats -- School Districts', 'name' => 'Fair Stats -- School Districts',
'header' => 'School Districts', 'header' => 'School Districts',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.schools_districts', 'table' => 'fairs_stats.schools_districts',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_studentsvisiting' => array ( 'fairstats_studentsvisiting' => array (
'name' => 'Fair Stats -- Students Visiting', 'name' => 'Fair Stats -- Students Visiting',
'header' => 'Students Visiting', 'header' => 'Students Visiting',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.studentsvisiting', 'table' => 'fairs_stats.studentsvisiting',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_publicvisiting' => array ( 'fairstats_publicvisiting' => array (
'name' => 'Fair Stats -- Public Guests Visting', 'name' => 'Fair Stats -- Public Guests Visting',
'header' => 'Public Guests Visting', 'header' => 'Public Guests Visting',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.publicvisiting', 'table' => 'fairs_stats.publicvisiting',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_teacherssupporting' => array ( 'fairstats_teacherssupporting' => array (
'name' => 'Fair Stats -- Teachers Supporting Projects', 'name' => 'Fair Stats -- Teachers Supporting Projects',
'header' => 'Teachers Supporting Projects', 'header' => 'Teachers Supporting Projects',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.teacherssupporting', 'table' => 'fairs_stats.teacherssupporting',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_increasedinterest' => array ( 'fairstats_increasedinterest' => array (
'name' => 'Fair Stats -- Students Increased Interest in Science', 'name' => 'Fair Stats -- Students Increased Interest in Science',
'header' => 'Students Increased Interest in Science', 'header' => 'Students Increased Interest in Science',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.increasedinterest', 'table' => 'fairs_stats.increasedinterest',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_consideringcareer' => array ( 'fairstats_consideringcareer' => array (
'name' => 'Fair Stats -- Students Considering Career in Science', 'name' => 'Fair Stats -- Students Considering Career in Science',
'header' => 'Students Considering Career in Science', 'header' => 'Students Considering Career in Science',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.consideringcareer', 'table' => 'fairs_stats.consideringcareer',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_committee_members' => array ( 'fairstats_committee_members' => array (
'name' => 'Fair Stats -- Committee Members', 'name' => 'Fair Stats -- Committee Members',
'header' => 'Committee Members', 'header' => 'Committee Members',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.committee_members', 'table' => 'fairs_stats.committee_members',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_judges' => array ( 'fairstats_judges' => array (
'name' => 'Fair Stats -- Judges', 'name' => 'Fair Stats -- Judges',
'header' => 'Judges', 'header' => 'Judges',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.judges', 'table' => 'fairs_stats.judges',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_next_chair_name' => array ( 'fairstats_next_chair_name' => array (
'name' => 'Fair Stats -- Regional Chairperson Name', 'name' => 'Fair Stats -- Regional Chairperson Name',
'header' => 'Regional Chairperson Name', 'header' => 'Regional Chairperson Name',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.next_chair_name', 'table' => 'fairs_stats.next_chair_name',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_next_chair_email' => array ( 'fairstats_next_chair_email' => array (
'name' => 'Fair Stats -- Email', 'name' => 'Fair Stats -- Email',
'header' => 'Email', 'header' => 'Email',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.next_chair_email', 'table' => 'fairs_stats.next_chair_email',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_next_chair_hphone' => array ( 'fairstats_next_chair_hphone' => array (
'name' => 'Fair Stats -- Home Phone', 'name' => 'Fair Stats -- Home Phone',
'header' => 'Home Phone', 'header' => 'Home Phone',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.next_chair_hphone', 'table' => 'fairs_stats.next_chair_hphone',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_next_chair_bphone' => array ( 'fairstats_next_chair_bphone' => array (
'name' => 'Fair Stats -- Business Phone', 'name' => 'Fair Stats -- Business Phone',
'header' => 'Business Phone', 'header' => 'Business Phone',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.next_chair_bphone', 'table' => 'fairs_stats.next_chair_bphone',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_next_chair_fax' => array ( 'fairstats_next_chair_fax' => array (
'name' => 'Fair Stats -- Fax', 'name' => 'Fair Stats -- Fax',
'header' => 'Fax', 'header' => 'Fax',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.next_chair_fax', 'table' => 'fairs_stats.next_chair_fax',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_delegate1' => array ( 'fairstats_delegate1' => array (
'name' => 'Fair Stats -- Delegate 1', 'name' => 'Fair Stats -- Delegate 1',
'header' => 'Delegate 1', 'header' => 'Delegate 1',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.delegate1', 'table' => 'fairs_stats.delegate1',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_delegate2' => array ( 'fairstats_delegate2' => array (
'name' => 'Fair Stats -- Delegate 2', 'name' => 'Fair Stats -- Delegate 2',
'header' => 'Delegate 2', 'header' => 'Delegate 2',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.delegate2', 'table' => 'fairs_stats.delegate2',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_delegate3' => array ( 'fairstats_delegate3' => array (
'name' => 'Fair Stats -- Delegate 3', 'name' => 'Fair Stats -- Delegate 3',
'header' => 'Delegate 3', 'header' => 'Delegate 3',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.delegate3', 'table' => 'fairs_stats.delegate3',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_delegate4' => array ( 'fairstats_delegate4' => array (
'name' => 'Fair Stats -- Delegate 4', 'name' => 'Fair Stats -- Delegate 4',
'header' => 'Delegate 4', 'header' => 'Delegate 4',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.delegate4', 'table' => 'fairs_stats.delegate4',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_delegate1_email' => array ( 'fairstats_delegate1_email' => array (
'name' => 'Fair Stats -- Delegate 1 Email', 'name' => 'Fair Stats -- Delegate 1 Email',
'header' => 'Delegate 1 Email', 'header' => 'Delegate 1 Email',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.delegate1_email', 'table' => 'fairs_stats.delegate1_email',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_delegate2_email' => array ( 'fairstats_delegate2_email' => array (
'name' => 'Fair Stats -- Delegate 2 Email', 'name' => 'Fair Stats -- Delegate 2 Email',
'header' => 'Delegate 2 Email', 'header' => 'Delegate 2 Email',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.delegate2_email', 'table' => 'fairs_stats.delegate2_email',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_delegate3_email' => array ( 'fairstats_delegate3_email' => array (
'name' => 'Fair Stats -- Delegate 3 Email', 'name' => 'Fair Stats -- Delegate 3 Email',
'header' => 'Delegate 3 Email', 'header' => 'Delegate 3 Email',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.delegate3_email', 'table' => 'fairs_stats.delegate3_email',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_delegate4_email' => array ( 'fairstats_delegate4_email' => array (
'name' => 'Fair Stats -- Delegate 4 Email', 'name' => 'Fair Stats -- Delegate 4 Email',
'header' => 'Delegate 4 Email', 'header' => 'Delegate 4 Email',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.delegate4_email', 'table' => 'fairs_stats.delegate4_email',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_delegate1_size' => array ( 'fairstats_delegate1_size' => array (
'name' => 'Fair Stats -- Delegate 1 Jacket Size', 'name' => 'Fair Stats -- Delegate 1 Jacket Size',
'header' => 'Delegate 1 Jacket Size', 'header' => 'Delegate 1 Jacket Size',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.delegate1_size', 'table' => 'fairs_stats.delegate1_size',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_delegate2_size' => array ( 'fairstats_delegate2_size' => array (
'name' => 'Fair Stats -- Delegate 2 Jacket Size', 'name' => 'Fair Stats -- Delegate 2 Jacket Size',
'header' => 'Delegate 2 Jacket Size', 'header' => 'Delegate 2 Jacket Size',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.delegate2_size', 'table' => 'fairs_stats.delegate2_size',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_delegate3_size' => array ( 'fairstats_delegate3_size' => array (
'name' => 'Fair Stats -- Delegate 3 Jacket Size', 'name' => 'Fair Stats -- Delegate 3 Jacket Size',
'header' => 'Delegate 3 Jacket Size', 'header' => 'Delegate 3 Jacket Size',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.delegate3_size', 'table' => 'fairs_stats.delegate3_size',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
'fairstats_delegate4_size' => array ( 'fairstats_delegate4_size' => array (
'name' => 'Fair Stats -- Delegate 4 Jacket Size', 'name' => 'Fair Stats -- Delegate 4 Jacket Size',
'header' => 'Delegate 4 Jacket Size', 'header' => 'Delegate 4 Jacket Size',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'fairs_stats.delegate4_size', 'table' => 'fairs_stats.delegate4_size',
'components' => array('fairs_stats')), 'components' => array('fairs_stats')),
@ -392,7 +392,7 @@ $report_fairs_fields = array(
'static_text' => array ( 'static_text' => array (
'name' => 'Static Text (useful for labels)', 'name' => 'Static Text (useful for labels)',
'header' => '', 'header' => '',
'width' => 0.1, 'width' => 2.54 /*mm*/,
'table' => "CONCAT(' ')"), 'table' => "CONCAT(' ')"),
); );

View File

@ -40,21 +40,21 @@ $report_fundraisings_fields = array(
'start_option_group' => 'Campaign ID', 'start_option_group' => 'Campaign ID',
'name' => 'Fundraising Campaign numerical ID', 'name' => 'Fundraising Campaign numerical ID',
'header' => 'ID', 'header' => 'ID',
'width' => 0.25, 'width' => 6.35 /*mm*/,
'table' => "fundraising_campaigns.id"), 'table' => "fundraising_campaigns.id"),
'salutation' => array( 'salutation' => array(
'start_option_group' => 'Contact Information', 'start_option_group' => 'Contact Information',
'name' => 'Contact -- Salutation (Mr., Mrs., etc.)', 'name' => 'Contact -- Salutation (Mr., Mrs., etc.)',
'header' => 'Sal', 'header' => 'Sal',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => "users.salutation", 'table' => "users.salutation",
'components' => array('users') ), 'components' => array('users') ),
'namefl' => array( 'namefl' => array(
'name' => 'Contact -- Full Name (first last)', 'name' => 'Contact -- Full Name (first last)',
'header' => 'Name', 'header' => 'Name',
'width' => 1.75, 'width' => 44.45 /*mm*/,
'table' => "CONCAT(users.firstname, ' ', users.lastname)", 'table' => "CONCAT(users.firstname, ' ', users.lastname)",
'table_sort'=> 'users.lastname', 'table_sort'=> 'users.lastname',
'components' => array('users') ), 'components' => array('users') ),
@ -62,35 +62,35 @@ $report_fundraisings_fields = array(
'email' => array( 'email' => array(
'name' => 'Contact -- Email', 'name' => 'Contact -- Email',
'header' => 'Email', 'header' => 'Email',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => 'users.email', 'table' => 'users.email',
'components' => array('users') ), 'components' => array('users') ),
'phone_home' => array( 'phone_home' => array(
'name' => 'Contact -- Phone (Home)', 'name' => 'Contact -- Phone (Home)',
'header' => 'Phone(Home)', 'header' => 'Phone(Home)',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users.phonehome', 'table' => 'users.phonehome',
'components' => array('users') ), 'components' => array('users') ),
'phone_work' => array( 'phone_work' => array(
'name' => 'Contact -- Phone (Work)', 'name' => 'Contact -- Phone (Work)',
'header' => 'Phone(Work)', 'header' => 'Phone(Work)',
'width' => 1.25, 'width' => 31.75 /*mm*/,
'table' => "users.phonework", 'table' => "users.phonework",
'components' => array('users') ), 'components' => array('users') ),
'organization' => array( 'organization' => array(
'name' => 'Contact -- Organization', 'name' => 'Contact -- Organization',
'header' => 'Organization', 'header' => 'Organization',
'width' => 2, 'width' => 50.8 /*mm*/,
'table' => 'users.organization', 'table' => 'users.organization',
'components' => array('users') ), 'components' => array('users') ),
'position' => array( 'position' => array(
'name' => 'Contact -- Position', 'name' => 'Contact -- Position',
'header' => 'Position', 'header' => 'Position',
'width' => 2, 'width' => 50.8 /*mm*/,
'table' => 'users_sponsor.position', 'table' => 'users_sponsor.position',
'components' => array('users') ), 'components' => array('users') ),
@ -98,35 +98,35 @@ $report_fundraisings_fields = array(
'start_option_group' => 'Contact Address', 'start_option_group' => 'Contact Address',
'name' => 'Contact Address -- Street', 'name' => 'Contact Address -- Street',
'header' => 'Address', 'header' => 'Address',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => "CONCAT(users.address, ' ', users.address2)", 'table' => "CONCAT(users.address, ' ', users.address2)",
'components' => array('users') ), 'components' => array('users') ),
'city' => array( 'city' => array(
'name' => 'Contact Address -- City', 'name' => 'Contact Address -- City',
'header' => 'City', 'header' => 'City',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'users.city', 'table' => 'users.city',
'components' => array('users') ), 'components' => array('users') ),
'province' => array( 'province' => array(
'name' => 'Contact Address -- '.$config['provincestate'], 'name' => 'Contact Address -- '.$config['provincestate'],
'header' => $config['provincestate'], 'header' => $config['provincestate'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'users.province', 'table' => 'users.province',
'components' => array('users') ), 'components' => array('users') ),
'postal' => array( 'postal' => array(
'name' => 'Contact Address -- '.$config['postalzip'], 'name' => 'Contact Address -- '.$config['postalzip'],
'header' => $config['postalzip'], 'header' => $config['postalzip'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'users.postalcode' , 'table' => 'users.postalcode' ,
'components' => array('users') ), 'components' => array('users') ),
'city_prov' => array( 'city_prov' => array(
'name' => 'Contact Address -- City, '.$config['provincestate'].' (for mailing)', 'name' => 'Contact Address -- City, '.$config['provincestate'].' (for mailing)',
'header' => 'City', 'header' => 'City',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => "CONCAT(users.city, ', ', users.province)", 'table' => "CONCAT(users.city, ', ', users.province)",
'components' => array('users') ), 'components' => array('users') ),
@ -134,14 +134,14 @@ $report_fundraisings_fields = array(
'start_option_group' => 'Miscellaneous', 'start_option_group' => 'Miscellaneous',
'name' => 'Contact -- Year', 'name' => 'Contact -- Year',
'header' => 'Year', 'header' => 'Year',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users.year', 'table' => 'users.year',
'components' => array('users') ), 'components' => array('users') ),
'user_filter' => array( 'user_filter' => array(
'name' => 'User Filter by MAX(year)', 'name' => 'User Filter by MAX(year)',
'header' => '', 'header' => '',
'width' => 0.1, 'width' => 2.54 /*mm*/,
'table' => 'MAX(users.year)', 'table' => 'MAX(users.year)',
'group_by' => array('users.uid'), 'group_by' => array('users.uid'),
'components' => array('users') ), 'components' => array('users') ),
@ -149,7 +149,7 @@ $report_fundraisings_fields = array(
'static_text' => array( 'static_text' => array(
'name' => 'Static Text (useful for labels)', 'name' => 'Static Text (useful for labels)',
'header' => '', 'header' => '',
'width' => 0.1, 'width' => 2.54 /*mm*/,
'table' => "CONCAT(' ')"), 'table' => "CONCAT(' ')"),
); );

View File

@ -261,81 +261,81 @@ $report_judges_fields = array(
'last_name' => array( 'last_name' => array(
'name' => 'Judge -- Last Name', 'name' => 'Judge -- Last Name',
'header' => 'Last Name', 'header' => 'Last Name',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'users.lastname' ), 'table' => 'users.lastname' ),
'first_name' => array( 'first_name' => array(
'name' => 'Judge -- First Name', 'name' => 'Judge -- First Name',
'header' => 'First Name', 'header' => 'First Name',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'users.firstname' ), 'table' => 'users.firstname' ),
'name' => array( 'name' => array(
'name' => 'Judge -- Full Name (last, first)', 'name' => 'Judge -- Full Name (last, first)',
'header' => 'Name', 'header' => 'Name',
'width' => 1.75, 'width' => 44.45 /*mm*/,
'table' => "CONCAT(users.lastname, ', ', users.firstname)", 'table' => "CONCAT(users.lastname, ', ', users.firstname)",
'table_sort'=> 'users.lastname' ), 'table_sort'=> 'users.lastname' ),
'namefl' => array( 'namefl' => array(
'name' => 'Judge -- Full Name (first last)', 'name' => 'Judge -- Full Name (first last)',
'header' => 'Name', 'header' => 'Name',
'width' => 1.75, 'width' => 44.45 /*mm*/,
'table' => "CONCAT(users.firstname, ' ', users.lastname)", 'table' => "CONCAT(users.firstname, ' ', users.lastname)",
'table_sort'=> 'users.lastname' ), 'table_sort'=> 'users.lastname' ),
'email' => array( 'email' => array(
'name' => 'Judge -- Email', 'name' => 'Judge -- Email',
'header' => 'Email', 'header' => 'Email',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => 'users.email'), 'table' => 'users.email'),
'address' => array( 'address' => array(
'name' => 'Judge -- Address Street', 'name' => 'Judge -- Address Street',
'header' => 'Address', 'header' => 'Address',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => "CONCAT(users.address, ' ', users.address2)"), 'table' => "CONCAT(users.address, ' ', users.address2)"),
'city' => array( 'city' => array(
'name' => 'Judge -- Address City', 'name' => 'Judge -- Address City',
'header' => 'City', 'header' => 'City',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'users.city' ), 'table' => 'users.city' ),
'province' => array( 'province' => array(
'name' => 'Judge -- Address '.$config['provincestate'], 'name' => 'Judge -- Address '.$config['provincestate'],
'header' => $config['provincestate'], 'header' => $config['provincestate'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'users.province' ), 'table' => 'users.province' ),
'postal' => array( 'postal' => array(
'name' => 'Judge -- Address '.$config['postalzip'], 'name' => 'Judge -- Address '.$config['postalzip'],
'header' => $config['postalzip'], 'header' => $config['postalzip'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'users.postalcode' ), 'table' => 'users.postalcode' ),
'phone_home' => array( 'phone_home' => array(
'name' => 'Judge -- Phone (Home)', 'name' => 'Judge -- Phone (Home)',
'header' => 'Phone(Home)', 'header' => 'Phone(Home)',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users.phonehome'), 'table' => 'users.phonehome'),
'phone_work' => array( 'phone_work' => array(
'name' => 'Judge -- Phone (Work)', 'name' => 'Judge -- Phone (Work)',
'header' => 'Phone(Work)', 'header' => 'Phone(Work)',
'width' => 1.25, 'width' => 31.75 /*mm*/,
'table' => "users.phonework"), 'table' => "users.phonework"),
'organization' => array( 'organization' => array(
'name' => 'Judge -- Organization', 'name' => 'Judge -- Organization',
'header' => 'Organization', 'header' => 'Organization',
'width' => 2, 'width' => 50.8 /*mm*/,
'table' => 'users.organization'), 'table' => 'users.organization'),
'languages' => array( 'languages' => array(
'name' => 'Judge -- Languages', 'name' => 'Judge -- Languages',
'header' => 'Lang', 'header' => 'Lang',
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'users_judge.languages', 'table' => 'users_judge.languages',
'exec_function' => 'report_judges_languages', 'exec_function' => 'report_judges_languages',
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -343,7 +343,7 @@ $report_judges_fields = array(
'complete' => array( 'complete' => array(
'name' => 'Judge -- Registration Complete', 'name' => 'Judge -- Registration Complete',
'header' => 'Cmpl', 'header' => 'Cmpl',
'width' => 0.4, 'width' => 10.16 /*mm*/,
'table' => 'users_judge.judge_complete', 'table' => 'users_judge.judge_complete',
'value_map' => array ('no' => 'No', 'yes' => 'Yes'), 'value_map' => array ('no' => 'No', 'yes' => 'Yes'),
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -351,7 +351,7 @@ $report_judges_fields = array(
'active' => array( 'active' => array(
'name' => 'Judge -- Registration Active for this year', 'name' => 'Judge -- Registration Active for this year',
'header' => 'Act', 'header' => 'Act',
'width' => 0.4, 'width' => 10.16 /*mm*/,
'table' => 'users_judge.judge_active', 'table' => 'users_judge.judge_active',
'value_map' => array ('no' => 'No', 'yes' => 'Yes'), 'value_map' => array ('no' => 'No', 'yes' => 'Yes'),
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -359,7 +359,7 @@ $report_judges_fields = array(
'willing_chair' => array( 'willing_chair' => array(
'name' => 'Judge -- Willing Chair', 'name' => 'Judge -- Willing Chair',
'header' => 'Will Chair?', 'header' => 'Will Chair?',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users_judge.willing_chair', 'table' => 'users_judge.willing_chair',
'value_map' => array ('no' => 'No', 'yes' => 'Yes'), 'value_map' => array ('no' => 'No', 'yes' => 'Yes'),
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -367,28 +367,28 @@ $report_judges_fields = array(
'years_school' => array( 'years_school' => array(
'name' => 'Judge -- Years of Experience at School level', 'name' => 'Judge -- Years of Experience at School level',
'header' => 'Sch', 'header' => 'Sch',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users_judge.years_school', 'table' => 'users_judge.years_school',
'components' => array('users_judge')), 'components' => array('users_judge')),
'years_regional' => array( 'years_regional' => array(
'name' => 'Judge -- Years of Experience at Regional level', 'name' => 'Judge -- Years of Experience at Regional level',
'header' => 'Rgn', 'header' => 'Rgn',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users_judge.years_regional', 'table' => 'users_judge.years_regional',
'components' => array('users_judge')), 'components' => array('users_judge')),
'years_national' => array( 'years_national' => array(
'name' => 'Judge -- Years of Experience at National level', 'name' => 'Judge -- Years of Experience at National level',
'header' => 'Ntl', 'header' => 'Ntl',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users_judge.years_national', 'table' => 'users_judge.years_national',
'components' => array('users_judge')), 'components' => array('users_judge')),
'highest_psd' => array( 'highest_psd' => array(
'name' => 'Judge -- Highest Post-Secondary Degree', 'name' => 'Judge -- Highest Post-Secondary Degree',
'header' => 'Highest PSD', 'header' => 'Highest PSD',
'width' => 1.25, 'width' => 31.75 /*mm*/,
'table' => 'users_judge.highest_psd', 'table' => 'users_judge.highest_psd',
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -398,7 +398,7 @@ $report_judges_fields = array(
'divs_at_exp_5' => array( 'divs_at_exp_5' => array(
'name' => 'Judge -- Divisions Selected as Expertise 5-Expert (Shortform)', 'name' => 'Judge -- Divisions Selected as Expertise 5-Expert (Shortform)',
'header' => 'Expert Div', 'header' => 'Expert Div',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users_judge.div_prefs', 'table' => 'users_judge.div_prefs',
'exec_function' => 'report_judges_divs_at_exp', 'exec_function' => 'report_judges_divs_at_exp',
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -406,7 +406,7 @@ $report_judges_fields = array(
'divs_at_exp_5_long' => array( 'divs_at_exp_5_long' => array(
'name' => 'Judge -- Divisions Selected as Expertise 5-Expert (Full division names)', 'name' => 'Judge -- Divisions Selected as Expertise 5-Expert (Full division names)',
'header' => 'Expert Div', 'header' => 'Expert Div',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'users_judge.div_prefs', 'table' => 'users_judge.div_prefs',
'exec_function' => 'report_judges_divs_at_exp', /* Yes, the same function as divs_at_exp_5 */ 'exec_function' => 'report_judges_divs_at_exp', /* Yes, the same function as divs_at_exp_5 */
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -414,7 +414,7 @@ $report_judges_fields = array(
'divs_at_exp_4' => array( 'divs_at_exp_4' => array(
'name' => 'Judge -- Divisions Selected as Expertise 4 (Shortform)', 'name' => 'Judge -- Divisions Selected as Expertise 4 (Shortform)',
'header' => '4 Div', 'header' => '4 Div',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users_judge.div_prefs', 'table' => 'users_judge.div_prefs',
'exec_function' => 'report_judges_divs_at_exp', 'exec_function' => 'report_judges_divs_at_exp',
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -422,7 +422,7 @@ $report_judges_fields = array(
'divs_at_exp_4_long' => array( 'divs_at_exp_4_long' => array(
'name' => 'Judge -- Divisions Selected as Expertise 4 (Full division names)', 'name' => 'Judge -- Divisions Selected as Expertise 4 (Full division names)',
'header' => '4 Div', 'header' => '4 Div',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'users_judge.div_prefs', 'table' => 'users_judge.div_prefs',
'exec_function' => 'report_judges_divs_at_exp', /* Yes, the same function as divs_at_exp_5 */ 'exec_function' => 'report_judges_divs_at_exp', /* Yes, the same function as divs_at_exp_5 */
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -430,7 +430,7 @@ $report_judges_fields = array(
'divs_at_exp_3' => array( 'divs_at_exp_3' => array(
'name' => 'Judge -- Divisions Selected as Expertise 3 (Shortform)', 'name' => 'Judge -- Divisions Selected as Expertise 3 (Shortform)',
'header' => '3 Div', 'header' => '3 Div',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users_judge.div_prefs', 'table' => 'users_judge.div_prefs',
'exec_function' => 'report_judges_divs_at_exp', 'exec_function' => 'report_judges_divs_at_exp',
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -438,7 +438,7 @@ $report_judges_fields = array(
'divs_at_exp_3_long' => array( 'divs_at_exp_3_long' => array(
'name' => 'Judge -- Divisions Selected as Expertise 3 (Full division names)', 'name' => 'Judge -- Divisions Selected as Expertise 3 (Full division names)',
'header' => '3 Div', 'header' => '3 Div',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'users_judge.div_prefs', 'table' => 'users_judge.div_prefs',
'exec_function' => 'report_judges_divs_at_exp', /* Yes, the same function as divs_at_exp_5 */ 'exec_function' => 'report_judges_divs_at_exp', /* Yes, the same function as divs_at_exp_5 */
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -460,7 +460,7 @@ $report_judges_fields = array(
'cats_at_pref_H' => array( 'cats_at_pref_H' => array(
'name' => 'Judge -- Age Categories Selected as Preference: Highest (Shortform)', 'name' => 'Judge -- Age Categories Selected as Preference: Highest (Shortform)',
'header' => 'Highest', 'header' => 'Highest',
'width' => 0.8, 'width' => 20.32 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'exec_function' => 'report_judges_cats_at_pref', 'exec_function' => 'report_judges_cats_at_pref',
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -468,7 +468,7 @@ $report_judges_fields = array(
'cats_at_pref_H_long' => array( 'cats_at_pref_H_long' => array(
'name' => 'Judge -- Age Categories Selected as Preference: Highest (Full category names)', 'name' => 'Judge -- Age Categories Selected as Preference: Highest (Full category names)',
'header' => 'Highest', 'header' => 'Highest',
'width' => 1.2, 'width' => 30.48 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'exec_function' => 'report_judges_cats_at_pref',/* Yes, the same function as cats_at_pref_H */ 'exec_function' => 'report_judges_cats_at_pref',/* Yes, the same function as cats_at_pref_H */
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -476,7 +476,7 @@ $report_judges_fields = array(
'cats_at_pref_h' => array( 'cats_at_pref_h' => array(
'name' => 'Judge -- Age Categories Selected as Preference: High (Shortform)', 'name' => 'Judge -- Age Categories Selected as Preference: High (Shortform)',
'header' => 'High', 'header' => 'High',
'width' => 0.8, 'width' => 20.32 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'exec_function' => 'report_judges_cats_at_pref', 'exec_function' => 'report_judges_cats_at_pref',
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -484,7 +484,7 @@ $report_judges_fields = array(
'cats_at_pref_h_long' => array( 'cats_at_pref_h_long' => array(
'name' => 'Judge -- Age Categories Selected as Preference: High (Full category names)', 'name' => 'Judge -- Age Categories Selected as Preference: High (Full category names)',
'header' => 'High', 'header' => 'High',
'width' => 1.2, 'width' => 30.48 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'exec_function' => 'report_judges_cats_at_pref',/* Yes, the same function as cats_at_pref_H */ 'exec_function' => 'report_judges_cats_at_pref',/* Yes, the same function as cats_at_pref_H */
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -492,7 +492,7 @@ $report_judges_fields = array(
'cats_at_pref_i' => array( 'cats_at_pref_i' => array(
'name' => 'Judge -- Age Categories Selected as Preference: Indifferent (Shortform)', 'name' => 'Judge -- Age Categories Selected as Preference: Indifferent (Shortform)',
'header' => 'Indifferent', 'header' => 'Indifferent',
'width' => 0.8, 'width' => 20.32 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'exec_function' => 'report_judges_cats_at_pref', 'exec_function' => 'report_judges_cats_at_pref',
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -500,7 +500,7 @@ $report_judges_fields = array(
'cats_at_pref_i_long' => array( 'cats_at_pref_i_long' => array(
'name' => 'Judge -- Age Categories Selected as Preference: Indifferent (Full category names)', 'name' => 'Judge -- Age Categories Selected as Preference: Indifferent (Full category names)',
'header' => 'Indifferent', 'header' => 'Indifferent',
'width' => 1.2, 'width' => 30.48 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'exec_function' => 'report_judges_cats_at_pref',/* Yes, the same function as cats_at_pref_H */ 'exec_function' => 'report_judges_cats_at_pref',/* Yes, the same function as cats_at_pref_H */
'components' => array('users_judge')), 'components' => array('users_judge')),
@ -508,7 +508,7 @@ $report_judges_fields = array(
'cat_pref_1' => array( 'cat_pref_1' => array(
'name' => 'Judge -- Age Category Preference for Category ID 1', 'name' => 'Judge -- Age Category Preference for Category ID 1',
'header' => 'cat1', 'header' => 'cat1',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'editor_disabled' => true, /* Only disables in the report editor, a report can still use it */ 'editor_disabled' => true, /* Only disables in the report editor, a report can still use it */
'exec_function' => 'report_judges_cat_pref', 'exec_function' => 'report_judges_cat_pref',
@ -516,7 +516,7 @@ $report_judges_fields = array(
'cat_pref_2' => array( 'cat_pref_2' => array(
'name' => 'Judge -- Age Category Preference for Category ID 2', 'name' => 'Judge -- Age Category Preference for Category ID 2',
'header' => 'cat2', 'header' => 'cat2',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_cat_pref', 'exec_function' => 'report_judges_cat_pref',
@ -524,7 +524,7 @@ $report_judges_fields = array(
'cat_pref_3' => array( 'cat_pref_3' => array(
'name' => 'Judge -- Age Category Preference for Category ID 3', 'name' => 'Judge -- Age Category Preference for Category ID 3',
'header' => 'cat3', 'header' => 'cat3',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_cat_pref', 'exec_function' => 'report_judges_cat_pref',
@ -532,7 +532,7 @@ $report_judges_fields = array(
'cat_pref_4' => array( 'cat_pref_4' => array(
'name' => 'Judge -- Age Category Preference for Category ID 4', 'name' => 'Judge -- Age Category Preference for Category ID 4',
'header' => 'cat4', 'header' => 'cat4',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_cat_pref', 'exec_function' => 'report_judges_cat_pref',
@ -540,7 +540,7 @@ $report_judges_fields = array(
'cat_pref_5' => array( 'cat_pref_5' => array(
'name' => 'Judge -- Age Category Preference for Category ID 5', 'name' => 'Judge -- Age Category Preference for Category ID 5',
'header' => 'cat5', 'header' => 'cat5',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_cat_pref', 'exec_function' => 'report_judges_cat_pref',
@ -548,7 +548,7 @@ $report_judges_fields = array(
'cat_pref_6' => array( 'cat_pref_6' => array(
'name' => 'Judge -- Age Category Preference for Category ID 6', 'name' => 'Judge -- Age Category Preference for Category ID 6',
'header' => 'cat6', 'header' => 'cat6',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_cat_pref', 'exec_function' => 'report_judges_cat_pref',
@ -556,7 +556,7 @@ $report_judges_fields = array(
'cat_pref_7' => array( 'cat_pref_7' => array(
'name' => 'Judge -- Age Category Preference for Category ID 7', 'name' => 'Judge -- Age Category Preference for Category ID 7',
'header' => 'cat7', 'header' => 'cat7',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_cat_pref', 'exec_function' => 'report_judges_cat_pref',
@ -564,7 +564,7 @@ $report_judges_fields = array(
'cat_pref_8' => array( 'cat_pref_8' => array(
'name' => 'Judge -- Age Category Preference for Category ID 8', 'name' => 'Judge -- Age Category Preference for Category ID 8',
'header' => 'cat8', 'header' => 'cat8',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_cat_pref', 'exec_function' => 'report_judges_cat_pref',
@ -572,7 +572,7 @@ $report_judges_fields = array(
'cat_pref_9' => array( 'cat_pref_9' => array(
'name' => 'Judge -- Age Category Preference for Category ID 9', 'name' => 'Judge -- Age Category Preference for Category ID 9',
'header' => 'cat9', 'header' => 'cat9',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_cat_pref', 'exec_function' => 'report_judges_cat_pref',
@ -580,7 +580,7 @@ $report_judges_fields = array(
'cat_pref_10' => array( 'cat_pref_10' => array(
'name' => 'Judge -- Age Category Preference for Category ID 10', 'name' => 'Judge -- Age Category Preference for Category ID 10',
'header' => 'cat10', 'header' => 'cat10',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users_judge.cat_prefs', 'table' => 'users_judge.cat_prefs',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_cat_pref', 'exec_function' => 'report_judges_cat_pref',
@ -590,13 +590,13 @@ $report_judges_fields = array(
'available_in_divisional1' => array( 'available_in_divisional1' => array(
'name' => 'Time Availability -- Available in Divisional Round 1 ', 'name' => 'Time Availability -- Available in Divisional Round 1 ',
'header' => 'R1', 'header' => 'R1',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'exec_function' => 'report_judges_time_availability', 'exec_function' => 'report_judges_time_availability',
'table' => 'users.id'), 'table' => 'users.id'),
'available_in_divisional2' => array( 'available_in_divisional2' => array(
'name' => 'Time Availability -- Available in Divisional Round 2 ', 'name' => 'Time Availability -- Available in Divisional Round 2 ',
'header' => 'R2', 'header' => 'R2',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'exec_function' => 'report_judges_time_availability', 'exec_function' => 'report_judges_time_availability',
'table' => 'users.id'), 'table' => 'users.id'),
@ -605,20 +605,20 @@ $report_judges_fields = array(
'special_award_only' => array( 'special_award_only' => array(
'name' => 'Judge -- Special Award Only Requested', 'name' => 'Judge -- Special Award Only Requested',
'header' => 'SA Only', 'header' => 'SA Only',
'width' => 0.8, 'width' => 20.32 /*mm*/,
'table' => 'users_judge.special_award_only', 'table' => 'users_judge.special_award_only',
'components' => array('users_judge')), 'components' => array('users_judge')),
'year' => array( 'year' => array(
'name' => 'Judge -- Year', 'name' => 'Judge -- Year',
'header' => 'Year', 'header' => 'Year',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users.year'), 'table' => 'users.year'),
'captain' => array( 'captain' => array(
'name' => 'Judge Team -- Team Captain? (Is the judge the captain? Yes/No)', 'name' => 'Judge Team -- Team Captain? (Is the judge the captain? Yes/No)',
'header' => 'Cptn', 'header' => 'Cptn',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'judges_teams_link.captain', 'table' => 'judges_teams_link.captain',
'value_map' => array ('no' => 'No', 'yes' => 'Yes'), 'value_map' => array ('no' => 'No', 'yes' => 'Yes'),
'components' => array('teams')), 'components' => array('teams')),
@ -626,14 +626,14 @@ $report_judges_fields = array(
'team' => array( 'team' => array(
'name' => 'Judge Team -- Name', 'name' => 'Judge Team -- Name',
'header' => 'Team Name', 'header' => 'Team Name',
'width' => 3.0, 'width' => 76.2 /*mm*/,
'table' => 'judges_teams.name', 'table' => 'judges_teams.name',
'components' => array('teams')), 'components' => array('teams')),
'teamnum' => array( 'teamnum' => array(
'name' => 'Judge Team -- Team Number', 'name' => 'Judge Team -- Team Number',
'header' => 'Team', 'header' => 'Team',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'judges_teams.num', 'table' => 'judges_teams.num',
'components' => array('teams')), 'components' => array('teams')),
@ -641,7 +641,7 @@ $report_judges_fields = array(
'team_members_all_except_this' => array( 'team_members_all_except_this' => array(
'name' => 'Judge Team -- All other team members', 'name' => 'Judge Team -- All other team members',
'header' => 'Members', 'header' => 'Members',
'width' => 2, 'width' => 50.8 /*mm
'table' => 'judges_teams.id', 'table' => 'judges_teams.id',
'exec_function' => 'report_judges_team_members', 'exec_function' => 'report_judges_team_members',
'components' => array('teams')), 'components' => array('teams')),
@ -649,7 +649,7 @@ $report_judges_fields = array(
'team_captain' => array( 'team_captain' => array(
'name' => 'Judge Team -- Name of the Team Captain', 'name' => 'Judge Team -- Name of the Team Captain',
'header' => 'Captain', 'header' => 'Captain',
'width' => 1.75, 'width' => 44.45 /*mm*/,
'table' => 'judges_teams.id', 'table' => 'judges_teams.id',
'exec_function' => 'report_judges_team_members', 'exec_function' => 'report_judges_team_members',
'components' => array('teams')), 'components' => array('teams')),
@ -657,7 +657,7 @@ $report_judges_fields = array(
'team_members_all_except_captain' => array( 'team_members_all_except_captain' => array(
'name' => 'Judge Team -- All team members, except the Captain', 'name' => 'Judge Team -- All team members, except the Captain',
'header' => 'Members', 'header' => 'Members',
'width' => 2, 'width' => 50.8 /*mm*/,
'table' => 'judges_teams.id', 'table' => 'judges_teams.id',
'exec_function' => 'report_judges_team_members', 'exec_function' => 'report_judges_team_members',
'components' => array('teams')), 'components' => array('teams')),
@ -665,7 +665,7 @@ $report_judges_fields = array(
'team_members_all' => array( 'team_members_all' => array(
'name' => 'Judge Team -- All team members including the Captain', 'name' => 'Judge Team -- All team members including the Captain',
'header' => 'Members', 'header' => 'Members',
'width' => 2, 'width' => 50.8 /*mm*/,
'table' => 'judges_teams.id', 'table' => 'judges_teams.id',
'exec_function' => 'report_judges_team_members', 'exec_function' => 'report_judges_team_members',
'components' => array('teams')), 'components' => array('teams')),
@ -673,35 +673,35 @@ $report_judges_fields = array(
'project_pn' => array( 'project_pn' => array(
'name' => 'Project -- Number', 'name' => 'Project -- Number',
'header' => 'Number', 'header' => 'Number',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'projects.projectnumber', 'table' => 'projects.projectnumber',
'components' => array('teams', 'projects')), 'components' => array('teams', 'projects')),
'project_title' => array( 'project_title' => array(
'name' => 'Project -- Title', 'name' => 'Project -- Title',
'header' => 'Project', 'header' => 'Project',
'width' => 3, 'width' => 76.2 /*mm*/,
'table' => 'projects.title', 'table' => 'projects.title',
'components' => array('teams', 'projects')), 'components' => array('teams', 'projects')),
'project_summary' => array( 'project_summary' => array(
'name' => 'Project -- Summary', 'name' => 'Project -- Summary',
'header' => 'Summary', 'header' => 'Summary',
'width' => 5, 'width' => 127 /*mm*/,
'table' => 'projects.summary', 'table' => 'projects.summary',
'components' => array('teams', 'projects')), 'components' => array('teams', 'projects')),
'project_language' => array( 'project_language' => array(
'name' => 'Project -- Language', 'name' => 'Project -- Language',
'header' => 'Lang', 'header' => 'Lang',
'width' => 0.4, 'width' => 10.16 /*mm*/,
'table' => 'projects.language', 'table' => 'projects.language',
'components' => array('teams', 'projects')), 'components' => array('teams', 'projects')),
'project_students' => array( 'project_students' => array(
'name' => 'Project -- Student Name(s) (REQUIRES MYSQL 5.0) ', 'name' => 'Project -- Student Name(s) (REQUIRES MYSQL 5.0) ',
'header' => 'Student(s)', 'header' => 'Student(s)',
'width' => 3.0, 'width' => 76.2 /*mm*/,
'table' => "GROUP_CONCAT(students.firstname, ' ', students.lastname ORDER BY students.lastname SEPARATOR ', ')", 'table' => "GROUP_CONCAT(students.firstname, ' ', students.lastname ORDER BY students.lastname SEPARATOR ', ')",
'group_by' => array('users.id','judges_teams_timeslots_projects_link.id'), 'group_by' => array('users.id','judges_teams_timeslots_projects_link.id'),
'components' => array('teams', 'projects', 'students')), 'components' => array('teams', 'projects', 'students')),
@ -709,41 +709,41 @@ $report_judges_fields = array(
'project_timeslot_start' => array( 'project_timeslot_start' => array(
'name' => 'Project -- Timeslot Start Time (HH:MM)', 'name' => 'Project -- Timeslot Start Time (HH:MM)',
'header' => 'Start', 'header' => 'Start',
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => "TIME_FORMAT(judges_timeslots.starttime,'%H:%i')", 'table' => "TIME_FORMAT(judges_timeslots.starttime,'%H:%i')",
'components' => array('teams', 'projects')), 'components' => array('teams', 'projects')),
'project_timeslot_end ' => array( 'project_timeslot_end ' => array(
'name' => 'Project -- Timeslot End Time (HH:MM)', 'name' => 'Project -- Timeslot End Time (HH:MM)',
'header' => 'End', 'header' => 'End',
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => "TIME_FORMAT(judges_timeslots.endtime,'%H:%i')", 'table' => "TIME_FORMAT(judges_timeslots.endtime,'%H:%i')",
'components' => array('teams', 'projects')), 'components' => array('teams', 'projects')),
'project_timeslot' => array( 'project_timeslot' => array(
'name' => 'Project -- Timeslot Start - End (HH:MM - HH:MM)', 'name' => 'Project -- Timeslot Start - End (HH:MM - HH:MM)',
'header' => 'Timeslot', 'header' => 'Timeslot',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => "CONCAT(TIME_FORMAT(judges_timeslots.starttime,'%H:%i'),'-',TIME_FORMAT(judges_timeslots.endtime,'%H:%i'))", 'table' => "CONCAT(TIME_FORMAT(judges_timeslots.starttime,'%H:%i'),'-',TIME_FORMAT(judges_timeslots.endtime,'%H:%i'))",
'components' => array('teams', 'projects')), 'components' => array('teams', 'projects')),
'project_timeslot_date' => array( 'project_timeslot_date' => array(
'name' => 'Project -- Timeslot Date - (YYYY-MM-DD)', 'name' => 'Project -- Timeslot Date - (YYYY-MM-DD)',
'header' => 'Timeslot Date', 'header' => 'Timeslot Date',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => "judges_timeslots.date", 'table' => "judges_timeslots.date",
'components' => array('teams', 'projects')), 'components' => array('teams', 'projects')),
'rank' => array( 'rank' => array(
'name' => 'Project -- Rank (left blank for judges to fill out)', 'name' => 'Project -- Rank (left blank for judges to fill out)',
'header' => 'Rank', 'header' => 'Rank',
'width' => 1.00, 'width' => 25.4 /*mm*/,
'table' => '""' ), 'table' => '""' ),
'question_1' => array( 'question_1' => array(
'name' => 'Judge -- Custom Judge Registration Question 1', 'name' => 'Judge -- Custom Judge Registration Question 1',
'header' => 'Q1', 'header' => 'Q1',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users.id', 'table' => 'users.id',
'editor_disabled' => true, /* Only disables in the report editor, a report can still use it */ 'editor_disabled' => true, /* Only disables in the report editor, a report can still use it */
'exec_function' => 'report_judges_custom_question'), 'exec_function' => 'report_judges_custom_question'),
@ -751,7 +751,7 @@ $report_judges_fields = array(
'question_2' => array( 'question_2' => array(
'name' => 'Judge -- Custom Judge Registration Question 2', 'name' => 'Judge -- Custom Judge Registration Question 2',
'header' => 'Q2', 'header' => 'Q2',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users.id', 'table' => 'users.id',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_custom_question'), 'exec_function' => 'report_judges_custom_question'),
@ -759,7 +759,7 @@ $report_judges_fields = array(
'question_3' => array( 'question_3' => array(
'name' => 'Judge -- Custom Judge Registration Question 3', 'name' => 'Judge -- Custom Judge Registration Question 3',
'header' => 'Q3', 'header' => 'Q3',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users.id', 'table' => 'users.id',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_custom_question'), 'exec_function' => 'report_judges_custom_question'),
@ -767,7 +767,7 @@ $report_judges_fields = array(
'question_4' => array( 'question_4' => array(
'name' => 'Judge -- Custom Judge Registration Question 4', 'name' => 'Judge -- Custom Judge Registration Question 4',
'header' => 'Q4', 'header' => 'Q4',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users.id', 'table' => 'users.id',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_custom_question'), 'exec_function' => 'report_judges_custom_question'),
@ -775,7 +775,7 @@ $report_judges_fields = array(
'question_5' => array( 'question_5' => array(
'name' => 'Judge -- Custom Judge Registration Question 5', 'name' => 'Judge -- Custom Judge Registration Question 5',
'header' => 'Q5', 'header' => 'Q5',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users.id', 'table' => 'users.id',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_custom_question'), 'exec_function' => 'report_judges_custom_question'),
@ -783,7 +783,7 @@ $report_judges_fields = array(
'question_6' => array( 'question_6' => array(
'name' => 'Judge -- Custom Judge Registration Question 6', 'name' => 'Judge -- Custom Judge Registration Question 6',
'header' => 'Q6', 'header' => 'Q6',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users.id', 'table' => 'users.id',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_custom_question'), 'exec_function' => 'report_judges_custom_question'),
@ -791,7 +791,7 @@ $report_judges_fields = array(
'question_7' => array( 'question_7' => array(
'name' => 'Judge -- Custom Judge Registration Question 7', 'name' => 'Judge -- Custom Judge Registration Question 7',
'header' => 'Q7', 'header' => 'Q7',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users.id', 'table' => 'users.id',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_custom_question'), 'exec_function' => 'report_judges_custom_question'),
@ -799,7 +799,7 @@ $report_judges_fields = array(
'question_8' => array( 'question_8' => array(
'name' => 'Judge -- Custom Judge Registration Question 8', 'name' => 'Judge -- Custom Judge Registration Question 8',
'header' => 'Q8', 'header' => 'Q8',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users.id', 'table' => 'users.id',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_custom_question'), 'exec_function' => 'report_judges_custom_question'),
@ -807,7 +807,7 @@ $report_judges_fields = array(
'question_9' => array( 'question_9' => array(
'name' => 'Judge -- Custom Judge Registration Question 9', 'name' => 'Judge -- Custom Judge Registration Question 9',
'header' => 'Q9', 'header' => 'Q9',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users.id', 'table' => 'users.id',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_custom_question'), 'exec_function' => 'report_judges_custom_question'),
@ -815,7 +815,7 @@ $report_judges_fields = array(
'question_10' => array( 'question_10' => array(
'name' => 'Judge -- Custom Judge Registration Question 10', 'name' => 'Judge -- Custom Judge Registration Question 10',
'header' => 'Q10', 'header' => 'Q10',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'users.id', 'table' => 'users.id',
'editor_disabled' => true, 'editor_disabled' => true,
'exec_function' => 'report_judges_custom_question'), 'exec_function' => 'report_judges_custom_question'),
@ -823,7 +823,7 @@ $report_judges_fields = array(
'static_text' => array( 'static_text' => array(
'name' => 'Static Text (useful for labels)', 'name' => 'Static Text (useful for labels)',
'header' => '', 'header' => '',
'width' => 0.1, 'width' => 2.54 /*mm*/,
'table' => "CONCAT(' ')"), 'table' => "CONCAT(' ')"),
); );
@ -834,7 +834,7 @@ for($x=1;$x<=50;$x++) {
$report_judges_fields["div_exp_$x"] = array( $report_judges_fields["div_exp_$x"] = array(
'name' => "Judge -- Expertise for Division ID $x", 'name' => "Judge -- Expertise for Division ID $x",
'header' => "div$x", 'header' => "div$x",
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users_judge.div_prefs', 'table' => 'users_judge.div_prefs',
'editor_disabled' => true, /* Only disables in the report editor, a report can still use it */ 'editor_disabled' => true, /* Only disables in the report editor, a report can still use it */
'exec_function' => 'report_judges_div_exp', 'exec_function' => 'report_judges_div_exp',

View File

@ -65,137 +65,137 @@ $report_schools_fields = array(
'school' => array( 'school' => array(
'name' => 'School -- Name', 'name' => 'School -- Name',
'header' => 'School Name', 'header' => 'School Name',
'width' => 2.25, 'width' => 57.15 /*mm*/,
'table' => 'schools.school' ), 'table' => 'schools.school' ),
'schooladdr' => array( 'schooladdr' => array(
'name' => 'School -- Full Address', 'name' => 'School -- Full Address',
'header' => 'School Address', 'header' => 'School Address',
'width' => 3.0, 'width' => 76.2 /*mm*/,
'table' => "CONCAT(schools.address, ', ', schools.city, ', ', schools.province_code, ', ', schools.postalcode)" ), 'table' => "CONCAT(schools.address, ', ', schools.city, ', ', schools.province_code, ', ', schools.postalcode)" ),
'school_phone' => array( 'school_phone' => array(
'name' => 'School -- Phone', 'name' => 'School -- Phone',
'header' => 'School Phone', 'header' => 'School Phone',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'schools.phone' ), 'table' => 'schools.phone' ),
'school_fax' => array( 'school_fax' => array(
'name' => 'School -- Fax', 'name' => 'School -- Fax',
'header' => 'School Fax', 'header' => 'School Fax',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'schools.fax' ), 'table' => 'schools.fax' ),
'school_email' => array( 'school_email' => array(
'name' => 'School -- Email', 'name' => 'School -- Email',
'header' => 'School Email', 'header' => 'School Email',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'schools.schoolemail' ), 'table' => 'schools.schoolemail' ),
'school_address' => array( 'school_address' => array(
'name' => 'School Address -- Street Address', 'name' => 'School Address -- Street Address',
'header' => 'Address', 'header' => 'Address',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => 'schools.address'), 'table' => 'schools.address'),
'school_city' => array( 'school_city' => array(
'name' => 'School Address -- City', 'name' => 'School Address -- City',
'header' => 'City', 'header' => 'City',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'schools.city' ), 'table' => 'schools.city' ),
'school_province' => array( 'school_province' => array(
'name' => 'School Address -- '.$config['provincestate'], 'name' => 'School Address -- '.$config['provincestate'],
'header' => $config['provincestate'], 'header' => $config['provincestate'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'schools.province_code' ), 'table' => 'schools.province_code' ),
'school_city_prov' => array( 'school_city_prov' => array(
'name' => 'School Address -- City, '.$config['provincestate'].' (for mailing)', 'name' => 'School Address -- City, '.$config['provincestate'].' (for mailing)',
'header' => 'City', 'header' => 'City',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => "CONCAT(schools.city, ', ', schools.province_code)" ), 'table' => "CONCAT(schools.city, ', ', schools.province_code)" ),
'school_postal' => array( 'school_postal' => array(
'name' => 'School Address -- '.$config['postalzip'], 'name' => 'School Address -- '.$config['postalzip'],
'header' => $config['postalzip'], 'header' => $config['postalzip'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'schools.postalcode' ), 'table' => 'schools.postalcode' ),
'school_lang' => array( 'school_lang' => array(
'name' => 'School -- Language Code', 'name' => 'School -- Language Code',
'header' => 'Lang', 'header' => 'Lang',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'schools.schoollang' ), 'table' => 'schools.schoollang' ),
'school_level' => array( 'school_level' => array(
'name' => 'School -- Grade Levels', 'name' => 'School -- Grade Levels',
'header' => 'Level', 'header' => 'Level',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'schools.schoollevel' ), 'table' => 'schools.schoollevel' ),
'school_board' => array( 'school_board' => array(
'name' => 'School -- Board', 'name' => 'School -- Board',
'header' => 'Board', 'header' => 'Board',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'schools.board' ), 'table' => 'schools.board' ),
'school_district' => array( 'school_district' => array(
'name' => 'School -- District', 'name' => 'School -- District',
'header' => 'District', 'header' => 'District',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'schools.district' ), 'table' => 'schools.district' ),
'school_principal' => array( 'school_principal' => array(
'name' => 'School -- Principal', 'name' => 'School -- Principal',
'header' => 'Principal', 'header' => 'Principal',
'width' => 1.25, 'width' => 31.75 /*mm*/,
'table' => 'schools.principal_uid', 'table' => 'schools.principal_uid',
'exec_function' => 'reports_schools_principal'), 'exec_function' => 'reports_schools_principal'),
'school_sh' => array( 'school_sh' => array(
'name' => 'School -- Science Head', 'name' => 'School -- Science Head',
'header' => 'Science Head', 'header' => 'Science Head',
'width' => 1.25, 'width' => 31.75 /*mm*/,
'table' => 'schools.sciencehead_uid', 'table' => 'schools.sciencehead_uid',
'exec_function' => 'reports_schools_sciencehead'), 'exec_function' => 'reports_schools_sciencehead'),
'school_shphone' => array( 'school_shphone' => array(
'name' => 'School -- Science Head Phone', 'name' => 'School -- Science Head Phone',
'header' => 'Science Hd Phone', 'header' => 'Science Hd Phone',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'schools.sciencehead_uid', 'table' => 'schools.sciencehead_uid',
'exec_function' => 'reports_schools_shphone'), 'exec_function' => 'reports_schools_shphone'),
'school_shemail' => array( 'school_shemail' => array(
'name' => 'School -- Science Head Email', 'name' => 'School -- Science Head Email',
'header' => 'Science Head Email', 'header' => 'Science Head Email',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'schools.sciencehead_uid', 'table' => 'schools.sciencehead_uid',
'exec_function' => 'reports_schools_shemail'), 'exec_function' => 'reports_schools_shemail'),
'school_accesscode' => array( 'school_accesscode' => array(
'name' => 'School -- Access Code', 'name' => 'School -- Access Code',
'header' => 'Access Code', 'header' => 'Access Code',
'width' => 1.1, 'width' => 27.94 /*mm*/,
'table' => 'schools.accesscode' ), 'table' => 'schools.accesscode' ),
'school_registration_password' => array( 'school_registration_password' => array(
'name' => 'School -- Registration Password', 'name' => 'School -- Registration Password',
'header' => 'Reg Pass', 'header' => 'Reg Pass',
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'schools.registration_password' ), 'table' => 'schools.registration_password' ),
'school_project_limit' => array( 'school_project_limit' => array(
'name' => 'School -- Project Limit', 'name' => 'School -- Project Limit',
'header' => 'Limit', 'header' => 'Limit',
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'schools.projectlimit' ), 'table' => 'schools.projectlimit' ),
'school_project_limit_per' => array( 'school_project_limit_per' => array(
'name' => 'School -- Project Limit Per', 'name' => 'School -- Project Limit Per',
'header' => 'Limit Per', 'header' => 'Limit Per',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'schools.projectlimitper' ), 'table' => 'schools.projectlimitper' ),
); );

View File

@ -85,7 +85,7 @@ $report_students_fields = array(
'pn' => array( 'pn' => array(
'name' => 'Project Number', 'name' => 'Project Number',
'header' => '#', 'header' => '#',
'width' => 0.6, 'width' => 15.24 /*mm*/,
'table' => 'projects.projectnumber', 'table' => 'projects.projectnumber',
'table_sort' => 'projects.projectsort, projects.projectnumber'), 'table_sort' => 'projects.projectsort, projects.projectnumber'),
@ -93,19 +93,19 @@ $report_students_fields = array(
'start_option_group' => 'Student Name Information', 'start_option_group' => 'Student Name Information',
'name' => 'Student -- Last Name', 'name' => 'Student -- Last Name',
'header' => 'Last Name', 'header' => 'Last Name',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'students.lastname' ), 'table' => 'students.lastname' ),
'first_name' => array( 'first_name' => array(
'name' => 'Student -- First Name', 'name' => 'Student -- First Name',
'header' => 'First Name', 'header' => 'First Name',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'students.firstname' ), 'table' => 'students.firstname' ),
'name' => array( 'name' => array(
'name' => 'Student -- Full Name (last, first)', 'name' => 'Student -- Full Name (last, first)',
'header' => 'Name', 'header' => 'Name',
'width' => 1.75, 'width' => 44.45 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => "CONCAT(students.lastname, ', ', students.firstname)", 'table' => "CONCAT(students.lastname, ', ', students.firstname)",
'table_sort'=> 'students.lastname' ), 'table_sort'=> 'students.lastname' ),
@ -113,7 +113,7 @@ $report_students_fields = array(
'namefl' => array( 'namefl' => array(
'name' => 'Student -- Full Name (first last)', 'name' => 'Student -- Full Name (first last)',
'header' => 'Name', 'header' => 'Name',
'width' => 1.75, 'width' => 44.45 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => "CONCAT(students.firstname, ' ', students.lastname)", 'table' => "CONCAT(students.firstname, ' ', students.lastname)",
'table_sort'=> 'students.lastname' ), 'table_sort'=> 'students.lastname' ),
@ -121,7 +121,7 @@ $report_students_fields = array(
'partner' => array( 'partner' => array(
'name' => 'Student -- Partner Name (last, first)', 'name' => 'Student -- Partner Name (last, first)',
'header' => 'Partner', 'header' => 'Partner',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => "CONCAT(students2.lastname, ', ', students2.firstname)", 'table' => "CONCAT(students2.lastname, ', ', students2.firstname)",
'components' => array('partner') ), 'components' => array('partner') ),
@ -129,7 +129,7 @@ $report_students_fields = array(
'partnerfl' => array( 'partnerfl' => array(
'name' => 'Student -- Partner Name (first last)', 'name' => 'Student -- Partner Name (first last)',
'header' => 'Partner', 'header' => 'Partner',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => "CONCAT(students2.firstname, ' ', students2.lastname)", 'table' => "CONCAT(students2.firstname, ' ', students2.lastname)",
'components' => array('partner') ), 'components' => array('partner') ),
@ -137,7 +137,7 @@ $report_students_fields = array(
'bothnames' => array( 'bothnames' => array(
'name' => "Student -- Both Student Names", 'name' => "Student -- Both Student Names",
'header' => 'Student(s)', 'header' => 'Student(s)',
'width' => 3.0, 'width' => 76.2 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => "CONCAT(students.firstname, ' ', students.lastname, IF(students2.lastname IS NULL,'', CONCAT(', ', students2.firstname, ' ', students2.lastname)))", 'table' => "CONCAT(students.firstname, ' ', students.lastname, IF(students2.lastname IS NULL,'', CONCAT(', ', students2.firstname, ' ', students2.lastname)))",
'table_sort' => 'students.lastname', 'table_sort' => 'students.lastname',
@ -146,7 +146,7 @@ $report_students_fields = array(
'allnames' => array( 'allnames' => array(
'name' => "Student -- All Student Names (REQUIRES MYSQL 5.0) ", 'name' => "Student -- All Student Names (REQUIRES MYSQL 5.0) ",
'header' => 'Student(s)', 'header' => 'Student(s)',
'width' => 3.0, 'width' => 76.2 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => "GROUP_CONCAT(students.firstname, ' ', students.lastname ORDER BY students.lastname SEPARATOR ', ')", 'table' => "GROUP_CONCAT(students.firstname, ' ', students.lastname ORDER BY students.lastname SEPARATOR ', ')",
'group_by' => array('students.registrations_id')), 'group_by' => array('students.registrations_id')),
@ -154,52 +154,52 @@ $report_students_fields = array(
'pronunciation' => array( 'pronunciation' => array(
'name' => 'Student -- Name Pronunciation', 'name' => 'Student -- Name Pronunciation',
'header' => 'Pronunciation', 'header' => 'Pronunciation',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => 'students.pronunciation'), 'table' => 'students.pronunciation'),
'email' => array( 'email' => array(
'start_option_group' => 'Student Contact Information', 'start_option_group' => 'Student Contact Information',
'name' => 'Student -- Email', 'name' => 'Student -- Email',
'header' => 'Email', 'header' => 'Email',
'width' => 2.25, 'width' => 57.15 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => 'students.email'), 'table' => 'students.email'),
'phone' => array( 'phone' => array(
'name' => 'Student -- Phone', 'name' => 'Student -- Phone',
'header' => 'Phone', 'header' => 'Phone',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'students.phone'), 'table' => 'students.phone'),
'address' => array( 'address' => array(
'name' => 'Student -- Street Address', 'name' => 'Student -- Street Address',
'header' => 'Address', 'header' => 'Address',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => 'students.address'), 'table' => 'students.address'),
'city' => array( 'city' => array(
'name' => 'Student -- City', 'name' => 'Student -- City',
'header' => 'City', 'header' => 'City',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'students.city' ), 'table' => 'students.city' ),
'province' => array( 'province' => array(
'name' => 'Student -- '.$config['provincestate'], 'name' => 'Student -- '.$config['provincestate'],
'header' => $config['provincestate'], 'header' => $config['provincestate'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'students.province' ), 'table' => 'students.province' ),
'postal' => array( 'postal' => array(
'name' => 'Student -- '.$config['postalzip'], 'name' => 'Student -- '.$config['postalzip'],
'header' => $config['postalzip'], 'header' => $config['postalzip'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'students.postalcode' ), 'table' => 'students.postalcode' ),
'address_full' => array( 'address_full' => array(
'name' => 'Student -- Full Address', 'name' => 'Student -- Full Address',
'header' => 'Address', 'header' => 'Address',
'width' => 3.0, 'width' => 76.2 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => "CONCAT(students.address, ', ', students.city, ', ', students.province, ', ', students.postalcode)" ), 'table' => "CONCAT(students.address, ', ', students.city, ', ', students.province, ', ', students.postalcode)" ),
@ -208,40 +208,40 @@ $report_students_fields = array(
'start_option_group' => 'Other Student Information', 'start_option_group' => 'Other Student Information',
'name' => 'Student -- Grade', 'name' => 'Student -- Grade',
'header' => 'Gr.', 'header' => 'Gr.',
'width' => 0.3, 'width' => 7.62 /*mm*/,
'table' => 'students.grade'), 'table' => 'students.grade'),
'grade_str' => array( 'grade_str' => array(
'name' => 'Student -- Grade ("Grade x", not just the number)', 'name' => 'Student -- Grade ("Grade x", not just the number)',
'header' => 'Gr.', 'header' => 'Gr.',
'width' => 0.3, 'width' => 7.62 /*mm*/,
'table_sort' => 'students.grade', 'table_sort' => 'students.grade',
'table' => "CONCAT('Grade ', students.grade)"), 'table' => "CONCAT('Grade ', students.grade)"),
'gender' => array( 'gender' => array(
'name' => 'Student -- Gender', 'name' => 'Student -- Gender',
'header' => 'Gender', 'header' => 'Gender',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'students.sex', 'table' => 'students.sex',
'value_map' =>array ('male' => 'Male', 'female' => 'Female')), 'value_map' =>array ('male' => 'Male', 'female' => 'Female')),
'birthdate' => array( 'birthdate' => array(
'name' => 'Student -- Birthdate', 'name' => 'Student -- Birthdate',
'header' => 'Birthdate', 'header' => 'Birthdate',
'width' => 0.9, 'width' => 22.86 /*mm*/,
'table' => 'students.dateofbirth'), 'table' => 'students.dateofbirth'),
'age' => array( 'age' => array(
'name' => 'Student -- Age (when this report is created)', 'name' => 'Student -- Age (when this report is created)',
'header' => 'Age', 'header' => 'Age',
'width' => 0.4, 'width' => 10.16 /*mm*/,
'table' => "DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW())-TO_DAYS(students.dateofbirth)), '%Y')+0", 'table' => "DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW())-TO_DAYS(students.dateofbirth)), '%Y')+0",
'table_sort' => 'students.dateofbirth'), 'table_sort' => 'students.dateofbirth'),
'tshirt' => array( 'tshirt' => array(
'name' => 'Student -- T-Shirt Size', 'name' => 'Student -- T-Shirt Size',
'header' => 'T-Shirt', 'header' => 'T-Shirt',
'width' => 0.55, 'width' => 13.97 /*mm*/,
'table' => 'students.tshirt', 'table' => 'students.tshirt',
'value_map' => array ('none' => '', 'xsmall' => 'X-Small', 'small' => 'Small', 'medium' => 'Medium', 'value_map' => array ('none' => '', 'xsmall' => 'X-Small', 'small' => 'Small', 'medium' => 'Medium',
'large' => 'Large', 'xlarge' => 'X-Large')), 'large' => 'Large', 'xlarge' => 'X-Large')),
@ -249,26 +249,26 @@ $report_students_fields = array(
'medicalalert' => array( 'medicalalert' => array(
'name' => 'Student -- Medical Alert Info', 'name' => 'Student -- Medical Alert Info',
'header' => 'medical', 'header' => 'medical',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => 'students.medicalalert'), 'table' => 'students.medicalalert'),
'foodreq' => array( 'foodreq' => array(
'name' => 'Student -- Food Requirements', 'name' => 'Student -- Food Requirements',
'header' => 'Food.Req.', 'header' => 'Food.Req.',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => 'students.foodreq'), 'table' => 'students.foodreq'),
'registrations_num' => array( 'registrations_num' => array(
'start_option_group' => 'Student Registration Information', 'start_option_group' => 'Student Registration Information',
'name' => 'Student -- Registration Number', 'name' => 'Student -- Registration Number',
'header' => 'RegNum', 'header' => 'RegNum',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'registrations.num' ), 'table' => 'registrations.num' ),
'paid' => array( 'paid' => array(
'name' => 'Paid', 'name' => 'Paid',
'header' => 'Paid', 'header' => 'Paid',
'width' => '0.4', 'width' => 10.1 /*mm*/,
'table' => 'registrations.status', 'table' => 'registrations.status',
'value_map' => array ('complete' => '', 'paymentpending' => 'No')), 'value_map' => array ('complete' => '', 'paymentpending' => 'No')),
@ -277,52 +277,52 @@ $report_students_fields = array(
'start_option_group' => 'Project Information', 'start_option_group' => 'Project Information',
'name' => 'Project -- Title', 'name' => 'Project -- Title',
'header' => 'Project Title', 'header' => 'Project Title',
'width' => 2.75, 'width' => 69.85 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => 'projects.title' ), 'table' => 'projects.title' ),
'shorttitle' => array( 'shorttitle' => array(
'name' => 'Project -- Short Title', 'name' => 'Project -- Short Title',
'header' => 'Short Title', 'header' => 'Short Title',
'width' => 2, 'width' => 50.8 /*mm*/,
'table' => 'projects.shorttitle' ), 'table' => 'projects.shorttitle' ),
'division' => array( 'division' => array(
'name' => 'Project -- Division', 'name' => 'Project -- Division',
'header' => 'Division', 'header' => 'Division',
'width' => 3.0, 'width' => 76.2 /*mm*/,
'table' => 'projectdivisions.division' ), 'table' => 'projectdivisions.division' ),
'div' => array( 'div' => array(
'name' => 'Project -- Division Short Form' , 'name' => 'Project -- Division Short Form' ,
'header' => 'Div', 'header' => 'Div',
'width' => 0.4, 'width' => 10.16 /*mm*/,
'table' => 'projectdivisions.division_shortform' ), 'table' => 'projectdivisions.division_shortform' ),
'fr_division' => array( 'fr_division' => array(
'name' => 'Project -- Division (French)', 'name' => 'Project -- Division (French)',
'header' => i18n('Division', array(), array(), 'fr'), 'header' => i18n('Division', array(), array(), 'fr'),
'width' => 3.0, 'width' => 76.2 /*mm*/,
'table' => 'projectdivisions.division', 'table' => 'projectdivisions.division',
'exec_function' => 'report_students_i18n_fr'), 'exec_function' => 'report_students_i18n_fr'),
'category' => array( 'category' => array(
'name' => 'Project -- Category', 'name' => 'Project -- Category',
'header' => 'Category', 'header' => 'Category',
'width' => 1, 'width' => 25.4 /*mm*/,
'table_sort' => 'projectcategories.id', 'table_sort' => 'projectcategories.id',
'table' => 'projectcategories.category' ), 'table' => 'projectcategories.category' ),
'cat' => array( 'cat' => array(
'name' => 'Project -- Category Short Form' , 'name' => 'Project -- Category Short Form' ,
'header' => 'cat', 'header' => 'cat',
'width' => 0.4, 'width' => 10.16 /*mm*/,
'table' => 'projectcategories.category_shortform' ), 'table' => 'projectcategories.category_shortform' ),
'fr_category' => array( 'fr_category' => array(
'name' => 'Project -- Category (French)', 'name' => 'Project -- Category (French)',
'header' => i18n('Category', array(), array(), 'fr'), 'header' => i18n('Category', array(), array(), 'fr'),
'width' => 1, 'width' => 25.4 /*mm*/,
'table_sort' => 'projectcategories.id', 'table_sort' => 'projectcategories.id',
'table' => 'projectcategories.category', 'table' => 'projectcategories.category',
'exec_function' => 'report_students_i18n_fr'), 'exec_function' => 'report_students_i18n_fr'),
@ -330,61 +330,61 @@ $report_students_fields = array(
'categorydivision' => array( 'categorydivision' => array(
'name' => 'Project -- Category and Division', 'name' => 'Project -- Category and Division',
'header' => 'Category/Division', 'header' => 'Category/Division',
'width' => 3.5, 'width' => 88.9 /*mm*/,
'table_sort' => 'projectcategories.id', 'table_sort' => 'projectcategories.id',
'table' => "CONCAT(projectcategories.category,' - ', projectdivisions.division)"), 'table' => "CONCAT(projectcategories.category,' - ', projectdivisions.division)"),
'divisioncategory' => array( 'divisioncategory' => array(
'name' => 'Project -- Division and Category', 'name' => 'Project -- Division and Category',
'header' => 'Division/Category', 'header' => 'Division/Category',
'width' => 3.5, 'width' => 88.9 /*mm*/,
'table_sort' => 'projectdivisions.id', 'table_sort' => 'projectdivisions.id',
'table' => "CONCAT(projectdivisions.division,' - ',projectcategories.category)"), 'table' => "CONCAT(projectdivisions.division,' - ',projectcategories.category)"),
'summary' => array( 'summary' => array(
'name' => 'Project -- Summary', 'name' => 'Project -- Summary',
'header' => 'Project Summary', 'header' => 'Project Summary',
'width' => 4.00, 'width' => 101.6 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => 'projects.summary' ), 'table' => 'projects.summary' ),
'language' => array( 'language' => array(
'name' => 'Project -- Language', 'name' => 'Project -- Language',
'header' => 'Lang', 'header' => 'Lang',
'width' => 1.00, 'width' => 25.4 /*mm*/,
'table' => 'projects.language' ), 'table' => 'projects.language' ),
'numstudents' => array( 'numstudents' => array(
'name' => 'Project -- Number of Students', 'name' => 'Project -- Number of Students',
'header' => 'Stu.', 'header' => 'Stu.',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'students.registrations_id', 'table' => 'students.registrations_id',
'exec_function' => 'reports_students_numstudents'), 'exec_function' => 'reports_students_numstudents'),
'rank' => array( 'rank' => array(
'name' => 'Project -- Rank (left blank for judges to fill out)', 'name' => 'Project -- Rank (left blank for judges to fill out)',
'header' => 'Rank', 'header' => 'Rank',
'width' => 1.00, 'width' => 25.4 /*mm*/,
'table' => '""' ), 'table' => '""' ),
'req_elec' => array( 'req_elec' => array(
'name' => 'Project -- If the project requires electricity', 'name' => 'Project -- If the project requires electricity',
'header' => 'Elec', 'header' => 'Elec',
'width' => .5, 'width' => 12.7 /*mm*/,
'table' => "projects.req_electricity", 'table' => "projects.req_electricity",
'value_map' => array ('no' => '', 'yes' => 'Yes')), 'value_map' => array ('no' => '', 'yes' => 'Yes')),
'req_table' => array( 'req_table' => array(
'name' => 'Project -- If the project requires a table', 'name' => 'Project -- If the project requires a table',
'header' => 'Table', 'header' => 'Table',
'width' => .5, 'width' => 12.7 /*mm*/,
'table' => "projects.req_table", 'table' => "projects.req_table",
'value_map' => array ('no' => '', 'yes' => 'Yes')), 'value_map' => array ('no' => '', 'yes' => 'Yes')),
'req_special' => array( 'req_special' => array(
'name' => 'Project -- Any special requirements the project has', 'name' => 'Project -- Any special requirements the project has',
'header' => 'Special Requirements', 'header' => 'Special Requirements',
'width' => 3, 'width' => 76.2 /*mm*/,
'table' => "projects.req_special"), 'table' => "projects.req_special"),
@ -392,90 +392,90 @@ $report_students_fields = array(
'start_option_group' => 'School Information', 'start_option_group' => 'School Information',
'name' => 'School -- Name', 'name' => 'School -- Name',
'header' => 'School Name', 'header' => 'School Name',
'width' => 2.25, 'width' => 57.15 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => 'schools.school' ), 'table' => 'schools.school' ),
'schooladdr' => array( 'schooladdr' => array(
'name' => 'School -- Full Address', 'name' => 'School -- Full Address',
'header' => 'School Address', 'header' => 'School Address',
'width' => 3.0, 'width' => 76.2 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => "CONCAT(schools.address, ', ', schools.city, ', ', schools.province_code, ', ', schools.postalcode)" ), 'table' => "CONCAT(schools.address, ', ', schools.city, ', ', schools.province_code, ', ', schools.postalcode)" ),
'teacher' => array( 'teacher' => array(
'name' => 'School -- Teacher Name (as entered by the student)', 'name' => 'School -- Teacher Name (as entered by the student)',
'header' => 'Teacher', 'header' => 'Teacher',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'students.teachername' ), 'table' => 'students.teachername' ),
'teacheremail' => array( 'teacheremail' => array(
'name' => 'School -- Teacher Email (as entered by the student)', 'name' => 'School -- Teacher Email (as entered by the student)',
'header' => 'Teacher Email', 'header' => 'Teacher Email',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => 'students.teacheremail' ), 'table' => 'students.teacheremail' ),
'school_phone' => array( 'school_phone' => array(
'name' => 'School -- Phone', 'name' => 'School -- Phone',
'header' => 'School Phone', 'header' => 'School Phone',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'schools.phone' ), 'table' => 'schools.phone' ),
'school_fax' => array( 'school_fax' => array(
'name' => 'School -- Fax', 'name' => 'School -- Fax',
'header' => 'School Fax', 'header' => 'School Fax',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'schools.fax' ), 'table' => 'schools.fax' ),
'school_address' => array( 'school_address' => array(
'name' => 'School -- Street Address', 'name' => 'School -- Street Address',
'header' => 'Address', 'header' => 'Address',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => 'schools.address'), 'table' => 'schools.address'),
'school_city' => array( 'school_city' => array(
'name' => 'School -- City', 'name' => 'School -- City',
'header' => 'City', 'header' => 'City',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'schools.city' ), 'table' => 'schools.city' ),
'school_province' => array( 'school_province' => array(
'name' => 'School -- '.$config['provincestate'], 'name' => 'School -- '.$config['provincestate'],
'header' => $config['provincestate'], 'header' => $config['provincestate'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'schools.province_code' ), 'table' => 'schools.province_code' ),
'school_city_prov' => array( 'school_city_prov' => array(
'name' => 'School -- City, '.$config['provincestate'].' (for mailing)', 'name' => 'School -- City, '.$config['provincestate'].' (for mailing)',
'header' => 'City', 'header' => 'City',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => "CONCAT(schools.city, ', ', schools.province_code)" ), 'table' => "CONCAT(schools.city, ', ', schools.province_code)" ),
'school_postal' => array( 'school_postal' => array(
'name' => 'School -- '.$config['postalzip'], 'name' => 'School -- '.$config['postalzip'],
'header' => $config['postalzip'], 'header' => $config['postalzip'],
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'schools.postalcode' ), 'table' => 'schools.postalcode' ),
'school_principal' => array( 'school_principal' => array(
'name' => 'School -- Principal', 'name' => 'School -- Principal',
'header' => 'Principal', 'header' => 'Principal',
'width' => 1.25, 'width' => 31.75 /*mm*/,
'table' => 'schools.principal_uid', 'table' => 'schools.principal_uid',
'exec_function' => 'reports_students_school_principal'), 'exec_function' => 'reports_students_school_principal'),
'school_board' => array( 'school_board' => array(
'name' => 'School -- Board ID', 'name' => 'School -- Board ID',
'header' => 'Board', 'header' => 'Board',
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'schools.board' ), 'table' => 'schools.board' ),
'awards' => array( 'awards' => array(
'start_option_group' => 'Awards assigned to student (warning: duplicates student entries for multiple awards won!)', 'start_option_group' => 'Awards assigned to student (warning: duplicates student entries for multiple awards won!)',
'name' => 'Award -- Type + Name', 'name' => 'Award -- Type + Name',
'header' => 'Award Name', 'header' => 'Award Name',
'width' => 4, 'width' => 101.6 /*mm*/,
'table' => "CONCAT(IF(award_types.type='Other','Special',award_types.type),' ', award_awards.name)", 'table' => "CONCAT(IF(award_types.type='Other','Special',award_types.type),' ', award_awards.name)",
'table_sort' => 'award_awards.name', 'table_sort' => 'award_awards.name',
'components' => array('awards')), 'components' => array('awards')),
@ -483,21 +483,21 @@ $report_students_fields = array(
'award_name' => array( 'award_name' => array(
'name' => 'Award -- Name', 'name' => 'Award -- Name',
'header' => 'Award Name', 'header' => 'Award Name',
'width' => 4, 'width' => 101.6 /*mm*/,
'table' => 'award_awards.name', 'table' => 'award_awards.name',
'components' => array('awards')), 'components' => array('awards')),
'award_excludefromac' => array( 'award_excludefromac' => array(
'name' => 'Award -- Exclude from Award Ceremony (Yes/No)', 'name' => 'Award -- Exclude from Award Ceremony (Yes/No)',
'header' => 'Exclude', 'header' => 'Exclude',
'width' => .5, 'width' => 12.7 /*mm*/,
'table' => "award_awards.excludefromac", 'table' => "award_awards.excludefromac",
'value_map' => array ('no' => 'No', 'yes' => 'Yes')), 'value_map' => array ('no' => 'No', 'yes' => 'Yes')),
'order' => array( 'order' => array(
'name' => 'Award -- Order', 'name' => 'Award -- Order',
'header' => 'Award Order', 'header' => 'Award Order',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'award_awards.order', 'table' => 'award_awards.order',
'table_sort' => 'award_awards.order', 'table_sort' => 'award_awards.order',
'components' => array('awards')), 'components' => array('awards')),
@ -505,14 +505,14 @@ $report_students_fields = array(
'award_type' => array( 'award_type' => array(
'name' => 'Award -- Type (Divisional, Special, etc.)', 'name' => 'Award -- Type (Divisional, Special, etc.)',
'header' => 'Award Type', 'header' => 'Award Type',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'award_types.type', 'table' => 'award_types.type',
'components' => array('awards')), 'components' => array('awards')),
'sponsor' => array( 'sponsor' => array(
'name' => 'Award -- Sponsor DB ID', 'name' => 'Award -- Sponsor DB ID',
'header' => 'Award Sponsor', 'header' => 'Award Sponsor',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'award_awards.sponsors_id', 'table' => 'award_awards.sponsors_id',
'table_sort' => 'award_awards.sponsors_id', 'table_sort' => 'award_awards.sponsors_id',
'components' => array('awards')), 'components' => array('awards')),
@ -520,7 +520,7 @@ $report_students_fields = array(
'pn_awards' => array( 'pn_awards' => array(
'name' => 'Award -- Project Num + Award Name (will be unique for each award)', 'name' => 'Award -- Project Num + Award Name (will be unique for each award)',
'header' => 'Award Name', 'header' => 'Award Name',
'width' => 4, 'width' => 101.6 /*mm*/,
'table' => "CONCAT(projects.projectnumber,' ', award_awards.name)", 'table' => "CONCAT(projects.projectnumber,' ', award_awards.name)",
'table_sort' => 'award_awards.order', 'table_sort' => 'award_awards.order',
'components' => array('awards')), 'components' => array('awards')),
@ -528,35 +528,35 @@ $report_students_fields = array(
'award_prize_name' => array( 'award_prize_name' => array(
'name' => 'Award -- Prize Name', 'name' => 'Award -- Prize Name',
'header' => 'Prize Name', 'header' => 'Prize Name',
'width' => 2, 'width' => 50.8 /*mm*/,
'table' => 'award_prizes.prize', 'table' => 'award_prizes.prize',
'components' => array('awards')), 'components' => array('awards')),
'award_prize_cash' => array( 'award_prize_cash' => array(
'name' => 'Award -- Prize Cash Amount', 'name' => 'Award -- Prize Cash Amount',
'header' => 'Cash', 'header' => 'Cash',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'award_prizes.cash', 'table' => 'award_prizes.cash',
'components' => array('awards')), 'components' => array('awards')),
'award_prize_scholarship' => array( 'award_prize_scholarship' => array(
'name' => 'Award -- Prize Scholarship Amount', 'name' => 'Award -- Prize Scholarship Amount',
'header' => 'Scholarship', 'header' => 'Scholarship',
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'award_prizes.scholarship', 'table' => 'award_prizes.scholarship',
'components' => array('awards')), 'components' => array('awards')),
'award_prize_value' => array( 'award_prize_value' => array(
'name' => 'Award -- Prize Value Amount', 'name' => 'Award -- Prize Value Amount',
'header' => 'Value', 'header' => 'Value',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'award_prizes.value', 'table' => 'award_prizes.value',
'components' => array('awards')), 'components' => array('awards')),
'award_prize_fullname' => array( 'award_prize_fullname' => array(
'name' => 'Award -- Prize Name, Category, Division', 'name' => 'Award -- Prize Name, Category, Division',
'header' => 'Prize Name', 'header' => 'Prize Name',
'width' => 4, 'width' => 101.6 /*mm*/,
'table' => "CONCAT(award_prizes.prize,' in ',projectcategories.category,' ', projectdivisions.division)", 'table' => "CONCAT(award_prizes.prize,' in ',projectcategories.category,' ', projectdivisions.division)",
'table_sort' => 'award_prizes.order', 'table_sort' => 'award_prizes.order',
'components' => array('awards')), 'components' => array('awards')),
@ -564,7 +564,7 @@ $report_students_fields = array(
'award_prize_trophy_any' => array( 'award_prize_trophy_any' => array(
'name' => 'Award -- Trophy (\'Yes\' if the award has a trophy)', 'name' => 'Award -- Trophy (\'Yes\' if the award has a trophy)',
'header' => 'Trophy', 'header' => 'Trophy',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => "IF ( award_prizes.trophystudentkeeper=1 'table' => "IF ( award_prizes.trophystudentkeeper=1
OR award_prizes.trophystudentreturn=1 OR award_prizes.trophystudentreturn=1
OR award_prizes.trophyschoolkeeper=1 OR award_prizes.trophyschoolkeeper=1
@ -574,7 +574,7 @@ $report_students_fields = array(
'award_prize_trophy_return' => array( 'award_prize_trophy_return' => array(
'name' => 'Award -- Annual Trophy (\'Yes\' if the award has a school or student trophy that isn\'t a keeper)', 'name' => 'Award -- Annual Trophy (\'Yes\' if the award has a school or student trophy that isn\'t a keeper)',
'header' => 'Trophy', 'header' => 'Trophy',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => "IF ( award_prizes.trophystudentreturn=1 'table' => "IF ( award_prizes.trophystudentreturn=1
OR award_prizes.trophyschoolreturn=1, 'Yes', 'No')", OR award_prizes.trophyschoolreturn=1, 'Yes', 'No')",
'components' => array('awards')), 'components' => array('awards')),
@ -582,14 +582,14 @@ $report_students_fields = array(
'award_prize_trophy_return_student' => array( 'award_prize_trophy_return_student' => array(
'name' => 'Award -- Annual Student Trophy (\'Yes\' if the award has astudent trophy that isn\'t a keeper)', 'name' => 'Award -- Annual Student Trophy (\'Yes\' if the award has astudent trophy that isn\'t a keeper)',
'header' => 'Ind.', 'header' => 'Ind.',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => "IF ( award_prizes.trophystudentreturn=1, 'Yes', 'No')", 'table' => "IF ( award_prizes.trophystudentreturn=1, 'Yes', 'No')",
'components' => array('awards')), 'components' => array('awards')),
'award_prize_trophy_return_school' => array( 'award_prize_trophy_return_school' => array(
'name' => 'Award -- Annual School Trophy (\'Yes\' if the award has a school trophy that isn\'t a keeper)', 'name' => 'Award -- Annual School Trophy (\'Yes\' if the award has a school trophy that isn\'t a keeper)',
'header' => 'Sch.', 'header' => 'Sch.',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => "IF ( award_prizes.trophyschoolreturn=1, 'Yes', 'No')", 'table' => "IF ( award_prizes.trophyschoolreturn=1, 'Yes', 'No')",
'components' => array('awards')), 'components' => array('awards')),
@ -597,7 +597,7 @@ $report_students_fields = array(
'start_option_group' => 'Nominated Awards (warning: duplicates student for multiple awards!)', 'start_option_group' => 'Nominated Awards (warning: duplicates student for multiple awards!)',
'name' => 'Award Nominations -- Award Name', 'name' => 'Award Nominations -- Award Name',
'header' => 'Award Name', 'header' => 'Award Name',
'width' => 4, 'width' => 101.6 /*mm*/,
'table' => "CONCAT(award_types.type,' -- ',award_awards.name)", 'table' => "CONCAT(award_types.type,' -- ',award_awards.name)",
'table_sort' => 'award_awards.name', 'table_sort' => 'award_awards.name',
'components' => array('awards_nominations')), 'components' => array('awards_nominations')),
@ -605,7 +605,7 @@ $report_students_fields = array(
'nom_pn_awards' => array( 'nom_pn_awards' => array(
'name' => 'Award Nominations -- Project Num + Award Name(will be unique)', 'name' => 'Award Nominations -- Project Num + Award Name(will be unique)',
'header' => 'Award Name', 'header' => 'Award Name',
'width' => 4, 'width' => 101.6 /*mm*/,
'table' => "CONCAT(projects.projectnumber,' ', award_awards.name)", 'table' => "CONCAT(projects.projectnumber,' ', award_awards.name)",
'table_sort' => 'award_awards.name', 'table_sort' => 'award_awards.name',
'components' => array('awards_nominations')), 'components' => array('awards_nominations')),
@ -613,7 +613,7 @@ $report_students_fields = array(
'nom_awards_name_1' => array( 'nom_awards_name_1' => array(
'name' => 'Award Nominations -- Self-Nominated Special Award 1', 'name' => 'Award Nominations -- Self-Nominated Special Award 1',
'header' => 'Award Name', 'header' => 'Award Name',
'width' => 3, 'width' => 76.2 /*mm*/,
'table' => 'projects.id', 'table' => 'projects.id',
'table_sort' => 'projects.id', 'table_sort' => 'projects.id',
'exec_function' => 'reports_students_award_selfnom_1'), 'exec_function' => 'reports_students_award_selfnom_1'),
@ -621,7 +621,7 @@ $report_students_fields = array(
'nom_awards_name_2' => array( 'nom_awards_name_2' => array(
'name' => 'Award Nominations -- Self-Nominated Special Award 2', 'name' => 'Award Nominations -- Self-Nominated Special Award 2',
'header' => 'Award Name', 'header' => 'Award Name',
'width' => 3, 'width' => 76.2 /*mm*/,
'table' => 'projects.id', 'table' => 'projects.id',
'table_sort' => 'projects.id', 'table_sort' => 'projects.id',
'exec_function' => 'reports_students_award_selfnom_2'), 'exec_function' => 'reports_students_award_selfnom_2'),
@ -629,7 +629,7 @@ $report_students_fields = array(
'nom_awards_name_3' => array( 'nom_awards_name_3' => array(
'name' => 'Award Nominations -- Self-Nominated Special Award 3', 'name' => 'Award Nominations -- Self-Nominated Special Award 3',
'header' => 'Award Name', 'header' => 'Award Name',
'width' => 3, 'width' => 76.2 /*mm*/,
'table' => 'projects.id', 'table' => 'projects.id',
'table_sort' => 'projects.id', 'table_sort' => 'projects.id',
'exec_function' => 'reports_students_award_selfnom_3'), 'exec_function' => 'reports_students_award_selfnom_3'),
@ -637,7 +637,7 @@ $report_students_fields = array(
'nom_awards_name_4' => array( 'nom_awards_name_4' => array(
'name' => 'Award Nominations -- Self-Nominated Special Award 4', 'name' => 'Award Nominations -- Self-Nominated Special Award 4',
'header' => 'Award Name', 'header' => 'Award Name',
'width' => 3, 'width' => 76.2 /*mm*/,
'table' => 'projects.id', 'table' => 'projects.id',
'table_sort' => 'projects.id', 'table_sort' => 'projects.id',
'exec_function' => 'reports_students_award_selfnom_4'), 'exec_function' => 'reports_students_award_selfnom_4'),
@ -645,7 +645,7 @@ $report_students_fields = array(
'nom_awards_name_5' => array( 'nom_awards_name_5' => array(
'name' => 'Award Nominations -- Self-Nominated Special Award 5', 'name' => 'Award Nominations -- Self-Nominated Special Award 5',
'header' => 'Award Name', 'header' => 'Award Name',
'width' => 3, 'width' => 76.2 /*mm*/,
'table' => 'projects.id', 'table' => 'projects.id',
'table_sort' => 'projects.id', 'table_sort' => 'projects.id',
'exec_function' => 'reports_students_award_selfnom_5'), 'exec_function' => 'reports_students_award_selfnom_5'),
@ -655,21 +655,21 @@ $report_students_fields = array(
'start_option_group' => 'Emergency Contact Information', 'start_option_group' => 'Emergency Contact Information',
'name' => 'Emergency Contact -- Name', 'name' => 'Emergency Contact -- Name',
'header' => 'Contact Name', 'header' => 'Contact Name',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => "CONCAT(emergencycontact.firstname, ' ', emergencycontact.lastname)", 'table' => "CONCAT(emergencycontact.firstname, ' ', emergencycontact.lastname)",
'components' => array('emergencycontacts')), 'components' => array('emergencycontacts')),
'emerg_relation' => array( 'emerg_relation' => array(
'name' => 'Emergency Contact -- Relationship', 'name' => 'Emergency Contact -- Relationship',
'header' => 'Relation', 'header' => 'Relation',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => "emergencycontact.relation", 'table' => "emergencycontact.relation",
'components' => array('emergencycontacts')), 'components' => array('emergencycontacts')),
'emerg_phone' => array( 'emerg_phone' => array(
'name' => 'Emergency Contact -- Phone', 'name' => 'Emergency Contact -- Phone',
'header' => 'Emrg.Phone', 'header' => 'Emrg.Phone',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => "CONCAT(emergencycontact.phone1, ' ', emergencycontact.phone2, ' ', emergencycontact.phone3, ' ', emergencycontact.phone4)", 'table' => "CONCAT(emergencycontact.phone1, ' ', emergencycontact.phone2, ' ', emergencycontact.phone3, ' ', emergencycontact.phone4)",
'components' => array('emergencycontacts')), 'components' => array('emergencycontacts')),
@ -678,21 +678,21 @@ $report_students_fields = array(
'start_option_group' => 'Tour Information', 'start_option_group' => 'Tour Information',
'name' => 'Tours -- Assigned Tour Name', 'name' => 'Tours -- Assigned Tour Name',
'header' => 'Tour', 'header' => 'Tour',
'width' => 4, 'width' => 101.6 /*mm*/,
'table' => "tours.name", 'table' => "tours.name",
'components' => array('tours')), 'components' => array('tours')),
'tour_assign_num' => array( 'tour_assign_num' => array(
'name' => 'Tours -- Assigned Tour Number', 'name' => 'Tours -- Assigned Tour Number',
'header' => 'Tour', 'header' => 'Tour',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => "tours.num", 'table' => "tours.num",
'components' => array('tours')), 'components' => array('tours')),
'tour_assign_numname' => array( 'tour_assign_numname' => array(
'name' => 'Tours -- Assigned Tour Number and Name', 'name' => 'Tours -- Assigned Tour Number and Name',
'header' => 'Tour', 'header' => 'Tour',
'width' => 4, 'width' => 101.6 /*mm*/,
'table' => "CONCAT(tours.num,': ', tours.name)", 'table' => "CONCAT(tours.num,': ', tours.name)",
'table_sort' => 'tours.num', 'table_sort' => 'tours.num',
'components' => array('tours')), 'components' => array('tours')),
@ -702,7 +702,7 @@ $report_students_fields = array(
'start_option_group' => 'Mentor Information', 'start_option_group' => 'Mentor Information',
'name' => 'Mentor -- Project and Name (Distinct for each Project+Mentor pair)', 'name' => 'Mentor -- Project and Name (Distinct for each Project+Mentor pair)',
'header' => 'Mentor Name', 'header' => 'Mentor Name',
'width' => 1.75, 'width' => 44.45 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => "CONCAT('projects.projectnumber', ' - ', mentors.firstname, ', ', mentors.lastname)", 'table' => "CONCAT('projects.projectnumber', ' - ', mentors.firstname, ', ', mentors.lastname)",
'table_sort'=> 'mentors.lastname', 'table_sort'=> 'mentors.lastname',
@ -711,21 +711,21 @@ $report_students_fields = array(
'mentor_last_name' => array( 'mentor_last_name' => array(
'name' => 'Mentor -- Last Name', 'name' => 'Mentor -- Last Name',
'header' => 'Last Name', 'header' => 'Last Name',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'mentors.lastname', 'table' => 'mentors.lastname',
'components' => array('mentors')), 'components' => array('mentors')),
'mentor_first_name' => array( 'mentor_first_name' => array(
'name' => 'Mentor -- First Name', 'name' => 'Mentor -- First Name',
'header' => 'First Name', 'header' => 'First Name',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'mentors.firstname', 'table' => 'mentors.firstname',
'components' => array('mentors')), 'components' => array('mentors')),
'mentor_name' => array( 'mentor_name' => array(
'name' => 'Mentor -- Full Name (last, first)', 'name' => 'Mentor -- Full Name (last, first)',
'header' => 'Mentor Name', 'header' => 'Mentor Name',
'width' => 1.75, 'width' => 44.45 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => "CONCAT(mentors.lastname, ', ', mentors.firstname)", 'table' => "CONCAT(mentors.lastname, ', ', mentors.firstname)",
'table_sort'=> 'mentors.lastname', 'table_sort'=> 'mentors.lastname',
@ -734,7 +734,7 @@ $report_students_fields = array(
'mentor_namefl' => array( 'mentor_namefl' => array(
'name' => 'Mentor -- Full Name (first last)', 'name' => 'Mentor -- Full Name (first last)',
'header' => 'Mentor Name', 'header' => 'Mentor Name',
'width' => 1.75, 'width' => 44.45 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => "CONCAT(mentors.firstname, ' ', mentors.lastname)", 'table' => "CONCAT(mentors.firstname, ' ', mentors.lastname)",
'table_sort'=> 'mentors.lastname', 'table_sort'=> 'mentors.lastname',
@ -743,7 +743,7 @@ $report_students_fields = array(
'mentor_email' => array( 'mentor_email' => array(
'name' => 'Mentor -- Email', 'name' => 'Mentor -- Email',
'header' => 'Mentor Email', 'header' => 'Mentor Email',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => 'mentors.email', 'table' => 'mentors.email',
'components' => array('mentors')), 'components' => array('mentors')),
@ -751,14 +751,14 @@ $report_students_fields = array(
'mentor_phone' => array( 'mentor_phone' => array(
'name' => 'Mentor -- Phone', 'name' => 'Mentor -- Phone',
'header' => 'Mentor Phone', 'header' => 'Mentor Phone',
'width' => 1, 'width' => 25.4 /*mm*/,
'table' => 'mentors.phone', 'table' => 'mentors.phone',
'components' => array('mentors')), 'components' => array('mentors')),
'mentor_organization' => array( 'mentor_organization' => array(
'name' => 'Mentor -- Organization', 'name' => 'Mentor -- Organization',
'header' => 'Mentor Org.', 'header' => 'Mentor Org.',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => 'mentors.organization', 'table' => 'mentors.organization',
'components' => array('mentors')), 'components' => array('mentors')),
@ -766,7 +766,7 @@ $report_students_fields = array(
'mentor_position' => array( 'mentor_position' => array(
'name' => 'Mentor -- Position', 'name' => 'Mentor -- Position',
'header' => 'Position', 'header' => 'Position',
'width' => 1, 'width' => 25.4 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => 'mentors.position', 'table' => 'mentors.position',
'components' => array('mentors')), 'components' => array('mentors')),
@ -774,7 +774,7 @@ $report_students_fields = array(
'mentor_description' => array( 'mentor_description' => array(
'name' => 'Mentor -- Description of Help', 'name' => 'Mentor -- Description of Help',
'header' => 'Description of Help', 'header' => 'Description of Help',
'width' => 3.0, 'width' => 76.2 /*mm*/,
'scalable' => true, 'scalable' => true,
'table' => 'mentors.description', 'table' => 'mentors.description',
'components' => array('mentors')), 'components' => array('mentors')),
@ -784,14 +784,14 @@ $report_students_fields = array(
'start_option_group' => 'Fair Information', 'start_option_group' => 'Fair Information',
'name' => 'Feeder Fair -- Name', 'name' => 'Feeder Fair -- Name',
'header' => 'Fair Name', 'header' => 'Fair Name',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'fairs.name', 'table' => 'fairs.name',
'components' => array('fairs')), 'components' => array('fairs')),
'feeder_fair_abbrv' => array ( 'feeder_fair_abbrv' => array (
'name' => 'Feeder Fair -- Abbreviation', 'name' => 'Feeder Fair -- Abbreviation',
'header' => 'Fair', 'header' => 'Fair',
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'fairs.abbrv', 'table' => 'fairs.abbrv',
'components' => array('fairs')), 'components' => array('fairs')),
@ -799,13 +799,13 @@ $report_students_fields = array(
'fair_year' => array ( 'fair_year' => array (
'name' => 'Fair -- Year', 'name' => 'Fair -- Year',
'header' => 'Year', 'header' => 'Year',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => "{$config['FAIRYEAR']}"), 'table' => "{$config['FAIRYEAR']}"),
'fair_name' => array ( 'fair_name' => array (
'name' => 'Fair -- Name', 'name' => 'Fair -- Name',
'header' => 'Fair Name', 'header' => 'Fair Name',
'width' => 3, 'width' => 76.2 /*mm*/,
'table' => "'".mysql_escape_string($config['fairname'])."'"), 'table' => "'".mysql_escape_string($config['fairname'])."'"),
/* Special/Misc/Other */ /* Special/Misc/Other */
@ -813,26 +813,26 @@ $report_students_fields = array(
'start_option_group' => 'Special Fields', 'start_option_group' => 'Special Fields',
'name' => 'Label -- Static Text', 'name' => 'Label -- Static Text',
'header' => '', 'header' => '',
'width' => 0.1, 'width' => 2.54 /*mm*/,
'table' => "CONCAT(' ')"), 'table' => "CONCAT(' ')"),
'static_box' => array ( 'static_box' => array (
'name' => 'Label -- Static Box', 'name' => 'Label -- Static Box',
'header' => '', 'header' => '',
'width' => 0.1, 'width' => 2.54 /*mm*/,
'table' => "CONCAT(' ')"), 'table' => "CONCAT(' ')"),
'easyparse_allnames' => array( 'easyparse_allnames' => array(
'name' => "Easy Parse -- All Student Names (REQUIRES MYSQL 5.0) ", 'name' => "Easy Parse -- All Student Names (REQUIRES MYSQL 5.0) ",
'header' => 'Student(s)', 'header' => 'Student(s)',
'width' => 3.0, 'width' => 76.2 /*mm*/,
'table' => "GROUP_CONCAT(students.lastname, ',', students.firstname ORDER BY students.lastname SEPARATOR ':')", 'table' => "GROUP_CONCAT(students.lastname, ',', students.firstname ORDER BY students.lastname SEPARATOR ':')",
'group_by' => array('students.registrations_id')), 'group_by' => array('students.registrations_id')),
'special_tshirt_count' => array( 'special_tshirt_count' => array(
'name' => 'Special -- T-Shirt Size Count', 'name' => 'Special -- T-Shirt Size Count',
'header' => 'Count', 'header' => 'Count',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'COUNT(*)', 'table' => 'COUNT(*)',
'total' => true, 'total' => true,
'group_by' => array('students.tshirt')), 'group_by' => array('students.tshirt')),

View File

@ -25,55 +25,55 @@ $report_tours_fields = array(
'tour_name' => array( 'tour_name' => array(
'name' => 'Tour -- Name', 'name' => 'Tour -- Name',
'header' => 'Tour Name', 'header' => 'Tour Name',
'width' => 3, 'width' => 76.2 /*mm*/,
'table' => 'tours.name' ), 'table' => 'tours.name' ),
'tour_num' => array( 'tour_num' => array(
'name' => 'Tour -- Number', 'name' => 'Tour -- Number',
'header' => 'Num', 'header' => 'Num',
'width' => 0.75, 'width' => 19.05 /*mm*/,
'table' => 'tours.num' ), 'table' => 'tours.num' ),
'tour_desc' => array( 'tour_desc' => array(
'name' => 'Tour -- Description', 'name' => 'Tour -- Description',
'header' => 'Tour Description', 'header' => 'Tour Description',
'width' => 3.0, 'width' => 76.2 /*mm*/,
'table' => 'tours.description'), 'table' => 'tours.description'),
'tour_capacity' => array( 'tour_capacity' => array(
'name' => 'Tour -- Capacity', 'name' => 'Tour -- Capacity',
'header' => 'Cap', 'header' => 'Cap',
'width' => 0.4, 'width' => 10.16 /*mm*/,
'table' => 'tours.capacity' ), 'table' => 'tours.capacity' ),
'tour_mingrade' => array( 'tour_mingrade' => array(
'name' => 'Tour -- Minimum Grade', 'name' => 'Tour -- Minimum Grade',
'header' => 'Min Gr.', 'header' => 'Min Gr.',
'width' => 0.4, 'width' => 10.16 /*mm*/,
'table' => 'tours.grade_min' ), 'table' => 'tours.grade_min' ),
'tour_maxgrade' => array( 'tour_maxgrade' => array(
'name' => 'Tour -- Maximum Grade', 'name' => 'Tour -- Maximum Grade',
'header' => 'Max Gr.', 'header' => 'Max Gr.',
'width' => 0.4, 'width' => 10.16 /*mm*/,
'table' => 'tours.grade_max' ), 'table' => 'tours.grade_max' ),
'tour_location' => array( 'tour_location' => array(
'name' => 'Tour -- Location', 'name' => 'Tour -- Location',
'header' => 'Tour Location', 'header' => 'Tour Location',
'width' => 2.0, 'width' => 50.8 /*mm*/,
'table' => 'tours.location'), 'table' => 'tours.location'),
'tour_contact' => array( 'tour_contact' => array(
'name' => 'Tour -- Contact', 'name' => 'Tour -- Contact',
'header' => 'Contact', 'header' => 'Contact',
'width' => 1.5, 'width' => 38.1 /*mm*/,
'table' => 'tours.contact' ), 'table' => 'tours.contact' ),
'tour_id' => array( 'tour_id' => array(
'name' => 'Tour -- Database ID', 'name' => 'Tour -- Database ID',
'header' => '#', 'header' => '#',
'width' => 0.4, 'width' => 10.16 /*mm*/,
'table' => 'tours.id' ), 'table' => 'tours.id' ),
); );

View File

@ -26,71 +26,71 @@ $report_volunteers_fields = array(
'last_name' => array( 'last_name' => array(
'name' => 'Volunteer -- Last Name', 'name' => 'Volunteer -- Last Name',
'header' => 'Last Name', 'header' => 'Last Name',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'users.lastname' ), 'table' => 'users.lastname' ),
'first_name' => array( 'first_name' => array(
'name' => 'Volunteer -- First Name', 'name' => 'Volunteer -- First Name',
'header' => 'First Name', 'header' => 'First Name',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'users.firstname' ), 'table' => 'users.firstname' ),
'name' => array( 'name' => array(
'name' => 'Volunteer -- Full Name (last, first)', 'name' => 'Volunteer -- Full Name (last, first)',
'header' => 'Name', 'header' => 'Name',
'width' => 1.75, 'width' => 44.45 /*mm*/,
'table' => "CONCAT(users.lastname, ', ', users.firstname)", 'table' => "CONCAT(users.lastname, ', ', users.firstname)",
'table_sort'=> 'users.lastname' ), 'table_sort'=> 'users.lastname' ),
'namefl' => array( 'namefl' => array(
'name' => 'Volunteer -- Full Name (first last)', 'name' => 'Volunteer -- Full Name (first last)',
'header' => 'Name', 'header' => 'Name',
'width' => 1.75, 'width' => 44.45 /*mm*/,
'table' => "CONCAT(users.firstname, ' ', users.lastname)", 'table' => "CONCAT(users.firstname, ' ', users.lastname)",
'table_sort'=> 'users.lastname' ), 'table_sort'=> 'users.lastname' ),
'email' => array( 'email' => array(
'name' => 'Volunteer -- Email', 'name' => 'Volunteer -- Email',
'header' => 'Email', 'header' => 'Email',
'width' => 1.75, 'width' => 44.45 /*mm*/,
'table' => 'users.email'), 'table' => 'users.email'),
'phone' => array( 'phone' => array(
'name' => 'Volunteer -- Phone', 'name' => 'Volunteer -- Phone',
'header' => 'Phone', 'header' => 'Phone',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'users.phonehome'), 'table' => 'users.phonehome'),
'cell' => array( 'cell' => array(
'name' => 'Volunteer -- Cell', 'name' => 'Volunteer -- Cell',
'header' => 'Cell', 'header' => 'Cell',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'users.phonecell'), 'table' => 'users.phonecell'),
'organization' => array( 'organization' => array(
'name' => 'Volunteer -- Phone', 'name' => 'Volunteer -- Phone',
'header' => 'Organziation', 'header' => 'Organziation',
'width' => 1.0, 'width' => 25.4 /*mm*/,
'table' => 'users.organization'), 'table' => 'users.organization'),
'firstaid' => array( 'firstaid' => array(
'name' => 'Volunteer -- First Aid Training', 'name' => 'Volunteer -- First Aid Training',
'header' => 'F.Aid', 'header' => 'F.Aid',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users.firstaid', 'table' => 'users.firstaid',
'value_map' =>array ('no' => 'no', 'yes' => 'YES')), 'value_map' =>array ('no' => 'no', 'yes' => 'YES')),
'cpr' => array( 'cpr' => array(
'name' => 'Volunteer -- CPR Training', 'name' => 'Volunteer -- CPR Training',
'header' => 'CPR', 'header' => 'CPR',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => 'users.cpr', 'table' => 'users.cpr',
'value_map' =>array ('no' => 'no', 'yes' => 'YES')), 'value_map' =>array ('no' => 'no', 'yes' => 'YES')),
'complete' => array( 'complete' => array(
'name' => 'Volunteer -- Registration Complete', 'name' => 'Volunteer -- Registration Complete',
'header' => 'Cmpl', 'header' => 'Cmpl',
'width' => 0.4, 'width' => 10.16 /*mm*/,
'table' => 'users_volunteer.volunteer_complete', 'table' => 'users_volunteer.volunteer_complete',
'value_map' => array ('no' => 'No', 'yes' => 'Yes'), 'value_map' => array ('no' => 'No', 'yes' => 'Yes'),
'components' => array('users_volunteer')), 'components' => array('users_volunteer')),
@ -98,26 +98,26 @@ $report_volunteers_fields = array(
'position_name' => array ( 'position_name' => array (
'name' => 'Volunteer Position -- Name', 'name' => 'Volunteer Position -- Name',
'header' => 'Position', 'header' => 'Position',
'width' => 3, 'width' => 76.2 /*mm*/,
'table' => 'volunteer_positions.name', 'table' => 'volunteer_positions.name',
'components' => array('signup')), 'components' => array('signup')),
'fair_year' => array ( 'fair_year' => array (
'name' => 'Fair -- Year', 'name' => 'Fair -- Year',
'header' => 'Year', 'header' => 'Year',
'width' => 0.5, 'width' => 12.7 /*mm*/,
'table' => "{$config['FAIRYEAR']}"), 'table' => "{$config['FAIRYEAR']}"),
'fair_name' => array ( 'fair_name' => array (
'name' => 'Fair -- Name', 'name' => 'Fair -- Name',
'header' => 'Fair Name', 'header' => 'Fair Name',
'width' => 3, 'width' => 76.2 /*mm*/,
'table' => "'".mysql_escape_string($config['fairname'])."'"), 'table' => "'".mysql_escape_string($config['fairname'])."'"),
'static_text' => array ( 'static_text' => array (
'name' => 'Static Text (useful for labels)', 'name' => 'Static Text (useful for labels)',
'header' => '', 'header' => '',
'width' => 0.1, 'width' => 2.54 /*mm*/,
'table' => "CONCAT(' ')"), 'table' => "CONCAT(' ')"),
); );