$action = new Action_saveHeatStatus(); } else { if ($_POST['act'] == 'saveResult') { $action = new Action_saveResult(); } else { if ($_POST['act'] == 'saveSpeakerStatus') { $action = new Action_saveSpeakerStatus(); } else { if ($_POST['act'] == 'saveWind') { $action = new Action_saveWind(); } else { if ($_POST['act'] == 'saveHandStopped') { $action = new Action_saveHandStopped(); } elseif ($_GET['act'] == "deactivateFaq") { $faq = new GUI_Faq(); $faq->deactivateFaq($_GET['id']); ?> <script type="text/javascript">document.location.href='status.php'</script> <?php return; } else { $action = new Action_default(); $GLOBALS['AA_ERROR'] = "System error: Action '" . $_POST['act'] . "' not defined in controller.php"; errorExit($action); } } } } } } //
$arg = ""; if (isset($_POST['arg'])) { $arg = $_POST['arg']; } elseif (isset($_GET['arg'])) { $arg = $_GET['arg']; } $faq = new GUI_Faq(); if ($arg == "activateAll") { $faq->activateAll(); } else { if ($arg == "deactivateAll") { $faq->deactivateAll(); } elseif ($arg == "activate") { $faq->activateFaq($_POST['id']); } elseif ($arg == "deactivate") { $faq->deactivateFaq($_POST['id']); } } // // Display enrolement list // $page = new GUI_Page('admin_faq'); $page->startPage(); $page->printPageTitle($strFaq); $menu = new GUI_Menulist(); $menu->addButton('admin_faq.php?arg=activateAll', $strFaqActivateAll, '_self'); $menu->addButton('admin_faq.php?arg=deactivateAll', $strFaqDeactivateAll, '_self'); $menu->addButton($cfgURLDocumentation . 'help/administration/index.html', $strHelp, '_blank'); $menu->printMenu(); ?> <p/>