2007-11-17 21:59:59 +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>
|
|
|
|
Copyright (C) 2007 David Grant <dave@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_once("common.inc.php");
|
|
|
|
require_once("user.inc.php");
|
|
|
|
require_once("user_page.inc.php");
|
|
|
|
|
|
|
|
user_auth_required('committee');
|
|
|
|
|
|
|
|
send_header("Committee Main", array());
|
|
|
|
|
|
|
|
//only display the named greeting if we have their name
|
|
|
|
echo i18n("Hello <b>%1</b>",array($_SESSION['name']));
|
|
|
|
echo "<br />";
|
|
|
|
echo "<br />";
|
2008-08-27 17:40:32 +00:00
|
|
|
echo "<table class=\"adminconfigtable\">";
|
2010-06-03 19:21:27 +00:00
|
|
|
//need to know which conference we're managing for these
|
2010-07-13 05:20:35 +00:00
|
|
|
if(isset($_SESSION['conferences_id'])) {
|
2010-06-03 19:21:27 +00:00
|
|
|
echo " <tr>";
|
|
|
|
if(committee_auth_has_access('config')) {
|
2010-06-23 21:18:06 +00:00
|
|
|
echo " <td><a href=\"config/index.php\">".theme_icon("configuration")."<br />".i18n("Conference Configuration")."</a></td>";
|
2010-06-03 19:21:27 +00:00
|
|
|
}
|
|
|
|
if(committee_auth_has_access('admin')) {
|
2010-06-23 21:18:06 +00:00
|
|
|
echo " <td><a href=\"admin/index.php\">".theme_icon("administration")."<br />".i18n("Conference Administration")."</a></td>";
|
2010-06-03 19:21:27 +00:00
|
|
|
echo " <td><a href=\"admin/reports.php\">".theme_icon("print/export_reports")."<br />".i18n("My Reports (View/Print/Edit)")."</a></td>";
|
|
|
|
}
|
|
|
|
echo " </tr>\n";
|
2007-11-17 21:59:59 +00:00
|
|
|
}
|
2010-06-03 19:21:27 +00:00
|
|
|
//these can exist without knowing which conference
|
2008-08-27 17:40:32 +00:00
|
|
|
echo " <tr>\n";
|
|
|
|
echo " <td><a href=\"user_personal.php\">".theme_icon("edit_profile")."<br />".i18n("Edit My Profile")."</a></td>";
|
2010-07-15 09:18:06 +00:00
|
|
|
echo " <td><a href=\"user_account.php\">".theme_icon("change_password")."<br />".i18n("Change My Email, Username, and, Password")."</a></td>";
|
2009-11-06 22:10:06 +00:00
|
|
|
echo " <td><a href=\"user_activate.php\">".theme_icon("manage_roles")."<br />".i18n("Manage My Roles")."</a></td>";
|
2008-08-27 17:40:32 +00:00
|
|
|
echo " </tr>\n";
|
|
|
|
echo "</table>\n";
|
2007-11-17 21:59:59 +00:00
|
|
|
|
2010-05-27 20:41:33 +00:00
|
|
|
//this is temporary just so i can put it somewhere to be clicked on to demo tomorrow
|
|
|
|
//it wont be here for good :)
|
2010-06-03 19:21:27 +00:00
|
|
|
if(committee_auth_has_access('super')) {
|
|
|
|
echo "<br />";
|
|
|
|
echo "<br />";
|
2010-06-23 21:18:06 +00:00
|
|
|
echo " <a href=\"super/index.php\">System Setup (Superuser)</a><br />";
|
2010-06-03 19:21:27 +00:00
|
|
|
}
|
2010-05-27 20:41:33 +00:00
|
|
|
|
|
|
|
|
2007-11-17 21:59:59 +00:00
|
|
|
send_footer();
|
|
|
|
?>
|