示例#1
0
}
if (isset($_GET["start"])) {
    $start = $_GET["start"];
} else {
    $start = 0;
}
$PluginArchiresLocationQuery = new PluginArchiresLocationQuery();
$PluginArchiresQueryType = new PluginArchiresQueryType();
if (isset($_POST["add"])) {
    $PluginArchiresLocationQuery->check(-1, 'w', $_POST);
    $PluginArchiresLocationQuery->add($_POST);
    Html::back();
} else {
    if (isset($_POST["delete"])) {
        $PluginArchiresLocationQuery->check($_POST['id'], 'w');
        $PluginArchiresLocationQuery->delete($_POST);
        Html::redirect(Toolbox::getItemTypeSearchURL('PluginArchiresLocationQuery'));
    } else {
        if (isset($_POST["restore"])) {
            $PluginArchiresLocationQuery->check($_POST['id'], 'w');
            $PluginArchiresLocationQuery->restore($_POST);
            Html::redirect(Toolbox::getItemTypeSearchURL('PluginArchiresLocationQuery'));
        } else {
            if (isset($_POST["purge"])) {
                $PluginArchiresLocationQuery->check($_POST['id'], 'w');
                $PluginArchiresLocationQuery->delete($_POST, 1);
                Html::redirect(Toolbox::getItemTypeSearchURL('PluginArchiresLocationQuery'));
            } else {
                if (isset($_POST["update"])) {
                    $PluginArchiresLocationQuery->check($_POST['id'], 'w');
                    $PluginArchiresLocationQuery->update($_POST);