messages::messageChangeSaved(MESSAGE_CHANGE_SAVED, false, CONF_ADMIN_FILE . '?m=manager&s=dop.pages'); } else { messages::messageChangeSaved(ERROR_NOT_SAVE_CHANGE, false, CONF_ADMIN_FILE . '?m=manager&s=dop.pages'); } } // скрытие if ('hide' === $_POST['action'] && isset($_POST['pages'])) { if ($pages->updatePages(array('token' => 'archived'), array_keys($_POST['pages']))) { messages::messageChangeSaved(MESSAGE_CHANGE_SAVED, false, CONF_ADMIN_FILE . '?m=manager&s=dop.pages'); } else { messages::messageChangeSaved(ERROR_NOT_SAVE_CHANGE, false, CONF_ADMIN_FILE . '?m=manager&s=dop.pages'); } } // удаление if ('del' === $_POST['action'] && isset($_POST['pages'])) { $pages->deletePages(array_keys($_POST['pages'])); messages::messageChangeSaved(MESSAGE_CHANGE_SAVED, false, CONF_ADMIN_FILE . '?m=manager&s=dop.pages'); } // сортировка if ('sorting' === $_POST['action'] && !empty($_POST['sort'])) { foreach ($_POST['sort'] as $key => $value) { $pages->updatePages(array('sort' => $value), array($key)); } messages::messageChangeSaved(MESSAGE_CHANGE_SAVED, false, CONF_ADMIN_FILE . '?m=manager&s=dop.pages'); } messages::messageChangeSaved(MESSAGE_WARNING_NOT_SELECT_RECORDS, false, CONF_ADMIN_FILE . '?m=manager&s=dop.pages'); } else { $arrNamePage[] = array('name' => MENU_MANAGER_DOP_PAGES, 'link' => false); /** * массив всех страниц */