* @copyright Deakin University 2007,2008 * @package queXS * @subpackage admin * @link http://www.deakin.edu.au/dcarf/ queXS was writen for DCARF - Deakin Computer Assisted Research Facility * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL) Version 2 * * */ /** * Configuration file */ include("../config.inc.php"); /** * Database file */ include ("../db.inc.php"); /** * XHTML functions */ include("../functions/functions.xhtml.php"); /** * Display functions */ include("../functions/functions.display.php"); /** * Input functions */ include("../functions/functions.input.php"); global $db; if (isset($_GET['time_zone'])) { //need to add sample to questionnaire $tz = $db->qstr($_GET['time_zone'],get_magic_quotes_gpc()); $sql = "INSERT INTO timezone_template(Time_zone_name) VALUES($tz)"; $db->Execute($sql); } if (isset($_GET['tz'])) { //need to remove rsid from questionnaire $tz = $db->qstr($_GET['tz'],get_magic_quotes_gpc()); $sql = "DELETE FROM timezone_template WHERE Time_zone_name = $tz"; $db->Execute($sql); } xhtml_head(T_("Add/Remove Timezones"),true,false,array("../js/window.js")); print "

" . T_("Click to remove a Timezone from the default list") . "

"; $sql = "SELECT Time_zone_name FROM timezone_template"; $qs = $db->GetAll($sql); foreach($qs as $q) { print "

{$q['Time_zone_name']}

"; } print "

" . T_("Add a Timezone:") . "

"; ?>

"/>