diff --git a/admin/reports.php b/admin/reports.php
index 1b4d2b3d..5bcb8a53 100644
--- a/admin/reports.php
+++ b/admin/reports.php
@@ -54,6 +54,11 @@ echo "";
echo "CSV ";
echo "
";
+ echo i18n("Project Logistical Requirements (tables, electricity)").": ";
+ echo "PDF ";
+ echo "CSV ";
+ echo "
";
+
echo i18n("Project Table Labels").": ";
echo "PDF ";
echo "
";
diff --git a/admin/reports_projects_requirements.php b/admin/reports_projects_requirements.php
new file mode 100644
index 00000000..0df8d960
--- /dev/null
+++ b/admin/reports_projects_requirements.php
@@ -0,0 +1,95 @@
+
+/*
+ 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
+ Copyright (C) 2005 James Grant
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation, version 2.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+*/
+?>
+
+ require("../common.inc.php");
+ auth_required('admin');
+ require("../lpdf.php");
+ require("../lcsv.php");
+
+ $type=$_GET['type'];
+
+ if($type=="pdf")
+ {
+
+ $rep=new lpdf( i18n($config['fairname']),
+ i18n("Project Logistical Requirements"),
+ $_SERVER['DOCUMENT_ROOT'].$config['SFIABDIRECTORY']."/data/logo-200.gif"
+ );
+
+ $rep->newPage();
+ $rep->setFontSize(11);
+ }
+ else if($type=="csv")
+ {
+ $rep=new lcsv(i18n("Project Logistical Requirements"));
+ }
+
+ $projq=mysql_query("SELECT
+ registrations.id AS reg_id,
+ registrations.num AS reg_num,
+ projects.id,
+ projects.title,
+ projects.projectnumber,
+ projects.projectdivisions_id,
+ projects.projectcategories_id,
+ projects.summary,
+ projects.req_electricity,
+ projects.req_table,
+ projects.req_special,
+ projects.language,
+ projectdivisions.division,
+ projectcategories.category
+ FROM
+ registrations
+ LEFT JOIN projectdivisions ON projectdivisions.id=projects.projectdivisions_id
+ LEFT JOIN projectcategories ON projectcategories.id=projects.projectcategories_id
+ LEFT JOIN projects on projects.registrations_id=registrations.id
+
+ WHERE
+ projects.year='".$config['FAIRYEAR']."'
+ AND projectdivisions.year='".$config['FAIRYEAR']."'
+ AND projectcategories.year='".$config['FAIRYEAR']."'
+ AND ( registrations.status='complete'
+ OR registrations.status='paymentpending' )
+ ORDER BY
+ projects.projectnumber
+ ");
+ echo mysql_error();
+
+ $totalprojects=mysql_num_rows($projq);
+ $projectcount=0;
+
+ $table=array();
+ $table['header']=array(i18n("Proj #"),i18n("Project Title"),i18n("Elec"),i18n("Table"),i18n("Special"));
+ $table['widths']=array( 0.70, 3, 0.5, .5, 1.75);
+ while($proj=mysql_fetch_object($projq))
+ {
+ $table['dataalign']=array("center","left","center","center","left");
+ $table['data'][]=array($proj->projectnumber,$proj->title,$proj->req_electricity,$proj->req_table,$proj->req_special);
+ }
+
+ $rep->addTable($table);
+ unset($table);
+ $rep->output();
+?>