* @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,array("../css/shifts.css"),array("../js/window.js")); $sql = "SELECT name as value, name as description, CASE WHEN name LIKE '" . DEFAULT_TIME_ZONE . "' THEN 'selected=\'selected\'' ELSE '' END AS selected FROM mysql.time_zone_name"; $tzl = $db->GetAll($sql); if (empty($tzl) || !$tzl) { print "
"; } print "