mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
addshift.php now contains a warning if timezone data not installed
shifts.css created from static code in addshift.php
This commit is contained in:
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
<style type="text/css">
|
||||
.selected {
|
||||
font-weight:bold;
|
||||
font-size:larger;
|
||||
}
|
||||
</style>
|
||||
$sql = "SELECT CONVERT_TZ(NOW(),'Australia/Victoria','UTC') as t";
|
||||
$rs = $db->GetRow($sql);
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
<?
|
||||
if (empty($rs) || !$rs || empty($rs['t']))
|
||||
print "<div class='warning'><a href='http://dev.mysql.com/doc/mysql/en/time-zone-support.html'>" . T_("Your database does not have timezones installed, please see here for details") . "</a></div>";
|
||||
|
||||
|
||||
/**
|
||||
|
||||
9
css/shifts.css
Normal file
9
css/shifts.css
Normal file
@@ -0,0 +1,9 @@
|
||||
.selected {
|
||||
font-weight:bold;
|
||||
font-size:larger;
|
||||
}
|
||||
|
||||
.warning {
|
||||
background-color:red;
|
||||
font-size:150%;
|
||||
}
|
||||
Reference in New Issue
Block a user