initial rewrite of time_conditions

This commit is contained in:
Matthew Vale
2015-11-03 14:23:52 +00:00
parent 616e6c1cde
commit f53cf0ec41
2 changed files with 86 additions and 44 deletions
+4 -2
View File
@@ -44,10 +44,12 @@ require_once "resources/header.php";
$destination = new destinations;
//load available presets
foreach ($_SESSION['time_conditions']['preset'] as $json) {
$preset_region = "preset_".$_SESSION['time_conditions']['region'];
foreach ($_SESSION['time_conditions'][$preset_region] as $json) {
$available_presets[] = json_decode($json, true);
}
unset($preset_region);
//set the action as an add or an update
if (isset($_REQUEST["id"])) {
$action = "update";