forked from science-ation/science-ation
336ec2f75c
"label" reports.
185 lines
7.5 KiB
PHP
185 lines
7.5 KiB
PHP
<?
|
|
/*
|
|
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.
|
|
*/
|
|
?>
|
|
<?
|
|
require("../common.inc.php");
|
|
require_once('reports.inc.php');
|
|
auth_required('admin');
|
|
send_header("Administration - Reports");
|
|
echo "<a href=\"index.php\"><< ".i18n("Back to Administration")."</a><br />";
|
|
echo "<br />";
|
|
|
|
$id = intval($_POST['id']);
|
|
echo "<h4>".i18n("All Reports")."</h4>";
|
|
echo "<form method=\"get\" name=\"reportgen\" action=\"reports_gen.php\">";
|
|
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";
|
|
}
|
|
echo "</select>";
|
|
echo "<select name=\"type\"><option value=\"\">Default Format</option>";
|
|
echo "<option value=\"pdf\">PDF</option>";
|
|
echo "<option value=\"csv\">CSV</option></select>";
|
|
echo "<input type=\"submit\" value=\"Generate Report\"></form>";
|
|
echo "<br />";
|
|
echo "<hr />";
|
|
|
|
|
|
echo "<h4>".i18n("Custom Reports")."</h4>";
|
|
|
|
/*
|
|
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> ";
|
|
*/
|
|
|
|
//lets split this up by age category,
|
|
/*
|
|
$catq=mysql_query("SELECT * FROM projectcategories WHERE year='".$config['FAIRYEAR']."' ORDER BY id");
|
|
while($catr=mysql_fetch_object($catq))
|
|
{
|
|
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>";
|
|
}
|
|
*/
|
|
|
|
echo "<br />";
|
|
echo i18n("Mailing Labels").": ";
|
|
echo "<a href=\"reports_mailinglabels.php\">".i18n("Mailing Label Generator")."</a>";
|
|
|
|
echo "<br />";
|
|
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> ";
|
|
|
|
echo "<br />";
|
|
echo i18n("Student Emergency Contact Names/Numbers").": ";
|
|
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> ";
|
|
echo "<br />";
|
|
echo i18n("Students/Projects From Each School").": ";
|
|
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> ";
|
|
|
|
echo "<br />";
|
|
echo i18n("Project Logistical Requirements (tables, electricity)").": ";
|
|
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> ";
|
|
echo "<br />";
|
|
|
|
echo i18n("Project Table Labels").": ";
|
|
echo "<a href=\"reports_gen.php?id=30\">PDF</a> ";
|
|
//echo "<a href=\"reports_projects_tablelabels.php?type=pdf\">PDF</a> ";
|
|
echo "<br />";
|
|
|
|
echo i18n("Project Summary Details").": ";
|
|
echo "<a href=\"reports_projects_details.php?type=pdf\">PDF</a> ";
|
|
echo "<br />";
|
|
echo i18n("Nametags").": ";
|
|
echo "<a href=\"reports_gen.php?id=26\">Students PDF</a> ";
|
|
echo "<a href=\"reports_gen.php?id=26&type=csv\">Students CSV</a> ";
|
|
echo "<a href=\"reports_gen.php?id=27\">Judges PDF</a> ";
|
|
echo "<a href=\"reports_gen.php?id=27&type=csv\">Judges CSV</a> ";
|
|
echo "<a href=\"reports_gen.php?id=28\">Committee PDF</a> ";
|
|
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> ";
|
|
|
|
|
|
echo "<br />";
|
|
echo "<br />";
|
|
echo i18n("Judges List").": ";
|
|
echo "<a href=\"reports_judges.php?type=csv\">Judge List (CSV)</a> ";
|
|
|
|
echo "<br />";
|
|
echo i18n("Judging Teams").": ";
|
|
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> ";
|
|
|
|
echo "<br />";
|
|
echo i18n("Judging Teams Project Assignments").": ";
|
|
echo "<a href=\"reports_judges_teams_projects.php?type=csv\">CSV</a> ";
|
|
echo "<a href=\"reports_judges_teams_projects.php?type=pdf\">PDF</a> ";
|
|
|
|
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> ";
|
|
|
|
echo "<br />";
|
|
echo i18n("Project Identification Labels (for judging sheets)").": ";
|
|
echo "<a href=\"reports_gen.php?id=29\">PDF</a> ";
|
|
// echo "<a href=\"reports_projects_judgingstickers.php?type=pdf\">PDF</a> ";
|
|
echo "<br />";
|
|
|
|
|
|
|
|
echo "<br />";
|
|
echo "<br />";
|
|
echo i18n("Award Ceremony Script").": ";
|
|
echo "<a href=\"reports_acscript.php?type=pdf\">PDF</a> ";
|
|
echo "<a href=\"reports_acscript.php?type=csv\">CSV</a> ";
|
|
|
|
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 />";
|
|
}
|
|
|
|
|
|
send_footer();
|
|
?>
|