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
|
|
|
|
|
2006-10-25 01:17:41 +00:00
|
|
|
Copyright (C) 2005-2006 Sci-Tech Ontario Inc <info@scitechontario.org>
|
2008-08-22 19:12:53 +00:00
|
|
|
Copyright (C) 2005-2008 James Grant <james@lightbox.org>
|
2005-01-24 18:00:03 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
?>
|
2004-11-30 19:06:35 +00:00
|
|
|
<?
|
|
|
|
require("../common.inc.php");
|
2007-11-21 17:04:35 +00:00
|
|
|
require_once("../user.inc.php");
|
2010-07-13 03:30:23 +00:00
|
|
|
user_auth_required('config');
|
2005-02-16 22:50:43 +00:00
|
|
|
|
2010-06-23 21:18:06 +00:00
|
|
|
send_header("Conference Configuration",
|
2007-11-19 00:33:38 +00:00
|
|
|
array('Committee Main' => 'committee_main.php')
|
2008-08-26 21:42:17 +00:00
|
|
|
,"configuration"
|
2007-11-19 00:33:38 +00:00
|
|
|
);
|
2004-11-30 19:06:35 +00:00
|
|
|
|
2010-07-13 03:33:58 +00:00
|
|
|
// Display a warning about changing settings if registrations have started
|
|
|
|
$dates = array("regopen");
|
|
|
|
if($conference['type']!='scienceolympics') {
|
|
|
|
$dates []= "judgeregopen";
|
|
|
|
}
|
|
|
|
$ok=true;
|
|
|
|
foreach($dates as $date) {
|
|
|
|
if($config['dates'][$date] && $config['dates'][$date]!="0000-00-00 00:00:00") {
|
|
|
|
$q=mysql_query("SELECT (NOW()<'".$config['dates'][$date]."') AS test");
|
|
|
|
$r=mysql_fetch_object($q);
|
|
|
|
$ok=$ok & $r->test;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!$ok) {
|
|
|
|
echo "<br />";
|
|
|
|
echo "<div class='error'>Warning: Registrations have begun. You should not change any configuration settings.</div>";
|
|
|
|
echo "<br />";
|
|
|
|
}
|
|
|
|
|
2010-06-03 19:21:27 +00:00
|
|
|
if($conference['type']=='scienceolympics') {
|
|
|
|
echo "<table class=\"adminconfigtable\">";
|
|
|
|
echo " <tr>";
|
2010-06-22 21:32:03 +00:00
|
|
|
echo " <td><a href=\"variables.php\">".theme_icon("configuration_variables")."<br />".i18n("Conference Configuration Variables")."</a></td>";
|
2010-06-03 19:21:27 +00:00
|
|
|
echo " <td><a href=\"dates.php\">".theme_icon("important_dates")."<br />".i18n("Important Dates")."</a></td>";
|
2010-06-04 17:12:38 +00:00
|
|
|
//echo " <td><a href=\"categories.php\">".theme_icon("project_age_categories")."<br />".i18n("Age Categories")."</a></td>";
|
2010-06-09 20:24:52 +00:00
|
|
|
echo " <td><a href=\"images.php\">".theme_icon("images")."<br />".i18n("Images (Fair Logo)")."</a></td>";
|
2010-06-03 19:21:27 +00:00
|
|
|
echo " <td></td>\n";
|
|
|
|
echo " </tr>";
|
|
|
|
echo "</table>\n";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
echo "<table class=\"adminconfigtable\">";
|
|
|
|
echo " <tr>";
|
2010-06-22 21:32:03 +00:00
|
|
|
echo " <td><a href=\"variables.php\">".theme_icon("configuration_variables")."<br />".i18n("Conference Configuration Variables")."</a></td>";
|
2010-06-03 19:21:27 +00:00
|
|
|
echo " <td><a href=\"dates.php\">".theme_icon("important_dates")."<br />".i18n("Important Dates")."</a></td>";
|
|
|
|
echo " <td><a href=\"categories.php\">".theme_icon("project_age_categories")."<br />".i18n("Project Age Categories")."</a></td>";
|
|
|
|
echo " <td><a href=\"divisions.php\">".theme_icon("project_divisions")."<br />".i18n("Project Divisions")."</a></td>";
|
|
|
|
echo " </tr>";
|
|
|
|
echo " <tr>";
|
|
|
|
echo " <td><a href=\"divisions_cwsf.php\">".theme_icon("cwsf_project_divisions")."<br />".i18n("CWSF Project Divisions")."</a></td>";
|
|
|
|
echo " <td><a href=\"subdivisions.php\">".theme_icon("project_sub_divisions")."<br />".i18n("Project Sub-Divisions")."</a></td>";
|
|
|
|
echo " <td><a href=\"pagetexts.php\">".theme_icon("page_texts")."<br />".i18n("Page Texts")."</a></td>";
|
|
|
|
echo " <td><a href=\"signaturepage.php\">".theme_icon("exhibitor_signature_page")."<br />".i18n("Exhibitor Signature Page")."</a></td>";
|
|
|
|
echo " </tr>\n";
|
|
|
|
echo " <tr>";
|
|
|
|
echo " <td><a href=\"judges_questions.php\">".theme_icon("judge_registration_questions")."<br />".i18n("Judge Registration Questions")."</a></td>";
|
|
|
|
echo " <td><a href=\"safetyquestions.php\">".theme_icon("project_safety_questions")."<br />".i18n("Project Safety Questions")."</a></td>";
|
|
|
|
echo " <td><a href=\"images.php\">".theme_icon("images")."<br />".i18n("Images (Fair Logo)")."</a></td>";
|
|
|
|
echo " <td></td>";
|
|
|
|
echo " </tr>\n";
|
|
|
|
echo "</table>\n";
|
|
|
|
}
|
2008-08-22 19:12:53 +00:00
|
|
|
|
2004-11-30 19:06:35 +00:00
|
|
|
send_footer();
|
|
|
|
?>
|