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); - - -
- - - +if (empty($rs) || !$rs || empty($rs['t'])) + print ""; /** @@ -257,6 +252,6 @@ if ($questionnaire_id != false) } - xhtml_foot(); +xhtml_foot(); ?> 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%; +}