本文整理汇总了PHP中CAdminTabControl::ActiveTabParam方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminTabControl::ActiveTabParam方法的具体用法?PHP CAdminTabControl::ActiveTabParam怎么用?PHP CAdminTabControl::ActiveTabParam使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminTabControl
的用法示例。
在下文中一共展示了CAdminTabControl::ActiveTabParam方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
while ($arPSAction = $dbPSAction->Fetch()) {
if (!CSalePaySystemAction::Delete($arPSAction["ID"])) {
if ($ex = $APPLICATION->GetException()) {
$errorMessage1 .= $ex->GetString() . ".<br>";
} else {
$errorMessage1 .= str_replace("#PLAT#", $arPersonType["NAME"], GetMessage("SPS_ERROR_DELETE")) . ".<br>";
}
}
}
}
if (strlen($errorMessage) > 0) {
$bInitVars = True;
}
if (strlen($errorMessage) <= 0) {
if (strlen($apply) > 0) {
LocalRedirect("sale_pay_system_edit.php?ID=" . $ID . "&lang=" . LANG . "&" . $tabControl->ActiveTabParam());
} else {
LocalRedirect("sale_pay_system.php?lang=" . LANG);
}
}
}
if ($ID > 0) {
$dbPaySystem = CSalePaySystem::GetList(array("SORT" => "ASC"), array("ID" => $ID));
$dbPaySystem->ExtractFields("str_");
}
if ($bInitVars) {
$DB->InitTableVarsForEdit("b_sale_pay_system", "", "str_");
}
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/prolog.php";
$APPLICATION->SetTitle($ID > 0 ? GetMessage("SALE_EDIT_RECORD", array("#ID#" => $ID)) : GetMessage("SALE_NEW_RECORD"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
示例2: array
if ($REQUEST_METHOD == "POST" && ($save != "" || $apply != "") && $STALL_ORDER_EDIT == "W" && check_bitrix_sessid()) {
// обработка данных формы
$arFields = array("DATE_CREATE" => new \Bitrix\Main\Type\DateTime(date($DATE_CREATE), 'd.m.Y H:i:s'), "FIO" => $FIO, "STATUS_ID" => $STATUS_ID, "ADDRESS" => $ADDRESS, "PHONE" => $PHONE, "COMMENT" => $COMMENT);
// сохранение данных
if ($ID > 0) {
$res = ST\OrderTable::update($ID, $arFields);
} else {
$res = ST\OrderTable::add($arFields);
$ID = $res->getId();
}
if ($res->isSuccess()) {
// если сохранение прошло удачно - перенаправим на новую страницу
// (в целях защиты от повторной отправки формы нажатием кнопки "Обновить" в браузере)
if ($apply != "") {
// если была нажата кнопка "Применить" - отправляем обратно на форму.
LocalRedirect("/bitrix/admin/anmaslov.stall_order_edit.php?ID=" . $ID . "&mess=ok&lang=" . LANG . "&" . $tabControl->ActiveTabParam());
} else {
// если была нажата кнопка "Сохранить" - отправляем к списку элементов.
LocalRedirect("/bitrix/admin/anmaslov.stall_orders.php?lang=" . LANG);
}
} else {
// если в процессе сохранения возникли ошибки - получаем текст ошибки и меняем вышеопределённые переменные
//if($e = $APPLICATION->GetException())
// $message = new CAdminMessage("Super - puper error!!", $e);
$errors = $res->getErrorMessages();
$bVarsFromForm = true;
}
}
// ******************************************************************** //
// ВЫБОРКА И ПОДГОТОВКА ДАННЫХ ФОРМЫ //
// ******************************************************************** //
示例3:
'LINK_TYPE' => Adv\LinkTable::TYPE_IBLOCK_ELEMENT,
'LINK_ID' => $elementId,
'BANNER_ID' => $result->getId()
));
}
if($ID <= 0)
{
Main\Config\Option::set('seo', 'yandex_direct_region_last_list', $bannerSettings["Geo"]);
}
$ID = $result->getId();
if($request["apply"]<>'')
{
LocalRedirect('/bitrix/admin/seo_search_yandex_direct_banner_edit.php?lang='.LANGUAGE_ID.'&ID='.$ID.'&'.$tabControl->ActiveTabParam());
}
else
{
if($back_url == '')
{
LocalRedirect("/bitrix/admin/seo_search_yandex_direct_banner.php?lang=".LANGUAGE_ID.'&campaign='.$campaign['ID']);
}
else
{
LocalRedirect($back_url);
}
}
}
else
{
示例4: array
$errors = array();
$ID = intval($request["ID"]);
$COPY_ID = intval($request["COPY_ID"]);
if ($request->isPost() && ($request["save"] != '' || $request["apply"] != '') && $isAdmin && check_bitrix_sessid()) {
$arFields = array("NAME" => $request['NAME'], "FORMAT_DATE" => $request['FORMAT_DATE'], "FORMAT_DATETIME" => $request['FORMAT_DATETIME'], "WEEK_START" => intval($request["WEEK_START"]), "FORMAT_NAME" => $request["FORMAT_NAME"], "CHARSET" => $request['CHARSET'], "DIRECTION" => $request['DIRECTION'], "CODE" => $request['CODE']);
if ($ID > 0) {
$result = CultureTable::update($ID, $arFields);
} else {
$result = CultureTable::add($arFields);
$ID = $result->getId();
}
if ($result->isSuccess()) {
if ($request["save"] != '') {
LocalRedirect(BX_ROOT . "/admin/culture_admin.php?lang=" . LANGUAGE_ID);
} else {
LocalRedirect(BX_ROOT . "/admin/culture_edit.php?lang=" . LANGUAGE_ID . "&ID=" . $ID . "&" . $tabControl->ActiveTabParam());
}
} else {
$errors = $result->getErrorMessages();
}
}
if (empty($errors)) {
$culture = false;
if ($ID > 0 || $COPY_ID > 0) {
$cultureId = $COPY_ID > 0 ? $COPY_ID : $ID;
$culture = CultureTable::getById($cultureId)->fetch();
}
if ($culture == false) {
$weekStart = Loc::getMessage('LANG_EDIT_WEEK_START_DEFAULT');
if ($weekStart == '') {
$weekStart = 1;
示例5: explode
}
$SKIP_STATISTIC_WHAT = COption::GetOptionString($module_id, "SKIP_STATISTIC_WHAT");
$arSKIP_STATISTIC_GROUPS = explode(",", COption::GetOptionString($module_id, "SKIP_STATISTIC_GROUPS"));
$SKIP_STATISTIC_IP_RANGES = COption::GetOptionString($module_id, "SKIP_STATISTIC_IP_RANGES");
if (strlen($cleanup) > 0 && $REQUEST_METHOD == "POST" && $STAT_RIGHT >= "W" && check_bitrix_sessid()) {
if (CheckFDate($cleanup_date, GetMessage("STAT_OPT_WRONG_CLEANUP_DATE"))) {
set_time_limit(0);
ignore_user_abort(true);
if (CStatistics::CleanUp($cleanup_date, $arErrors)) {
$_SESSION["STAT_strNote"] .= GetMessage("STAT_OPT_CLEAN_UP_OK") . "<br>";
} else {
$strError .= GetMessage("STAT_OPT_CLEAN_UP_ERRORS") . "<br><pre>" . mydump($arErrors) . "</pre><br>";
}
}
if ($strError == "") {
LocalRedirect($APPLICATION->GetCurPage() . "?mid=" . urlencode($mid) . "&lang=" . urlencode(LANGUAGE_ID) . "&back_url_settings=" . urlencode($_REQUEST["back_url_settings"]) . "&" . $tabControl2->ActiveTabParam());
}
}
if (strlen($runsql) > 0 && $REQUEST_METHOD == "POST" && $STAT_RIGHT >= "W" && check_bitrix_sessid()) {
set_time_limit(0);
ignore_user_abort(true);
$bDone = true;
if (count($ar = CStatistics::GetDDL()) > 0) {
foreach ($ar as $arDDL) {
if (!CStatistics::ExecuteDDL($arDDL["ID"])) {
$strError .= $arDDL["SQL_TEXT"] . ":(" . $statDB->db_Error . ")<br>";
$bDone = false;
}
}
}
if ($bDone) {
示例6: array
$isEditMode = false;
}
$SID = preg_replace("~[^A-Za-z_0-9]~", "", $SID);
$OLD_SID = preg_replace("~[^A-Za-z_0-9]~", "", $OLD_SID);
$strError = '';
if ((strlen($save) > 0 || strlen($apply) > 0) && $REQUEST_METHOD == "POST" && check_bitrix_sessid()) {
if ($ACTIVE != "Y") {
$ACTIVE = "N";
}
$arFields = array("SID" => $SID, "ACTIVE" => $ACTIVE, "SORT" => $SORT, "NAME" => $NAME, "DESCRIPTION" => $DESCRIPTION);
if ($SID = CAdvType::Set($arFields, $OLD_SID)) {
if (strlen($strError) <= 0) {
if (strlen($save) > 0) {
LocalRedirect("adv_type_list.php?lang=" . LANGUAGE_ID);
} else {
LocalRedirect("adv_type_edit.php?SID=" . $SID . "&lang=" . LANGUAGE_ID . "&" . $tabControl->ActiveTabParam());
}
}
}
$DB->PrepareFields("b_adv_type");
}
if (strlen($strError) > 0) {
$original_SID = $SID;
$SID = $OLD_SID;
}
$rsType = CAdvType::GetByID($SID);
if (!$rsType || !$rsType->ExtractFields()) {
$str_SORT = CAdvType::GetNextSort();
$str_ACTIVE = "Y";
}
if (strlen($strError) > 0) {
示例7: intval
COption::SetOptionString($module_id, "WORKFLOW_ADMIN_GROUP_ID", intval($WORKFLOW_ADMIN_GROUP_ID));
if ($_POST["DAYS_AFTER_PUBLISHING_clear"] == "Y") {
CWorkflow::CleanUpPublished();
}
if ($_POST["HISTORY_COPIES_clear"] == "Y") {
CWorkflow::CleanUpHistoryCopies();
}
if ($_POST["HISTORY_DAYS_clear"] == "Y") {
CWorkflow::CleanUpHistory();
}
}
$Update = $Update . $Apply;
ob_start();
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/admin/group_rights.php";
ob_end_clean();
LocalRedirect($APPLICATION->GetCurPage() . "?mid=" . urlencode($module_id) . "&lang=" . urlencode(LANGUAGE_ID) . "&" . $tabControl->ActiveTabParam());
}
$WORKFLOW_ADMIN_GROUP_ID = COption::GetOptionString($module_id, "WORKFLOW_ADMIN_GROUP_ID");
?>
<?php
$tabControl->Begin();
?>
<form method="POST" action="<?php
echo htmlspecialcharsbx($APPLICATION->GetCurPage() . '?mid=' . urlencode($module_id) . '&lang=' . LANGUAGE_ID);
?>
"><?php
$tabControl->BeginNextTab();
?>
<?php
foreach ($arAllOptions as $Option) {
$val = COption::GetOptionString($module_id, $Option[0], $Option[2]);
示例8: LocalRedirect
if (!$arBanner and $ID > 0) {
$rsBanner = CAdvBanner::GetByID($ID);
if ($arBanner = $rsBanner->Fetch()) {
if ($DATE_SHOW_FROM != $arBanner["DATE_SHOW_FROM"] or $DATE_SHOW_TO != $arBanner["DATE_SHOW_TO"] or $RESET_SHOW_COUNT == "Y") {
$arFields["DATE_SHOW_FIRST"] = "null";
}
}
}
}
if ($ID = CAdvBanner::Set($arFields, $ID)) {
// test if Set finished secsesfully.
if (strlen($strError) <= 0) {
if ($_POST["save"] != '') {
LocalRedirect("/bitrix/admin/adv_banner_list.php?lang=" . LANGUAGE_ID);
} else {
LocalRedirect("/bitrix/admin/adv_banner_edit.php?ID=" . $ID . "&CONTRACT_ID=" . $CONTRACT_ID . "&lang=" . LANGUAGE_ID . "&action=" . $action . "&" . $tabControl->ActiveTabParam());
}
}
}
$TEMPLATE_FILES = serialize($templateFilesErr);
$DB->PrepareFields("b_adv_banner");
}
$arrSites = array();
$rs = CSite::GetList($by = "sort", $order = "asc");
while ($ar = $rs->Fetch()) {
$arrSites[$ar["ID"]] = $ar;
}
$rsBanner = CAdvBanner::GetByID($ID);
$arrKEYWORDS = array();
if (!$rsBanner || !($banner = $rsBanner->ExtractFields())) {
if (!$isEditMode) {
示例9: LocalRedirect
}
if ($businessValueControl->setMapFromPost()) {
if ($isConsumerChange && empty($priorActionFile)) {
$businessValueControl->changeConsumerKey('PAYSYSTEM_NEW', 'PAYSYSTEM_' . $id);
}
if (!$businessValueControl->saveMap()) {
$errorMessage .= Loc::getMessage('SALE_PSE_ERROR_SET_BIZVAL_MAP');
}
} else {
$errorMessage .= Loc::getMessage('SALE_PSE_ERROR_SET_BIZVAL_MAP');
}
}
}
if ($errorMessage === '') {
if (strlen($request->get('apply')) > 0) {
LocalRedirect("sale_pay_system_edit.php?ID=" . $id . "&lang=" . $context->getLanguage() . "&" . $tabControl->ActiveTabParam());
} else {
LocalRedirect("sale_pay_system.php?lang=" . $context->getLanguage());
}
}
}
$paySystem = array();
if ($id > 0) {
$dbRes = \Bitrix\Sale\PaySystem\Manager::getList(array('filter' => array('ID' => $id), 'order' => array("SORT" => "ASC")));
$paySystem = $dbRes->fetch();
}
require_once $documentRoot . "/bitrix/modules/sale/prolog.php";
$APPLICATION->SetTitle($id > 0 ? Loc::getMessage("SALE_EDIT_RECORD", array("#ID#" => $id)) : Loc::getMessage("SALE_NEW_RECORD"));
$restrictionsHtml = '';
if ($id > 0 && $request->getRequestMethod() !== 'POST') {
ob_start();
示例10: CClusterDBNode
}
if ($REQUEST_METHOD == "POST" && check_bitrix_sessid()) {
if ($save != "" || $apply != "") {
$ob = new CClusterDBNode();
$arFields = array("ACTIVE" => $_POST["ACTIVE"], "SORT" => $_POST["SORT"], "NAME" => $_POST["NAME"], "DB_HOST" => $_POST["DB_HOST"], "DB_NAME" => $_POST["DB_NAME"], "DB_LOGIN" => $_POST["DB_LOGIN"], "DB_PASSWORD" => $_POST["DB_PASSWORD"], "DESCRIPTION" => $_POST["DESCRIPTION"]);
if ($ID > 0) {
$res = $ob->Update($ID, $arFields);
} else {
$arFields["ROLE_ID"] = "MODULE";
$arFields["STATUS"] = "READY";
$arFields["GROUP_ID"] = $group_id;
$res = $ID = $ob->Add($arFields);
}
if ($res) {
if ($apply != "") {
LocalRedirect("/bitrix/admin/cluster_dbnode_edit.php?ID=" . $ID . "&lang=" . LANGUAGE_ID . "&" . $tabControl->ActiveTabParam() . '&group_id=' . $group_id);
} else {
LocalRedirect("/bitrix/admin/cluster_dbnode_list.php?lang=" . LANGUAGE_ID . '&group_id=' . $group_id);
}
} else {
if ($e = $APPLICATION->GetException()) {
$message = new CAdminMessage(GetMessage("CLU_DBNODE_EDIT_SAVE_ERROR"), $e);
}
$bVarsFromForm = true;
}
} elseif ($delete != "" && $ID > 1) {
$ob = new CClusterDBNode();
$res = $ob->Delete($ID);
if ($res) {
LocalRedirect("/bitrix/admin/cluster_dbnode_list.php?lang=" . LANGUAGE_ID . '&group_id=' . $group_id);
} else {
示例11: LocalRedirect
} else {
$ID = $em->Add($arFields);
$res = $ID > 0;
$new = "Y";
}
if (!$res) {
$bVarsFromForm = true;
} else {
if (strlen($save) > 0) {
if (!empty($_REQUEST["type"])) {
LocalRedirect(BX_ROOT . "/admin/type_edit.php?EVENT_NAME=" . $EVENT_NAME . "&lang=" . LANGUAGE_ID);
} else {
LocalRedirect(BX_ROOT . "/admin/message_admin.php?lang=" . LANGUAGE_ID);
}
} else {
LocalRedirect(BX_ROOT . "/admin/message_edit.php?lang=" . LANGUAGE_ID . "&ID=" . $ID . "&type=" . $_REQUEST["type"] . "&" . $tabControl->ActiveTabParam());
}
}
}
$str_ACTIVE = "Y";
$str_EVENT_NAME = $EVENT_NAME;
$em = CEventMessage::GetByID($ID);
if (!$em->ExtractEditFields("str_")) {
$ID = 0;
} else {
$str_LID = array();
$db_LID = CEventMessage::GetLang($ID);
while ($ar_LID = $db_LID->Fetch()) {
$str_LID[] = $ar_LID["LID"];
}
}
示例12: elseif
$arHTMLCacheOptions["DOMAINS"][$domain] = $domain;
}
}
}
if (isset($_REQUEST["composite_siteb"]) && isset($_REQUEST["composite_on"])) {
if ($_REQUEST["composite_on"] == "N") {
$arHTMLCacheOptions["COMPOSITE"] = "N";
CHTMLPagesCache::SetEnabled(false);
} elseif ($_REQUEST["composite_on"] == "Y") {
$arHTMLCacheOptions["COMPOSITE"] = "Y";
CHTMLPagesCache::SetEnabled(true);
}
}
CHTMLPagesCache::SetOptions($arHTMLCacheOptions);
bx_accelerator_reset();
LocalRedirect("/bitrix/admin/composite.php?lang=" . LANGUAGE_ID . "&" . $tabControl->ActiveTabParam());
}
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_REQUEST["welcome_screen"]) && strlen($_REQUEST["welcome_screen"]) > 0 && check_bitrix_sessid() && $isAdmin) {
COption::SetOptionString("main", "composite_welcome_screen", "N");
LocalRedirect("/bitrix/admin/composite.php?lang=" . LANGUAGE_ID . "&" . $tabControl->ActiveTabParam());
}
$APPLICATION->SetTitle(GetMessage("MAIN_COMPOSITE_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$arHTMLCacheOptions = CHTMLPagesCache::GetOptions();
if (COption::GetOptionString("main", "composite_welcome_screen", "Y") === "Y") {
$APPLICATION->SetTitle(GetMessage("MAIN_COMPOSITE_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
<div class="comp-container">
<div class="comp-wrap">
<div class="comp-title"><?php
示例13: array
if ($newImageId) {
$DB->Update("b_vote", array("IMAGE_ID" => $newImageId), "WHERE ID=" . $newID, $err_mess . __LINE__);
}
$state = true;
$rQuestions = CVoteQuestion::GetList($oldID, $by, $order, array(), $is_filtered);
while ($arQuestion = $rQuestions->Fetch()) {
$state = $state && CVoteQuestion::Copy($arQuestion['ID'], $newID) !== false;
}
}
if (!empty($save)) {
if (!empty($_REQUEST["return_url"])) {
LocalRedirect($_REQUEST["return_url"]);
}
LocalRedirect("vote_list.php?lang=" . LANGUAGE_ID . "&CHANNEL_ID=" . $arFields["CHANNEL_ID"]);
}
LocalRedirect($APPLICATION->GetCurPage() . "?lang=" . LANGUAGE_ID . "&CHANNEL_ID=" . $arFields["CHANNEL_ID"] . "&ID=" . $ID . "&" . $tabControl->ActiveTabParam() . (!empty($_REQUEST["return_url"]) ? "&return_url=" . urlencode($_REQUEST["return_url"]) : ""));
}
}
/********************************************************************
/ACTIONS
********************************************************************/
if ($ID > 0) {
$db_res = CVote::GetByID($ID);
if ($db_res && ($res = $db_res->Fetch())) {
$arVote = $res;
$arChannel = $arChannels[$arVote["CHANNEL_ID"]];
} else {
$ID = 0;
}
}
if ($ID <= 0) {
示例14: array
}
$bVarsFromForm = true;
$bShowForce = true;
} else {
$arFields = array("RULE_TYPE" => "A", "ACTIVE" => $activate_iprule ? "Y" : ($deactivate_iprule ? "N" : $ACTIVE), "ADMIN_SECTION" => "Y", "SITE_ID" => false, "SORT" => 10, "NAME" => GetMessage("SEC_IPRULE_ADMIN_RULE_NAME"), "ACTIVE_FROM" => false, "ACTIVE_TO" => false, "INCL_IPS" => $INCL_IPS, "EXCL_IPS" => $_POST["EXCL_IPS"], "INCL_MASKS" => array("/bitrix/admin/*"), "EXCL_MASKS" => $exclMasks);
if ($ID > 0) {
$res = $ob->Update($ID, $arFields);
} else {
$ID = $ob->Add($arFields);
$res = $ID > 0;
}
if ($res) {
if ($save != "" && $_GET["return_url"] != "") {
LocalRedirect($_GET["return_url"]);
}
LocalRedirect("/bitrix/admin/security_iprule_admin.php?lang=" . LANGUAGE_ID . ($return_url ? "&return_url=" . urlencode($_GET["return_url"]) : "") . "&" . $tabControl->ActiveTabParam());
} else {
if ($e = $APPLICATION->GetException()) {
$message = new CAdminMessage(GetMessage("SEC_IPRULE_ADMIN_SAVE_ERROR"), $e);
}
$bVarsFromForm = true;
}
}
}
$messageDetails = "";
if ($ID > 0 && $ACTIVE == "Y") {
$messageType = "OK";
$messageText = GetMessage("SEC_IPRULE_ADMIN_ON");
} else {
$messageType = "ERROR";
$messageText = GetMessage("SEC_IPRULE_ADMIN_OFF");
示例15: array
}
}
if (strlen($strError) <= 0 && $ID > 0) {
$arCrmParams = array('CRM_ID' => $_REQUEST['CRM_ID'], 'LINK_TYPE' => $_REQUEST['CRM_LINK_TYPE'], 'CRM_FIELDS' => $_REQUEST['CRM_FIELD'], 'FORM_FIELDS' => $_REQUEST['CRM_FORM_FIELD']);
CFormCrm::SetForm($ID, $arCrmParams);
}
$ID = $res;
if (strlen($strError) <= 0) {
if (strlen($_REQUEST['save']) > 0) {
if (!empty($_REQUEST["back_url"])) {
LocalRedirect("/" . ltrim($_REQUEST["back_url"], "/"));
} else {
LocalRedirect("/bitrix/admin/form_list.php?lang=" . LANGUAGE_ID);
}
} else {
LocalRedirect("/bitrix/admin/form_edit.php?ID=" . $ID . "&lang=" . LANGUAGE_ID . "&" . $tabControl->ActiveTabParam() . (!empty($_REQUEST["back_url"]) ? "&back_url=" . urlencode($_REQUEST["back_url"]) : ""));
}
exit;
}
}
$DB->PrepareFields("b_form");
$str_FORM_TEMPLATE = $FORM_TEMPLATE;
}
//$rsForm = CForm::GetByID($ID);
$arForm = CForm::GetByID_admin($ID, 'form');
if (!$arForm || !extract($arForm, EXTR_PREFIX_ALL, 'str')) {
$ID = 0;
$str_STAT_EVENT1 = "form";
$str_DESCRIPTION_TYPE = "text";
$str_BUTTON = GetMessage("FORM_SAVE");
$str_C_SORT = CForm::GetNextSort();