Exemple #1
0
         if ($actionValue == "setCountdown" || $actionValue == "clearCountdown" || $actionValue == "clearSwitchOff") {
             require_once ORVFMS_PATH . "timer_settings.php";
             timerSettings($s20Table, $actionValue);
         }
     }
     require_once ORVFMS_PATH . "main_page.php";
     displayMainPage($s20Table, $myUrl);
     require_once ORVFMS_PATH . "main_page_scripts.php";
 } else {
     if (isset($_POST['toCountDownPage'])) {
         $actionValue = $_POST['toCountDownPage'];
         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);
                     }
Exemple #2
0
                 } else {
                     if ($actionValue == "back") {
                         /* OK, nothing done */
                     }
                 }
             }
             require_once ORVFMS_PATH . "main_page.php";
             displayMainPage($s20Table, $myUrl);
             require_once ORVFMS_PATH . "main_page_scripts.php";
         }
     }
 } 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 */
                     }
                 }