$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; } $timerName = $_POST['name']; require_once ORVFMS_PATH . "edit_page.php"; displayEditPage($timerName, $editIndex, $s20Table, $myUrl); } else { echo "Unexpected error 505<p>\n"; } }
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; } require_once ORVFMS_PATH . "edit_page.php"; displayEditPage($mac, $editIndex, $s20Table, $myUrl); } else { if (isset($_POST['toSetupPage'])) { $mac = getMacAndActionFromPost($actionValue, $_POST['toSetupPage']); if ($actionValue != "setup") { echo "Unexpected error in setup (505)<p>\n";