2005-01-24 18:00:03 +00:00
|
|
|
<?
|
|
|
|
/*
|
|
|
|
This file is part of the 'Science Fair In A Box' project
|
|
|
|
SFIAB Website: http://www.sfiab.ca
|
|
|
|
|
|
|
|
Copyright (C) 2005 Sci-Tech Ontario Inc <info@scitechontario.org>
|
|
|
|
Copyright (C) 2005 James Grant <james@lightbox.org>
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public
|
|
|
|
License as published by the Free Software Foundation, version 2.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; see the file COPYING. If not, write to
|
|
|
|
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
?>
|
2005-01-21 16:13:08 +00:00
|
|
|
<?
|
|
|
|
require("../common.inc.php");
|
2007-03-18 07:10:54 +00:00
|
|
|
require_once('reports.inc.php');
|
2005-02-16 22:50:43 +00:00
|
|
|
auth_required('admin');
|
2005-01-21 16:13:08 +00:00
|
|
|
send_header("Administration - Reports");
|
|
|
|
echo "<a href=\"index.php\"><< ".i18n("Back to Administration")."</a><br />";
|
|
|
|
echo "<br />";
|
2007-03-18 07:10:54 +00:00
|
|
|
|
|
|
|
$id = intval($_POST['id']);
|
|
|
|
echo "<h4>".i18n("All Reports")."</h4>";
|
2007-03-20 20:50:14 +00:00
|
|
|
echo "<form method=\"get\" name=\"reportgen\" action=\"reports_gen.php\">";
|
2007-03-18 07:10:54 +00:00
|
|
|
echo "<select name=\"id\" id=\"report\">";
|
|
|
|
echo "<option value=\"0\">".i18n("Select a Report")."</option>\n";
|
|
|
|
$reports = report_load_all();
|
|
|
|
$x=0;
|
|
|
|
foreach($reports as $r) {
|
|
|
|
$sel = ($id == $r['id']) ? 'selected=\"selected\"' : '';
|
|
|
|
echo "<option value=\"{$r['id']}\" $sel>{$r['name']}</option>\n";
|
|
|
|
}
|
2007-03-20 20:50:14 +00:00
|
|
|
echo "</select>";
|
|
|
|
echo "<select name=\"type\"><option value=\"\">Default Format</option>";
|
|
|
|
echo "<option value=\"pdf\">PDF</option>";
|
2007-10-25 19:54:10 +00:00
|
|
|
echo "<option value=\"csv\">CSV</option>";
|
|
|
|
echo "<option value=\"label\">Label</option>";
|
|
|
|
echo "</select>";
|
2007-10-20 04:04:14 +00:00
|
|
|
echo "<input type=\"text\" value=\"{$config['FAIRYEAR']}\" size=\"5\" name=\"year\" />";
|
2007-03-20 20:50:14 +00:00
|
|
|
echo "<input type=\"submit\" value=\"Generate Report\"></form>";
|
|
|
|
echo "<br />";
|
2007-03-18 07:10:54 +00:00
|
|
|
echo "<hr />";
|
|
|
|
|
|
|
|
|
|
|
|
echo "<h4>".i18n("Custom Reports")."</h4>";
|
|
|
|
|
2007-03-22 14:55:24 +00:00
|
|
|
/*
|
2007-03-18 07:10:54 +00:00
|
|
|
echo i18n("Day of Fair Registration/Checkin Forms (All Categories)").": ";
|
|
|
|
echo "<a href=\"reports_gen.php?id=9&type=pdf\">PDF</a> ";
|
|
|
|
echo "<a href=\"reports_gen.php?id=9&type=csv\">CSV</a> ";
|
2007-03-22 14:55:24 +00:00
|
|
|
*/
|
2007-03-18 07:10:54 +00:00
|
|
|
|
2005-01-21 16:13:08 +00:00
|
|
|
//lets split this up by age category,
|
2007-03-18 07:10:54 +00:00
|
|
|
/*
|
2005-01-21 16:13:08 +00:00
|
|
|
$catq=mysql_query("SELECT * FROM projectcategories WHERE year='".$config['FAIRYEAR']."' ORDER BY id");
|
|
|
|
while($catr=mysql_fetch_object($catq))
|
|
|
|
{
|
2005-02-23 14:29:28 +00:00
|
|
|
echo "<td>";
|
|
|
|
echo "<a href=\"reports_checkin.php?type=pdf&cat=$catr->id\">$catr->category (PDF)</a> ";
|
|
|
|
echo "<br>";
|
|
|
|
echo "<a href=\"reports_checkin.php?type=csv&cat=$catr->id\">$catr->category (CSV)</a> ";
|
|
|
|
echo "</td>";
|
2005-01-21 16:13:08 +00:00
|
|
|
}
|
2007-03-18 07:10:54 +00:00
|
|
|
*/
|
2006-09-11 18:05:35 +00:00
|
|
|
echo "<br />";
|
2006-10-16 15:42:29 +00:00
|
|
|
echo i18n("Mailing Labels").": ";
|
|
|
|
echo "<a href=\"reports_mailinglabels.php\">".i18n("Mailing Label Generator")."</a>";
|
2006-09-11 18:05:35 +00:00
|
|
|
|
2006-10-16 15:42:29 +00:00
|
|
|
echo "<br />";
|
2006-10-15 20:07:18 +00:00
|
|
|
echo "<br />";
|
|
|
|
echo i18n("School Access Codes").": ";
|
|
|
|
echo "<a href=\"reports_schoolaccesscodes.php?type=pdf\">PDF</a> ";
|
|
|
|
echo "<a href=\"reports_schoolaccesscodes.php?type=csv\">CSV</a> ";
|
|
|
|
|
2005-12-08 16:00:18 +00:00
|
|
|
echo "<br />";
|
|
|
|
echo i18n("Student Emergency Contact Names/Numbers").": ";
|
2007-03-18 07:10:54 +00:00
|
|
|
echo "<a href=\"reports_gen.php?id=17&type=pdf\">PDF</a> ";
|
|
|
|
echo "<a href=\"reports_gen.php?id=17&type=csv\">CSV</a> ";
|
|
|
|
// echo "<a href=\"reports_emergencycontact.php?type=pdf\">PDF</a> ";
|
|
|
|
// echo "<a href=\"reports_emergencycontact.php?type=csv\">CSV</a> ";
|
2006-03-04 05:09:05 +00:00
|
|
|
echo "<br />";
|
|
|
|
echo i18n("Students/Projects From Each School").": ";
|
2007-03-18 07:10:54 +00:00
|
|
|
echo "<a href=\"reports_gen.php?id=19&type=pdf\">PDF</a> ";
|
|
|
|
echo "<a href=\"reports_gen.php?id=19&type=csv\">CSV</a> ";
|
|
|
|
//cho "<a href=\"reports_schoolprojects.php?type=pdf\">PDF</a> ";
|
|
|
|
//cho "<a href=\"reports_schoolprojects.php?type=csv\">CSV</a> ";
|
2006-03-04 05:09:05 +00:00
|
|
|
|
2005-04-22 17:37:19 +00:00
|
|
|
echo "<br />";
|
2006-03-08 20:22:17 +00:00
|
|
|
echo i18n("Project Logistical Requirements (tables, electricity)").": ";
|
2007-03-18 07:10:54 +00:00
|
|
|
echo "<a href=\"reports_gen.php?id=16&type=pdf\">PDF</a> ";
|
|
|
|
echo "<a href=\"reports_gen.php?id=16&type=csv\">CSV</a> ";
|
|
|
|
// echo "<a href=\"reports_projects_requirements.php?type=pdf\">PDF</a> ";
|
|
|
|
// echo "<a href=\"reports_projects_requirements.php?type=csv\">CSV</a> ";
|
2006-03-08 20:22:17 +00:00
|
|
|
echo "<br />";
|
|
|
|
|
2005-04-22 14:20:29 +00:00
|
|
|
echo i18n("Project Table Labels").": ";
|
2007-03-26 06:20:43 +00:00
|
|
|
echo "<a href=\"reports_gen.php?id=30\">PDF</a> ";
|
- BAM!
- Overhauled the report generator.. It's more versatile now
- Added 'filter' option to the generator, so you can filter any column by (=,
<=, >=, <, >, IS, IS NOT, LIKE, NOT LIKE). It doesn't support AND or OR
combinations, but that should cover what we need for now. Example: We can
filter "Award Name" LIKE "%Gold%" to generate a report of just the Gold medal
projects.
- Wipe out the report database, and create it again from scratch.
update.48.sql contains an example of how to add additional reports to the
system without knowing the report_ids, because after regions start adding
their own reports, we won't be able to just wipe out the whole report system
to add one.
- We handle more reports now, specifically nametags and table labels, so remove
those files, and update the reports.php file to link the old links to the new
report generator (so people don't get too confused in this transition).
- Beginnings of moving the report generator to proper LEFT JOIN style
constructs instead of just one big massive EQUALS JOIN.
2007-03-26 06:15:41 +00:00
|
|
|
//echo "<a href=\"reports_projects_tablelabels.php?type=pdf\">PDF</a> ";
|
2005-04-22 17:37:19 +00:00
|
|
|
echo "<br />";
|
2007-02-07 22:05:59 +00:00
|
|
|
|
|
|
|
echo i18n("Project Summary Details").": ";
|
2005-12-08 18:00:30 +00:00
|
|
|
echo "<a href=\"reports_projects_details.php?type=pdf\">PDF</a> ";
|
|
|
|
echo "<br />";
|
2005-04-22 19:14:37 +00:00
|
|
|
echo i18n("Nametags").": ";
|
2007-03-26 06:20:43 +00:00
|
|
|
echo "<a href=\"reports_gen.php?id=26\">Students PDF</a> ";
|
- BAM!
- Overhauled the report generator.. It's more versatile now
- Added 'filter' option to the generator, so you can filter any column by (=,
<=, >=, <, >, IS, IS NOT, LIKE, NOT LIKE). It doesn't support AND or OR
combinations, but that should cover what we need for now. Example: We can
filter "Award Name" LIKE "%Gold%" to generate a report of just the Gold medal
projects.
- Wipe out the report database, and create it again from scratch.
update.48.sql contains an example of how to add additional reports to the
system without knowing the report_ids, because after regions start adding
their own reports, we won't be able to just wipe out the whole report system
to add one.
- We handle more reports now, specifically nametags and table labels, so remove
those files, and update the reports.php file to link the old links to the new
report generator (so people don't get too confused in this transition).
- Beginnings of moving the report generator to proper LEFT JOIN style
constructs instead of just one big massive EQUALS JOIN.
2007-03-26 06:15:41 +00:00
|
|
|
echo "<a href=\"reports_gen.php?id=26&type=csv\">Students CSV</a> ";
|
2007-03-26 06:20:43 +00:00
|
|
|
echo "<a href=\"reports_gen.php?id=27\">Judges PDF</a> ";
|
- BAM!
- Overhauled the report generator.. It's more versatile now
- Added 'filter' option to the generator, so you can filter any column by (=,
<=, >=, <, >, IS, IS NOT, LIKE, NOT LIKE). It doesn't support AND or OR
combinations, but that should cover what we need for now. Example: We can
filter "Award Name" LIKE "%Gold%" to generate a report of just the Gold medal
projects.
- Wipe out the report database, and create it again from scratch.
update.48.sql contains an example of how to add additional reports to the
system without knowing the report_ids, because after regions start adding
their own reports, we won't be able to just wipe out the whole report system
to add one.
- We handle more reports now, specifically nametags and table labels, so remove
those files, and update the reports.php file to link the old links to the new
report generator (so people don't get too confused in this transition).
- Beginnings of moving the report generator to proper LEFT JOIN style
constructs instead of just one big massive EQUALS JOIN.
2007-03-26 06:15:41 +00:00
|
|
|
echo "<a href=\"reports_gen.php?id=27&type=csv\">Judges CSV</a> ";
|
2007-03-26 06:20:43 +00:00
|
|
|
echo "<a href=\"reports_gen.php?id=28\">Committee PDF</a> ";
|
- BAM!
- Overhauled the report generator.. It's more versatile now
- Added 'filter' option to the generator, so you can filter any column by (=,
<=, >=, <, >, IS, IS NOT, LIKE, NOT LIKE). It doesn't support AND or OR
combinations, but that should cover what we need for now. Example: We can
filter "Award Name" LIKE "%Gold%" to generate a report of just the Gold medal
projects.
- Wipe out the report database, and create it again from scratch.
update.48.sql contains an example of how to add additional reports to the
system without knowing the report_ids, because after regions start adding
their own reports, we won't be able to just wipe out the whole report system
to add one.
- We handle more reports now, specifically nametags and table labels, so remove
those files, and update the reports.php file to link the old links to the new
report generator (so people don't get too confused in this transition).
- Beginnings of moving the report generator to proper LEFT JOIN style
constructs instead of just one big massive EQUALS JOIN.
2007-03-26 06:15:41 +00:00
|
|
|
echo "<a href=\"reports_gen.php?id=28&type=csv\">Committee CSV</a> ";
|
|
|
|
|
|
|
|
// echo "<a href=\"reports_nametags_students.php?type=pdf\">Students PDF</a> ";
|
|
|
|
// echo "<a href=\"reports_nametags_students.php?type=csv\">Students CSV</a> ";
|
|
|
|
// echo "<a href=\"reports_nametags_judges.php?type=pdf\">Judges PDF</a> ";
|
|
|
|
// echo "<a href=\"reports_nametags_judges.php?type=csv\">Judges CSV</a> ";
|
|
|
|
// echo "<a href=\"reports_nametags_committee.php?type=pdf\">Committee PDF</a> ";
|
|
|
|
// echo "<a href=\"reports_nametags_committee.php?type=csv\">Committee CSV</a> ";
|
2005-04-22 14:20:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
echo "<br />";
|
|
|
|
echo "<br />";
|
2005-02-23 14:55:01 +00:00
|
|
|
echo i18n("Judges List").": ";
|
|
|
|
echo "<a href=\"reports_judges.php?type=csv\">Judge List (CSV)</a> ";
|
2005-01-21 16:13:08 +00:00
|
|
|
|
2005-04-15 16:12:00 +00:00
|
|
|
echo "<br />";
|
|
|
|
echo i18n("Judging Teams").": ";
|
2007-03-19 00:13:12 +00:00
|
|
|
echo "<a href=\"reports_gen.php?id=21&type=csv\">List (CSV)</a> ";
|
|
|
|
echo "<a href=\"reports_gen.php?id=21&type=pdf\">List (PDF)</a> ";
|
|
|
|
echo "<a href=\"reports_gen.php?id=22&type=csv\">Team Awards (CSV)</a> ";
|
|
|
|
echo "<a href=\"reports_gen.php?id=22&type=pdf\">Team Awards (PDF)</a> ";
|
|
|
|
//cho "<a href=\"reports_judges_teams.php?type=csv\">List (CSV)</a> ";
|
|
|
|
//cho "<a href=\"reports_judges_teams.php?type=pdf\">List (PDF)</a> ";
|
|
|
|
// echo "<a href=\"reports_judges_teams_view.php?type=csv\">Team View (CSV)</a> ";
|
|
|
|
// echo "<a href=\"reports_judges_teams_view.php?type=pdf\">Team View (PDF)</a> ";
|
2005-04-15 16:12:00 +00:00
|
|
|
|
2005-04-21 20:29:08 +00:00
|
|
|
echo "<br />";
|
2005-04-21 22:12:35 +00:00
|
|
|
echo i18n("Judging Teams Project Assignments").": ";
|
2005-04-21 20:29:08 +00:00
|
|
|
echo "<a href=\"reports_judges_teams_projects.php?type=csv\">CSV</a> ";
|
|
|
|
echo "<a href=\"reports_judges_teams_projects.php?type=pdf\">PDF</a> ";
|
|
|
|
|
2005-04-21 22:12:35 +00:00
|
|
|
echo "<br />";
|
|
|
|
echo i18n("Projects Judging Team Assignments").": ";
|
|
|
|
echo "<a href=\"reports_projects_judges_teams.php?type=csv\">CSV</a> ";
|
|
|
|
echo "<a href=\"reports_projects_judges_teams.php?type=pdf\">PDF</a> ";
|
|
|
|
|
2007-02-07 22:05:59 +00:00
|
|
|
echo "<br />";
|
|
|
|
echo i18n("Project Identification Labels (for judging sheets)").": ";
|
2007-03-26 06:20:43 +00:00
|
|
|
echo "<a href=\"reports_gen.php?id=29\">PDF</a> ";
|
- BAM!
- Overhauled the report generator.. It's more versatile now
- Added 'filter' option to the generator, so you can filter any column by (=,
<=, >=, <, >, IS, IS NOT, LIKE, NOT LIKE). It doesn't support AND or OR
combinations, but that should cover what we need for now. Example: We can
filter "Award Name" LIKE "%Gold%" to generate a report of just the Gold medal
projects.
- Wipe out the report database, and create it again from scratch.
update.48.sql contains an example of how to add additional reports to the
system without knowing the report_ids, because after regions start adding
their own reports, we won't be able to just wipe out the whole report system
to add one.
- We handle more reports now, specifically nametags and table labels, so remove
those files, and update the reports.php file to link the old links to the new
report generator (so people don't get too confused in this transition).
- Beginnings of moving the report generator to proper LEFT JOIN style
constructs instead of just one big massive EQUALS JOIN.
2007-03-26 06:15:41 +00:00
|
|
|
// echo "<a href=\"reports_projects_judgingstickers.php?type=pdf\">PDF</a> ";
|
2007-02-07 22:05:59 +00:00
|
|
|
echo "<br />";
|
2007-03-28 22:32:57 +00:00
|
|
|
echo "<br />";
|
2007-02-07 22:05:59 +00:00
|
|
|
|
|
|
|
|
2007-03-28 22:32:57 +00:00
|
|
|
echo i18n("Awards list for Program").": ";
|
|
|
|
echo "<a href=\"reports_program_awards.php?type=csv\">CSV</a> ";
|
|
|
|
|
2007-01-09 19:05:23 +00:00
|
|
|
|
2005-05-04 21:23:00 +00:00
|
|
|
echo "<br />";
|
|
|
|
echo i18n("Award Ceremony Script").": ";
|
2007-11-15 20:25:05 +00:00
|
|
|
echo "<a href=\"reports_acscript.php?type=pdf\">FULL PDF</a> ";
|
|
|
|
echo "<a href=\"reports_acscript.php?type=pdf&awardtype=Divisional\">(Divisional)</a> ";
|
|
|
|
echo "<a href=\"reports_acscript.php?type=pdf&awardtype=Special\">(Special)</a> ";
|
|
|
|
echo "<a href=\"reports_acscript.php?type=pdf&awardtype=Interdisciplinary\">(Interdisciplinary)</a> ";
|
|
|
|
echo "<a href=\"reports_acscript.php?type=pdf&awardtype=Other\">(Other)</a> ";
|
|
|
|
echo "<a href=\"reports_acscript.php?type=pdf&awardtype=Grand\">(Grand)</a> ";
|
|
|
|
echo "<br />";
|
|
|
|
echo i18n("Award Ceremony Script").": ";
|
2005-05-04 21:23:00 +00:00
|
|
|
echo "<a href=\"reports_acscript.php?type=csv\">CSV</a> ";
|
2007-04-03 20:05:39 +00:00
|
|
|
echo "<br />";
|
|
|
|
echo "<a href=\"reports_acpresentation.php?type=csv\">Award Winners CSV</a> ";
|
|
|
|
echo "<br />";
|
2007-01-09 19:05:23 +00:00
|
|
|
|
|
|
|
if($config['tours_enable'] == 'yes') {
|
|
|
|
echo "<br />";
|
|
|
|
echo "<br />";
|
|
|
|
echo i18n("Available Tours").": ";
|
|
|
|
echo "<a href=\"reports_tours.php?type=csv\">CSV</a> ";
|
|
|
|
echo "<br />";
|
|
|
|
echo i18n("Participant Tour Choices").": ";
|
|
|
|
echo "<a href=\"reports_tour_selection.php?type=csv\">CSV</a> ";
|
|
|
|
echo "<br />";
|
|
|
|
// echo i18n("Tour Volunteers").": ";
|
|
|
|
// echo "<a href=\"reports_tour_volunteers.php?type=csv\">CSV</a> ";
|
|
|
|
// echo "<br />";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-01-21 16:13:08 +00:00
|
|
|
send_footer();
|
|
|
|
?>
|