2
0
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:
azammitdcarf
2008-11-13 23:58:47 +00:00
parent b231203e09
commit 26bc2b866c
2 changed files with 19 additions and 15 deletions

View File

@@ -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
View File

@@ -0,0 +1,9 @@
.selected {
font-weight:bold;
font-size:larger;
}
.warning {
background-color:red;
font-size:150%;
}