当前位置: 首页>>代码示例>>PHP>>正文


PHP CAdminForm::ActiveTabParam方法代码示例

本文整理汇总了PHP中CAdminForm::ActiveTabParam方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminForm::ActiveTabParam方法的具体用法?PHP CAdminForm::ActiveTabParam怎么用?PHP CAdminForm::ActiveTabParam使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CAdminForm的用法示例。


在下文中一共展示了CAdminForm::ActiveTabParam方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

			"USER_COMMENT"  =>$_REQUEST["USER_COMMENT"],
			"ADMIN_COMMENT"  =>$_REQUEST["ADMIN_COMMENT"],
			"PHONE" => $_REQUEST["PHONE"],
			"STATUS" => $_REQUEST["STATUS"],
			"SITE_ID" => "s1"
		);
		$result = \Softbalance\Callback\CallbackTable::add($arFields);
		$ID = $result->getId();
	}

	if($result->isSuccess())
	{
		if($_REQUEST["save"] <> '')
			LocalRedirect(BX_ROOT."/admin/softbalance_callback.php?lang=".LANGUAGE_ID);
		else
			LocalRedirect(BX_ROOT."/admin/softbalance_callback_edit.php?lang=".LANGUAGE_ID."&ID=".$ID."&".$tabControl->ActiveTabParam());
	}
	else
	{
		$message = $result->getErrorMessages();
	}
}

if (isset($_REQUEST['action']) && $_REQUEST['action'] === 'delete' && check_bitrix_sessid())
{
	\Softbalance\Callback\CallbackTable::delete($ID);
	LocalRedirect("/bitrix/admin/softbalance_callback.php?lang=".LANG);
}
// ******************************************************************** //
//                ВЫБОРКА И ПОДГОТОВКА ДАННЫХ ФОРМЫ                     //
// ******************************************************************** //
开发者ID:ASDAFF,项目名称:callback.form,代码行数:31,代码来源:edit.php

示例2: LocalRedirect

            }
        }
        //Redirect
        if (!$bVarsFromForm) {
            if (strlen($apply) <= 0) {
                if ($from == "learn_admin") {
                    LocalRedirect("/bitrix/admin/learn_unilesson_admin.php?lang=" . LANG . '&LESSON_PATH=' . $uriParentLessonPath . GetFilterParams("filter_", false) . "&from=learn_admin");
                } elseif ($from == "learn_menu") {
                    LocalRedirect("/bitrix/admin/learn_question_admin.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . GetFilterParams("filter_", false) . "&from=learn_menu");
                } elseif (strlen($return_url) > 0) {
                    LocalRedirect($return_url);
                } else {
                    LocalRedirect("/bitrix/admin/learn_question_admin.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . GetFilterParams("filter_", false));
                }
            }
            LocalRedirect("/bitrix/admin/learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . "&ID=" . $ID . "&" . $tabControl->ActiveTabParam() . GetFilterParams("filter_", false) . ($from == "learn_admin" ? "&from=learn_admin" : ""));
        }
    }
}
//Defaults
$str_SELF = "N";
$str_ACTIVE = "Y";
$str_CORRECT_REQUIRED = "N";
$str_COMMENT_TEXT = '';
$str_DIRECTION = "V";
$str_DESCRIPTION_TYPE = "text";
$str_SORT = "500";
$str_QUESTION_TYPE = "S";
$str_POINT = 10;
$str_EMAIL_ANSWER = "N";
$result = CLQuestion::GetByID($ID);
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_question_edit.php

示例3: intval

            $ID = CSaleDiscount::Add($arFields);
            $ID = intval($ID);
            if ($ID <= 0) {
                if ($ex = $APPLICATION->GetException()) {
                    $arErrorMess[] = $ex->GetString();
                } else {
                    $arErrorMess[] = GetMessage('BT_SALE_DISCOUNT_EDIT_ERR_ADD');
                }
            }
        }
    }
    if (empty($arErrorMess)) {
        if (strlen($apply) <= 0) {
            LocalRedirect("/bitrix/admin/sale_discount.php?lang=" . LANGUAGE_ID . GetFilterParams("filter_", false));
        } else {
            LocalRedirect("/bitrix/admin/sale_discount_edit.php?lang=" . LANGUAGE_ID . "&ID=" . $ID . '&' . $tabControl->ActiveTabParam());
        }
    } else {
        $bVarsFromForm = true;
    }
}
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/prolog.php";
if ($ID > 0) {
    $APPLICATION->SetTitle(str_replace('#ID#', $ID, GetMessage("BT_SALE_DISCOUNT_EDIT_MESS_UPDATE_DISCOUNT")));
} else {
    $APPLICATION->SetTitle(GetMessage("BT_SALE_DISCOUNT_EDIT_MESS_ADD_DISCOUNT"));
}
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$arDefaultValues = array('LID' => '', 'NAME' => '', 'CURRENCY' => '', 'DISCOUNT_VALUE' => '', 'DISCOUNT_TYPE' => 'P', 'ACTIVE' => 'Y', 'SORT' => '100', 'ACTIVE_FROM' => '', 'ACTIVE_TO' => '', 'PRIORITY' => 1, 'LAST_DISCOUNT' => 'Y', 'CONDITIONS' => '', 'XML_ID' => '', 'ACTIONS' => '');
if (isset($_REQUEST['LID'])) {
    $arDefaultValues['LID'] = trim($_REQUEST['LID']);
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:discount_edit.php

示例4: LocalRedirect

            }
        }
    }
    if (empty($errors)) {
        if ($subWindow) {
            ?>
<script type="text/javascript">
top.BX.closeWait(); top.BX.WindowManager.Get().AllowClose(); top.BX.WindowManager.Get().Close();
top.ReloadOffers();
</script><?php 
            die;
        } else {
            if (!empty($_POST['apply'])) {
                LocalRedirect('sale_discount_coupon_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $couponID . GetFilterParams('filter_', false));
            } else {
                LocalRedirect('sale_discount_coupons.php?lang=' . LANGUAGE_ID . '&' . $control->ActiveTabParam() . GetFilterParams('filter_', false));
            }
        }
    }
} elseif ($subWindow) {
    if (!empty($_REQUEST['dontsave'])) {
        ?>
<script type="text/javascript">top.BX.closeWait(); top.BX.WindowManager.Get().AllowClose(); top.BX.WindowManager.Get().Close();</script><?php 
        die;
    }
}
$APPLICATION->SetTitle($couponID == 0 ? !$multiCoupons ? Loc::getMessage('BX_SALE_DISCOUNT_COUPON_EDIT_TITLE_ADD') : Loc::getMessage('BX_SALE_DISCOUNT_COUPON_EDIT_TITLE_MULTI_ADD') : (!$copy ? Loc::getMessage('BX_SALE_DISCOUNT_COUPON_EDIT_TITLE_UPDATE', array('#ID#' => $couponID)) : Loc::getMessage('BX_SALE_DISCOUNT_COUPON_EDIT_TITLE_COPY', array('#ID#' => $couponID))));
require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_admin_after.php';
$contextMenuItems = array(array('ICON' => 'btn_list', 'TEXT' => Loc::getMessage('BX_SALE_DISCOUNT_COUPONT_CONTEXT_COUPON_LIST'), 'LINK' => 'sale_discount_coupons.php?lang=' . LANGUAGE_ID . GetFilterParams('filter_')));
if (!$subWindow && !$readOnly && $couponID > 0) {
    if (!$copy) {
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:discount_coupon_edit.php

示例5: array

				if(
					isset($_POST["SECTION_PROPERTY"])
					&& is_array($_POST["SECTION_PROPERTY"])
					&& array_key_exists($p["ID"], $_POST["SECTION_PROPERTY"])
					&& $_POST["SECTION_PROPERTY"][$p["ID"]]["SHOW"] === "Y"
				)
				{
					CIBlockSectionPropertyLink::Add(0, $p["ID"], array(
						"SMART_FILTER" => $_POST["SECTION_PROPERTY"][$p["ID"]]["SMART_FILTER"],
						"IBLOCK_ID" => $IBLOCK_ID,
					));
				}
			}
		}

		LocalRedirect("/bitrix/admin/cat_catalog_edit.php?lang=".LANGUAGE_ID."&IBLOCK_ID=".$IBLOCK_ID."&".$tabControl->ActiveTabParam());
	}
}

ClearVars("str_");
if($bVarsFromForm)
	$str_NAME = $_POST["NAME"];
else
	$str_NAME = $arIBlock["NAME"];

$APPLICATION->SetTitle(GetMessage("CAT_CEDIT_EDIT_TITLE", array("#IBLOCK_NAME#"=>$arIBlock["NAME"])));

require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");

if($strWarning)
	CAdminMessage::ShowOldStyleError($strWarning."<br>");
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:cat_catalog_edit.php

示例6: array

			&& check_bitrix_sessid()
		)
		{
			if (CCatalogAdminTools::changeTabs($IBLOCK_ID, $ID, $arMainCatalog))
			{
				$arUrlParams = array(
					"find_section_section" => intval($find_section_section)
				);
				if ('Y' == $WF)
					$arUrlParams['WF'] = 'Y';
				if ('' != $return_url)
					$arUrlParams['return_url'] = $return_url;
				if ($bAutocomplete)
					$arUrlParams['lookup'] = $strLookup;
				CCatalogAdminTools::addTabParams($arUrlParams);
				LocalRedirect("/bitrix/admin/".CIBlock::GetAdminElementEditLink($IBLOCK_ID, $ID, $arUrlParams, "&".$tabControl->ActiveTabParam()));
			}
		}

		if(
			$historyId <= 0
			&& 'POST' == $_SERVER['REQUEST_METHOD']
			&& strlen($Update) > 0
			&& $view != "Y"
			&& (!$error)
			&& empty($dontsave)
		)
		{
			$DB->StartTransaction();

			if(isset($_POST["IBLOCK_SECTION"]))
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:iblock_element_edit.php

示例7: htmlspecialcharsbx

            $returnPath = '&LESSON_PATH=' . htmlspecialcharsbx($_GET['PROPOSE_RETURN_LESSON_PATH']);
        } else {
            $returnPath = '&PARENT_LESSON_ID=-1';
        }
        if (!$bVarsFromForm) {
            if (strlen($apply) <= 0) {
                if (strlen($return_url) > 0) {
                    if (strpos($return_url, "#COURSE_ID#") !== false) {
                        $return_url = str_replace("#COURSE_ID#", $COURSE_ID, $return_url);
                    }
                    LocalRedirect($return_url);
                } else {
                    LocalRedirect("/bitrix/admin/learn_unilesson_admin.php?lang=" . LANG . $returnPath . GetFilterParams("filter_", false));
                }
            }
            LocalRedirect("/bitrix/admin/learn_course_edit.php?lang=" . LANG . $returnPath . "&COURSE_ID=" . $COURSE_ID . "&" . $tabControl->ActiveTabParam() . GetFilterParams("filter_", false));
        }
    }
    unset($course);
}
if ($COURSE_ID > 0) {
    $APPLICATION->SetTitle(str_replace("#ID#", $COURSE_ID, GetMessage("LEARNING_EDIT_TITLE2")));
} else {
    $APPLICATION->SetTitle(GetMessage("LEARNING_EDIT_TITLE1"));
}
//Defaults
$str_ACTIVE = "Y";
$str_SORT = "500";
$str_DETAIL_TEXT_TYPE = $str_PREVIEW_TEXT_TYPE = "text";
$res = false;
if ($COURSE_ID > 0) {
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_course_edit.php

示例8: LocalRedirect

                        $return_url = CIBlock::ReplaceDetailUrl($return_url, $arSection, true, "S");
                    }
                }
                LocalRedirect($return_url);
            } else {
                LocalRedirect("/bitrix/admin/" . CIBlock::GetAdminSectionListLink($IBLOCK_ID, array('find_section_section' => intval($find_section_section))));
            }
        } elseif (strlen($save_and_add) > 0) {
            if (defined('BX_PUBLIC_MODE') && BX_PUBLIC_MODE == 1) {
                while (ob_end_clean()) {
                }
                ?>
					<script type="text/javascript">
						top.BX.ajax.post(
							'/bitrix/admin/<?php 
                echo $l = CUtil::JSEscape(CIBlock::GetAdminSectionEditLink($IBLOCK_ID, 0, array("find_section_section" => intval($find_section_section), "return_url" => strlen($return_url) > 0 ? $return_url : null, "IBLOCK_SECTION_ID" => $IBLOCK_SECTION_ID, "from_module" => "iblock", "bxpublic" => "Y", "nobuttons" => "Y"), "&" . $tabControl->ActiveTabParam()));
                ?>
',
							{},
							function (result) {
								top.BX.closeWait();
								top.window.reloadAfterClose = true;
								top.BX.WindowManager.Get().SetContent(result);
							}
						);
					</script>';
				<?php 
                die;
            } else {
                LocalRedirect("/bitrix/admin/" . CIBlock::GetAdminSectionEditLink($IBLOCK_ID, 0, array("find_section_section" => intval($find_section_section), "IBLOCK_SECTION_ID" => $IBLOCK_SECTION_ID, "return_url" => strlen($return_url) > 0 ? $return_url : null), "&" . $tabControl->ActiveTabParam()));
            }
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:iblock_section_edit.php

示例9: array

					}
				}
			}

			if (!$bVarsFromForm)
			{
				if (strlen($apply)<=0)
				{
					if (!empty($return_url))
						LocalRedirect($return_url);
					else
						LocalRedirect("/bitrix/admin/cat_discount_admin.php?lang=".LANGUAGE_ID.GetFilterParams("filter_", false));
				}
				else
				{
					LocalRedirect("/bitrix/admin/cat_discount_edit.php?lang=".LANGUAGE_ID."&ID=".$ID.GetFilterParams("filter_", false).'&'.$tabControl->ActiveTabParam());
				}
			}
		}
	}
}

$arDefaultValues = array(
	'XML_ID' => '',
	'SITE_ID' => '',
	'NAME' => '',
	'ACTIVE' => 'Y',
	'SORT' => 100,
	'ACTIVE_FROM' => '',
	'ACTIVE_TO' => '',
	'RENEWAL' => 'N',
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:cat_discount_edit.php

示例10: array

                $params = array("WF" => $WF == "Y" ? "Y" : null, "find_section_section" => intval($find_section_section), "return_url" => strlen($return_url) > 0 ? $return_url : null);
                if ($IBLOCK_SECTION_ID > 0) {
                    $params["IBLOCK_SECTION_ID"] = intval($IBLOCK_SECTION_ID);
                } elseif (isset($arFields["IBLOCK_SECTION"]) && !empty($arFields["IBLOCK_SECTION"])) {
                    foreach ($arFields["IBLOCK_SECTION"] as $i => $id) {
                        $params["IBLOCK_SECTION_ID[" . $i . "]"] = $id;
                    }
                }
                if (defined('BX_PUBLIC_MODE') && BX_PUBLIC_MODE == 1) {
                    while (ob_end_clean()) {
                    }
                    ?>
					<script type="text/javascript">
						top.BX.ajax.get(
							'/bitrix/admin/<?php 
                    echo $l = CUtil::JSEscape(CIBlock::GetAdminElementEditLink($IBLOCK_ID, 0, array_merge($params, array("from_module" => "iblock", "bxpublic" => "Y", "nobuttons" => "Y")), "&" . $tabControl->ActiveTabParam()));
                    ?>
',
							function (result) {
								top.BX.closeWait();
								top.window.reloadAfterClose = true;
								top.BX.WindowManager.Get().SetContent(result);
							}
						);
					</script>';
					<?php 
                    die;
                } else {
                    LocalRedirect("/bitrix/admin/" . CIBlock::GetAdminElementEditLink($IBLOCK_ID, 0, $params, "&" . $tabControl->ActiveTabParam()));
                }
            } else {
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:iblock_element_edit.php

示例11: array

		elseif(strlen($save_and_add) > 0)
		{
			if (defined('BX_PUBLIC_MODE') && BX_PUBLIC_MODE == 1)
			{
				while(ob_end_clean());
				?>
					<script type="text/javascript">
						top.BX.ajax.post(
							'/bitrix/admin/<?echo $l = CUtil::JSEscape(CIBlock::GetAdminSectionEditLink($IBLOCK_ID, 0, array(
								"find_section_section" => intval($find_section_section),
								"return_url" => (strlen($return_url) > 0? $return_url: null),
								"IBLOCK_SECTION_ID" => $IBLOCK_SECTION_ID,
								"from_module" => "iblock",
								"bxpublic" => "Y",
								"nobuttons" => "Y",
							), "&".$tabControl->ActiveTabParam()))?>',
							{},
							function (result) {
								top.BX.closeWait();
								top.window.reloadAfterClose = true;
								top.BX.WindowManager.Get().SetContent(result);
							}
						);
					</script>';
				<?
				die();
			}
			else
			{
				LocalRedirect("/bitrix/admin/".CIBlock::GetAdminSectionEditLink($IBLOCK_ID, 0, array(
					"find_section_section" => intval($find_section_section),
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:iblock_section_edit.php

示例12: array

if ((strlen($save) > 0 || strlen($apply) > 0) && $REQUEST_METHOD == "POST" && check_bitrix_sessid()) {
    $data = array();
    $USER_FIELD_MANAGER->EditFormAddFields('HLBLOCK_' . $hlblock['ID'], $data);
    /** @param Bitrix\Main\Entity\AddResult $result */
    if ($is_update_form) {
        $ID = intval($_REQUEST['ID']);
        $result = $entity_data_class::update($ID, $data);
    } else {
        $result = $entity_data_class::add($data);
        $ID = $result->getId();
    }
    if ($result->isSuccess()) {
        if (strlen($save) > 0) {
            LocalRedirect("highloadblock_rows_list.php?ENTITY_ID=" . $hlblock['ID'] . "&lang=" . LANGUAGE_ID);
        } else {
            LocalRedirect("highloadblock_row_edit.php?ENTITY_ID=" . $hlblock['ID'] . "&ID=" . intval($ID) . "&lang=" . LANGUAGE_ID . "&" . $tabControl->ActiveTabParam());
        }
    } else {
        $errors = $result->getErrorMessages();
    }
}
// menu
$aMenu = array(array("TEXT" => GetMessage('HLBLOCK_ADMIN_ROWS_RETURN_TO_LIST_BUTTON'), "TITLE" => GetMessage('HLBLOCK_ADMIN_ROWS_RETURN_TO_LIST_BUTTON'), "LINK" => "highloadblock_rows_list.php?ENTITY_ID=" . $hlblock['ID'] . "&lang=" . LANGUAGE_ID, "ICON" => "btn_list"));
$context = new CAdminContextMenu($aMenu);
//view
if ($_REQUEST["mode"] == "list") {
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_js.php";
} else {
    require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
}
$context->Show();
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:highloadblock_row_edit.php

示例13: IncludeModuleLangFile

                $arMess = false;
                $res_site = CSite::GetByID($_POST["LID"]);
                if ($res_site_arr = $res_site->Fetch()) {
                    $arMess = IncludeModuleLangFile(__FILE__, $res_site_arr["LANGUAGE_ID"], true);
                }
                if ($new == "Y") {
                    CUser::SendUserInfo($ID, $_POST["LID"], $arMess !== false ? $arMess["ACCOUNT_INSERT"] : GetMessage("ACCOUNT_INSERT"), true);
                } else {
                    CUser::SendUserInfo($ID, $_POST["LID"], $arMess !== false ? $arMess["ACCOUNT_UPDATE"] : GetMessage("ACCOUNT_UPDATE"), true);
                }
            }
            if ($USER->CanDoOperation('edit_all_users') || $USER->CanDoOperation('edit_subordinate_users') || $USER->CanDoOperation('edit_own_profile') && $ID == $uid) {
                if ($_POST["save"] != '') {
                    LocalRedirect($strRedirect_admin);
                } elseif ($_POST["apply"] != '') {
                    LocalRedirect($strRedirect . "&ID=" . $ID . "&" . $tabControl->ActiveTabParam());
                } elseif (strlen($save_and_add) > 0) {
                    LocalRedirect($strRedirect . "&ID=0&" . $tabControl->ActiveTabParam());
                }
            } elseif ($new == "Y") {
                LocalRedirect($strRedirect . "&ID=" . $ID . "&" . $tabControl->ActiveTabParam());
            }
        }
    }
}
$str_GROUP_ID = array();
$user = CUser::GetByID($ID);
if (!$user->ExtractFields("str_")) {
    $ID = 0;
    $str_ACTIVE = "Y";
    $str_LID = CSite::GetDefSite();
开发者ID:ASDAFF,项目名称:bitrix-5,代码行数:31,代码来源:user_edit.php

示例14: array

        $arErrors[] = array('id' => 'RANGES', "text" => GetMessage('BT_CAT_DISC_SAVE_EDIT_ERR_RANGES_EMPTY'));
        $bVarsFromForm = true;
    }
    if (!$bVarsFromForm) {
        $arFields = array("XML_ID" => $_POST['XML_ID'], "SITE_ID" => $_POST['SITE_ID'], "NAME" => $_POST['NAME'], "ACTIVE" => $_POST['ACTIVE'] != "Y" ? "N" : "Y", "SORT" => intval($_POST['SORT']), "CURRENCY" => $_POST['CURRENCY'], "ACTIVE_FROM" => $_POST['ACTIVE_FROM'], "ACTIVE_TO" => $_POST['ACTIVE_TO'], "COUNT_SIZE" => $_POST['COUNT_SIZE'], "COUNT_TYPE" => $_POST['COUNT_TYPE'], "ACTION_SIZE" => $_POST['ACTION_SIZE'], "ACTION_TYPE" => $_POST['ACTION_TYPE'], "COUNT_FROM" => $_POST['COUNT_FROM'], "COUNT_TO" => $_POST['COUNT_TO'], "GROUP_IDS" => $_POST['GROUP_IDS'], "RANGES" => $arFormRanges);
    }
    if (!$bVarsFromForm) {
        if ($ID > 0 && !$boolCopy) {
            $mxRes = $obDiscSave->Update($ID, $arFields);
        } else {
            $ID = $obDiscSave->Add($arFields);
            $mxRes = $ID > 0;
        }
        if ($mxRes) {
            if (!empty($apply)) {
                LocalRedirect("/bitrix/admin/cat_discsave_edit.php?ID=" . $ID . "&mess=ok&lang=" . urlencode(LANGUAGE_ID) . "&" . $tabControl->ActiveTabParam());
            } else {
                LocalRedirect("/bitrix/admin/cat_discsave_admin.php?lang=" . urlencode(LANGUAGE_ID));
            }
        } else {
            $bVarsFromForm = true;
        }
    }
}
if ($bVarsFromForm && !empty($arErrors)) {
    $obError = new CAdminException($arErrors);
    $APPLICATION->ThrowException($obError);
}
ClearVars('str_');
$str_XML_ID = '';
$str_SITE_ID = '';
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:cat_discsave_edit.php

示例15: CatalogGenerateCoupon

                    $CID = CCatalogDiscountCoupon::Add(array("DISCOUNT_ID" => $ID, "ACTIVE" => "Y", "ONE_TIME" => $arCouponFields['COUPON_TYPE'], "COUPON" => CatalogGenerateCoupon(), "DATE_APPLY" => false));
                    $cRes = $CID > 0;
                    if ($cRes) {
                        $i++;
                    }
                }
            }
            if (!$bVarsFromForm) {
                if (empty($_POST['apply'])) {
                    if (!empty($returnUrl)) {
                        LocalRedirect($returnUrl);
                    } else {
                        LocalRedirect('/bitrix/admin/cat_discount_admin.php?lang=' . LANGUAGE_ID . GetFilterParams('filter_', false));
                    }
                } else {
                    LocalRedirect('/bitrix/admin/cat_discount_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $ID . GetFilterParams('filter_', false) . '&' . $tabControl->ActiveTabParam());
                }
            }
        }
    }
}
$arDefaultValues = array('XML_ID' => '', 'SITE_ID' => '', 'NAME' => '', 'ACTIVE' => 'Y', 'SORT' => 100, 'ACTIVE_FROM' => '', 'ACTIVE_TO' => '', 'RENEWAL' => 'N', 'VALUE_TYPE' => 'P', 'VALUE' => '', 'MAX_DISCOUNT' => '', 'CURRENCY' => '', 'PRIORITY' => 1, 'LAST_DISCOUNT' => 'Y', 'NOTES' => '', 'CONDITIONS' => '');
$arDefCoupons = array('COUPON_ADD' => 'N', 'COUPON_TYPE' => Catalog\DiscountCouponTable::TYPE_ONE_ROW, 'COUPON_COUNT' => '');
$arSelect = array_merge(array('ID', 'VERSION'), array_keys($arDefaultValues));
$arDiscount = $arDefaultValues;
$arDiscountGroupList = array();
$arDiscountCatList = array();
$arCoupons = $arDefCoupons;
if (0 < $ID) {
    $rsDiscounts = CCatalogDiscount::GetList(array(), array("ID" => $ID), false, false, $arSelect);
    if (!($arDiscount = $rsDiscounts->Fetch())) {
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:cat_discount_edit.php


注:本文中的CAdminForm::ActiveTabParam方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。