Пример #1
0
                }
            }
            $controller->listSE($_POST);
            break;
        case "inactivateall":
            if (!empty($_POST['ids'])) {
                foreach ($_POST['ids'] as $id) {
                    $controller->__changeStatus($id, 0);
                }
            }
            $controller->listSE($_POST);
            break;
        case "deleteall":
            if (!empty($_POST['ids'])) {
                foreach ($_POST['ids'] as $id) {
                    $controller->__deleteSearchEngine($id);
                }
            }
            $controller->listSE($_POST);
            break;
    }
} else {
    switch ($_GET['sec']) {
        case "Activate":
            $controller->__changeStatus($_GET['seId'], 1);
            $controller->listSE($_GET);
            break;
        case "Inactivate":
            $controller->__changeStatus($_GET['seId'], 0);
            $controller->listSE($_GET);
            break;