} } else { if (isset($_POST['toCountDownPage'])) { $mac = getMacAndActionFromPost($actionValue, $_POST['toCountDownPage']); require_once ORVFMS_PATH . "timer_page.php"; displayTimerPage($mac, $s20Table, $myUrl); } else { if (isset($_POST['toDetailsPage'])) { require_once ORVFMS_PATH . "edit_process.php"; $mac = getMacAndActionFromPost($actionValue, $_POST['toDetailsPage']); if ($actionValue == "updateOrAdd") { editProcess($mac, $s20Table); } else { if (substr($actionValue, 0, 3) == "del") { $recCode = substr($actionValue, 3); delProcess($mac, $recCode, $s20Table); } else { if ($actionValue == "clock") { /* Nothing here, just display page */ } } } require_once ORVFMS_PATH . "details_page.php"; displayDetailsPage($mac, $s20Table, $myUrl); } else { if (isset($_POST['toEditPage'])) { $mac = getMacAndActionFromPost($actionValue, $_POST['toEditPage']); if (substr($actionValue, 0, 4) == "edit") { $editIndex = substr($actionValue, 4); } else { $editIndex = -1;
if (substr($actionValue, 0, 6) == "timer_") { $timerName = substr($actionValue, 6); } require_once ORVFMS_PATH . "timer_page.php"; displayTimerPage($timerName, $s20Table, $myUrl); } else { if (isset($_POST['toDetailsPage'])) { $actionValue = $_POST['toDetailsPage']; $timerName = $_POST['name']; require_once ORVFMS_PATH . "edit_process.php"; if ($actionValue == "updateOrAdd") { editProcess($timerName, $s20Table); } else { if (substr($actionValue, 0, 4) == "del_") { $recCode = substr($actionValue, 4); delProcess($timerName, $recCode, $s20Table); } else { if (substr($actionValue, 0, 6) == "clock_") { $timerName = substr($actionValue, 6); } } } require_once ORVFMS_PATH . "details_page.php"; displayDetailsPage($timerName, $s20Table, $myUrl); } else { if (isset($_POST['toEditPage'])) { $actionValue = $_POST['toEditPage']; if (substr($actionValue, 0, 4) == "edit") { $editIndex = substr($actionValue, 4); } else { $editIndex = -1;
// do not show the interface } $buttons = ""; if (isset($_REQUEST['new'])) { $new = true; } else { $new = false; } if (isset($_REQUEST['edit']) || $new) { $edit = true; } else { $edit = false; } $del = isset($_REQUEST['del']); if (isset($_REQUEST['Process'])) { if (!$del || !delProcess($_REQUEST['Process'])) { $Process = readProcess($_REQUEST['Process']); } else { $Process = false; } // delete was a succes! } else { if ($new) { $Process = new Process(); } else { $Process = false; } } if ($Process) { writeHead("<TITLE>Process - VIRO - ADL Prototype</TITLE>" . ($edit ? '<SCRIPT type="text/javascript" src="edit.js"></SCRIPT>' : '<SCRIPT type="text/javascript" src="navigate.js"></SCRIPT>') . "\n"); if ($edit) {