From 26bc2b866c19919cd6306cdab7e809418d7be529 Mon Sep 17 00:00:00 2001 From: azammitdcarf Date: Thu, 13 Nov 2008 23:58:47 +0000 Subject: [PATCH] addshift.php now contains a warning if timezone data not installed shifts.css created from static code in addshift.php --- admin/addshift.php | 25 ++++++++++--------------- css/shifts.css | 9 +++++++++ 2 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 css/shifts.css diff --git a/admin/addshift.php b/admin/addshift.php index 413c825a..28c16b76 100644 --- a/admin/addshift.php +++ b/admin/addshift.php @@ -129,23 +129,18 @@ if (isset($_POST['submit'])) } -xhtml_head(T_("Add shifts"),false,false,array("../js/window.js")); +xhtml_head(T_("Add shifts"),true,array("../css/shifts.css"),array("../js/window.js")); -?> +/** + * Display warning if timezone data not installed + * + */ - +$sql = "SELECT CONVERT_TZ(NOW(),'Australia/Victoria','UTC') as t"; +$rs = $db->GetRow($sql); - - - - - -" . T_("Your database does not have timezones installed, please see here for details") . ""; /** @@ -257,6 +252,6 @@ if ($questionnaire_id != false) diff --git a/css/shifts.css b/css/shifts.css new file mode 100644 index 00000000..1d94bb3c --- /dev/null +++ b/css/shifts.css @@ -0,0 +1,9 @@ +.selected { + font-weight:bold; + font-size:larger; +} + +.warning { + background-color:red; + font-size:150%; +}