本文整理汇总了PHP中CAdminTabControl类的典型用法代码示例。如果您正苦于以下问题:PHP CAdminTabControl类的具体用法?PHP CAdminTabControl怎么用?PHP CAdminTabControl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CAdminTabControl类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: array
$aMenu[] = array("SEPARATOR" => "Y");
$aMenu[] = array("ICON" => "btn_new", "TITLE" => GetMessage("STAT_NEW_STOPLIST"), "TEXT" => GetMessage("MAIN_ADMIN_MENU_CREATE"), "LINK" => "stoplist_edit.php?lang=" . LANGUAGE_ID);
if ($STAT_RIGHT >= "W") {
$aMenu[] = array("ICON" => "btn_delete", "TITLE" => GetMessage("STAT_DELETE_STOPLIST"), "TEXT" => GetMessage("MAIN_ADMIN_MENU_DELETE"), "LINK" => "javascript:if(confirm('" . GetMessageJS("STAT_DELETE_STOPLIST_CONFIRM") . "'))window.location='stoplist_list.php?action=delete&ID=" . $ID . "&lang=" . LANGUAGE_ID . "&" . bitrix_sessid_get() . "';");
}
}
$context = new CAdminContextMenu($aMenu);
$context->Show();
if ($message) {
echo $message->Show();
}
$aTabs = array();
$aTabs[] = array("DIV" => "edit1", "TAB" => GetMessage("STAT_PARAMS"), "ICON" => "stat_stoplist", "TITLE" => GetMessage("STAT_PARAMS_S"));
$aTabs[] = array("DIV" => "edit2", "TAB" => GetMessage("STAT_ACTIONS"), "ICON" => "stat_stoplist", "TITLE" => GetMessage("STAT_WHAT_TO_DO"));
$aTabs[] = array("DIV" => "edit3", "TAB" => GetMessage("STAT_COMMENT_S"), "ICON" => "stat_stoplist", "TITLE" => GetMessage("STAT_COMMENT"));
$tabControl = new CAdminTabControl("tabControl", $aTabs);
?>
<form name="form1" method="POST" action="<?php
echo $APPLICATION->GetCurPage();
?>
?ID=<?php
echo $ID;
?>
">
<?php
echo bitrix_sessid_post();
?>
<input type="hidden" name="ID" value=<?php
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:stoplist_edit.php
示例2: array
"TAB" => Loc::getMessage("SEO_BANNER_TAB_KEYWORDS"),
"TITLE" => Loc::getMessage("SEO_BANNER_TAB_KEYWORDS_TITLE"),
),
);
if($ID > 0 && $bShowStats)
{
$aTabs[] = array(
"DIV" => "edit_stats",
"TAB" => Loc::getMessage("SEO_BANNER_TAB_STATS"),
"TITLE" => Loc::getMessage("SEO_BANNER_TAB_STATS_TITLE"),
"ONSELECT" => "showStats()"
);
}
$tabControl = new CAdminTabControl("tabControl", $aTabs);
if(!$bReadOnly && $request->isPost() && ($request["save"]<>'' || $request["apply"]<>'') && check_bitrix_sessid())
{
$bannerSettings = $request["SETTINGS"];
$phraseList = $request['Phrase'];
$phrasePriority = $request['PhrasePriority'];
if(!is_array($phraseList))
{
$phraseList = array();
$phrasePriority = array();
}
$bannerSettings['Phrases'] = array();
开发者ID:nycmic,项目名称:bittest,代码行数:31,代码来源:seo_search_yandex_direct_banner_edit.php
示例3: define
<?php
define("ADMIN_MODULE_NAME", "sender");
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
if (!\Bitrix\Main\Loader::includeModule("sender")) {
ShowError(\Bitrix\Main\Localization\Loc::getMessage("MAIN_MODULE_NOT_INSTALLED"));
}
IncludeModuleLangFile(__FILE__);
$POST_RIGHT = $APPLICATION->GetGroupRight("sender");
if ($POST_RIGHT == "D") {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("sender_mailing_edit_tab_main"), "ICON" => "main_user_edit", "TITLE" => GetMessage("sender_mailing_edit_tab_main_title")), array("DIV" => "edit2", "TAB" => GetMessage("sender_mailing_edit_tab_grp"), "ICON" => "main_user_edit", "TITLE" => GetMessage("sender_mailing_edit_tab_grp_title")));
$tabControl = new CAdminTabControl("tabControl", $aTabs);
$ID = intval($ID);
// Id of the edited record
$message = null;
$bVarsFromForm = false;
if ($REQUEST_METHOD == "POST" && ($save != "" || $apply != "") && $POST_RIGHT == "W" && check_bitrix_sessid()) {
$arError = array();
$NAME = trim($NAME);
$arFields = array("ACTIVE" => $ACTIVE != "Y" ? "N" : "Y", "TRACK_CLICK" => $TRACK_CLICK != "Y" ? "N" : "Y", "SORT" => $SORT, "IS_PUBLIC" => $IS_PUBLIC != "Y" ? "N" : "Y", "NAME" => $NAME, "DESCRIPTION" => $DESCRIPTION, "SITE_ID" => $SITE_ID);
if ($ID > 0) {
$mailingUpdateDb = \Bitrix\Sender\MailingTable::update($ID, $arFields);
$res = $mailingUpdateDb->isSuccess();
if (!$res) {
$arError = $mailingUpdateDb->getErrorMessages();
}
} else {
$mailingAddDb = \Bitrix\Sender\MailingTable::add($arFields);
if ($mailingAddDb->isSuccess()) {
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:mailing_edit.php
示例4: eval
var res = eval( '('+result+')' );
var el = BX(res);
BX(res).setAttribute('class', 'adm-btn');
if (el.bxwaiter && el.bxwaiter.parentNode)
{
el.bxwaiter.parentNode.removeChild(el.bxwaiter);
el.bxwaiter = null;
}
el.disabled = false;
}
}
</script>
<?
}
$systemTabControl = new CAdminTabControl("tabControl2", $aTabs, true, true);
$systemTabControl->Begin();
$systemTabControl->BeginNextTab();
?><tr><td align="left"><?
$arAgentInfo = false;
$rsAgents = CAgent::GetList(array(),array('MODULE_ID' => 'catalog','NAME' => 'CCatalog::PreGenerateXML("yandex");'));
if ($arAgent = $rsAgents->Fetch())
{
$arAgentInfo = $arAgent;
}
if (!is_array($arAgentInfo) || empty($arAgentInfo))
{
?><form name="agent_form" method="POST" action="<?echo $APPLICATION->GetCurPage()?>?mid=<?php
echo htmlspecialcharsbx($mid);
?>
开发者ID:ASDAFF,项目名称:1C_Bitrix_info_site,代码行数:31,代码来源:options.php
示例5: intval
}
if (!CModule::IncludeModule('iblock')) {
return;
}
$STALL_ORDER_EDIT = $APPLICATION->GetGroupRight("anamslov.stall");
if ($STALL_ORDER_EDIT == "D") {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
use Anmaslov\Stall as ST;
$sTableID = ST\OrderTable::getEntity()->getDBTableName();
// ID таблицы
//Настройки
$IBLOCK_ID = intval(COption::GetOptionString(MODULE_NAME, "iblock_id"));
// сформируем список закладок
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("STALL_ORDER_EDIT_CAPTION"), "ICON" => "main_user_edit", "TITLE" => GetMessage("STALL_ORDER_EDIT_CAPTION")));
$tabControl = new CAdminTabControl("tabControl", $aTabs);
$ID = intval($ID);
// идентификатор редактируемой записи
$bVarsFromForm = false;
// флаг "Данные получены с формы", обозначающий, что выводимые данные получены с формы, а не из БД.
$errors = 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 {
开发者ID:anmaslov,项目名称:stall,代码行数:31,代码来源:order_edit.php
示例6: array
$arSites = array();
$arSiteList = array('');
$dbSites = CSite::GetList(($b="sort"), ($o="asc"), array("ACTIVE" => "Y"));
while ($arSite = $dbSites->Fetch())
{
$arSites[] = $arSite;
$arSiteList[] = $arSite['ID'];
}
$oAuthManager = new CSocServAuthManager();
$arOptions = $oAuthManager->GetSettings();
$aTabs = array(
array("DIV" => "edit1", "TAB" => GetMessage("MAIN_TAB_SET"), "ICON" => "", "TITLE" => GetMessage("MAIN_TAB_TITLE_SET")),
);
$tabControl = new CAdminTabControl("tabControl", $aTabs);
if($_SERVER["REQUEST_METHOD"] == "POST" && $_POST["Update"].$_POST["Apply"].$_POST["RestoreDefaults"] <> '' && check_bitrix_sessid())
{
if($_POST["RestoreDefaults"] <> '')
{
COption::RemoveOption($module_id);
}
else
{
COption::SetOptionString("socialservices", "use_on_sites", serialize($_POST["use_on_sites"]));
foreach($arSiteList as $site)
{
$sendTwit = 'N';
$allowAuthorization = 'N';
开发者ID:nProfessor,项目名称:Mytb,代码行数:31,代码来源:options.php
示例7: define
define("ADMIN_MODULE_NAME", "security");
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
CModule::IncludeModule('security');
IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/security/options_user_settings_1.php");
IncludeModuleLangFile(__FILE__);
/**
* @global CUser $USER
* @global CMain $APPLICATION
**/
$canRead = $USER->CanDoOperation('security_otp_settings_read');
$canWrite = $USER->CanDoOperation('security_otp_settings_write');
if (!$canRead && !$canWrite) {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
$aTabs = array(array("DIV" => "main", "TAB" => GetMessage("SEC_OTP_NEW_MAIN_TAB"), "ICON" => "main_user_edit", "TITLE" => GetMessage("SEC_OTP_NEW_MAIN_TAB_TITLE")), array("DIV" => "params", "TAB" => GetMessage("SEC_OTP_PARAMETERS_TAB"), "ICON" => "main_user_edit", "TITLE" => GetMessage("SEC_OTP_NEW_PARAMETERS_TAB_TITLE")));
$tabControl = new CAdminTabControl("tabControl", $aTabs, true, true);
$returnUrl = $_GET["return_url"] ? "&return_url=" . urlencode($_GET["return_url"]) : "";
if ($_SERVER["REQUEST_METHOD"] == "POST" && $_REQUEST["save"] . $_REQUEST["apply"] . $_REQUEST["otp_siteb"] != "" && $canWrite && check_bitrix_sessid()) {
if ($_REQUEST["otp_siteb"] != "") {
CSecurityUser::setActive($_POST["otp_active"] === "Y");
}
$hotp_user_window = intval($_POST["window_size"]);
if ($hotp_user_window <= 0) {
$hotp_user_window = 10;
}
COption::SetOptionString("security", "hotp_user_window", $hotp_user_window);
COption::SetOptionString("security", "otp_allow_remember", $_POST["otp_allow_remember"] === "Y" ? "Y" : "N");
COption::SetOptionString("security", "otp_allow_recovery_codes", $_POST["otp_allow_recovery_codes"] === "Y" ? "Y" : "N");
if ($_POST['otp_default_type']) {
Bitrix\Security\Mfa\Otp::setDefaultType($_POST['otp_default_type']);
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:security_otp.php
示例8: ClearVars
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/advertising/include.php";
ClearVars();
$isDemo = CAdvContract::IsDemo();
$isManager = CAdvContract::IsManager();
$isAdvertiser = CAdvContract::IsAdvertiser();
$isAdmin = CAdvContract::IsAdmin();
if (!$isAdmin && !$isDemo && !$isManager && !$isAdvertiser) {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
IncludeModuleLangFile(__FILE__);
define("HELP_FILE", "adv_type_list.php");
/***************************************************************************
ќбработка GET | POST
****************************************************************************/
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("AD_TYPE"), "ICON" => "banner_type_edit", "TITLE" => GetMessage("AD_TYPE")));
$tabControl = new CAdminTabControl("tabControl", $aTabs);
$isEditMode = true;
if (!$isAdmin && !$isDemo || $action == "view") {
$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) {
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:adv_type_edit.php
示例9: array
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("IB_E_TAB2"), "ICON" => "iblock", "TITLE" => GetMessage("IB_E_TAB2_T")), array("DIV" => "edit10", "TAB" => GetMessage("IB_E_TAB10"), "ICON" => "iblock_iprops", "TITLE" => GetMessage("IB_E_TAB10_T")), array("DIV" => "edit6", "TAB" => GetMessage("IB_E_TAB6"), "ICON" => "iblock_fields", "TITLE" => GetMessage("IB_E_TAB6_T")), array("DIV" => "edit2", "TAB" => GetMessage("IB_E_TAB3"), "ICON" => "iblock_props", "TITLE" => GetMessage("IB_E_TAB3_T")), array("DIV" => "edit8", "TAB" => GetMessage("IB_E_TAB8"), "ICON" => "section_fields", "TITLE" => GetMessage("IB_E_TAB8_T")));
if ($bTab3) {
$aTabs[] = array("DIV" => "edit3", "TAB" => GetMessage("IB_E_TAB7"), "ICON" => "iblock_rss", "TITLE" => GetMessage("IB_E_TAB7_T"));
}
if ($bCatalog) {
$aTabs[] = array("DIV" => "edit9", "TAB" => GetMessage("IB_E_TAB9"), "ICON" => "iblock", "TITLE" => GetMessage("IB_E_TAB9_T"));
}
if (CIBlockRights::UserHasRightTo($ID, $ID, "iblock_rights_edit")) {
$aTabs[] = array("DIV" => "edit4", "TAB" => GetMessage("IB_E_TAB4"), "ICON" => "iblock_access", "TITLE" => GetMessage("IB_E_TAB4_T"));
}
$aTabs[] = array("DIV" => "edit5", "TAB" => GetMessage("IB_E_TAB5"), "ICON" => "iblock", "TITLE" => GetMessage("IB_E_TAB5_T"));
if ($bBizprocTab) {
$aTabs[] = array("DIV" => "edit7", "TAB" => GetMessage("IB_E_TAB7_BP"), "ICON" => "iblock", "TITLE" => GetMessage("IB_E_TAB7_BP"));
}
$aTabs[] = array("DIV" => "log", "TAB" => GetMessage("IB_E_TAB_LOG"), "ICON" => "iblock", "TITLE" => GetMessage("IB_E_TAB_LOG_TITLE"));
$tabControl = new CAdminTabControl("tabControl", $aTabs);
$tabControl->Begin();
$tabControl->BeginNextTab();
?>
<?php
if ($ID > 0) {
?>
<tr>
<td width="40%"><?php
echo GetMessage("IB_E_ID");
?>
:</td>
<td width="60%"><?php
echo $str_ID;
?>
</td>
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:iblock_edit.php
示例10: bitrix_sessid_post
<input type="hidden" name="Update" value="Y">
<input type="hidden" name="lang" value="<?php
echo LANGUAGE_ID;
?>
">
<input type="hidden" name="ID" value="<?php
echo $ID;
?>
">
<?php
echo bitrix_sessid_post();
?>
<?php
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("CEEN_TAB_DISCOUNT"), "ICON" => "catalog", "TITLE" => GetMessage("CEEN_TAB_DISCOUNT_DESCR")));
$tabControl = new CAdminTabControl("tabControl", $aTabs);
$tabControl->Begin();
$tabControl->BeginNextTab();
?>
<?php
if ($ID > 0) {
?>
<tr>
<td width="40%">ID:</td>
<td width="60%"><?php
echo $ID;
?>
</td>
</tr>
<?php
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:cat_extra_edit.php
示例11: Array
<?
$aTabs = Array();
$aTabs = array(
array("DIV" => "fedit2", "TAB" => GetMessage("MAIN_TAB_4"), "ICON" => "main_settings", "TITLE" => GetMessage("MAIN_OPTION_PUBL"))
);
if(!IsModuleInstalled("controller"))
$aTabs[] = array("DIV" => "fedit4", "TAB" => GetMessage("MAIN_OPTION_CONTROLLER_TAB"), "ICON" => "main_settings", "TITLE" => GetMessage("MAIN_OPTION_CONTROLLER_TAB_TITLE"));
$diskSpace = COption::GetOptionInt("main", "disk_space")*1024*1024;
if ($diskSpace > 0)
{
$aTabs[] = array("DIV" => "fedit3", "TAB" => GetMessage("MAIN_TAB_7"), "ICON" => "main_settings", "TITLE" => GetMessage("MAIN_OPTION_DISC_SPACE"));
}
$tabControl = new CAdminTabControl("tabControl2", $aTabs, true, true);
$tabControl->Begin();
?>
<form method="POST" action="<?echo $APPLICATION->GetCurPage()?>?mid=<?php
echo htmlspecialcharsbx($mid);
?>
&lang=<?echo LANG?>">
<?php
echo freetrix_sessid_post();
?>
<input type="hidden" name="tabControl2_active_tab" value="fedit2">
<?$tabControl->BeginNextTab();?>
<tr>
<td colspan="2" align="left">
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:options.php
示例12: urlencode
<?php
$tabControl->End();
} else {
$blank = CBlanks::getBlank($_GET["slug"]);
if (!empty($blank)) {
?>
<form method="POST" action="pbrf_templates.php?lang=<?php
echo LANGUAGE_ID;
echo $_GET["return_url"] ? "&return_url=" . urlencode($_GET["return_url"]) : "";
echo $_GET["slug"] ? "&slug=" . urlencode($_GET["slug"]) : "";
?>
" enctype="multipart/form-data" name="editform">
<?php
$aTabs = array(array("DIV" => $blank["slug"], "TAB" => $blank["name"], "ICON" => "main_user_edit", "TITLE" => $blank["name"]));
$tabControl = new CAdminTabControl("tabControl", $aTabs, true, true);
$tabControl->Begin();
$tabControl->BeginNextTab();
$data = array();
if ($_SERVER["REQUEST_METHOD"] == "POST" && (isset($_POST["save"]) || isset($_POST["apply"]))) {
CPBRFTemplates::setTemplates($_GET["slug"], $_POST);
$data = $_POST;
} else {
$data = CPBRFTemplates::getTemplates($_GET["slug"]);
}
$test = iconv("windows-1251", "utf-8", "Печаль");
$test2 = iconv("utf-8", "windows-1251", $test);
//подключаем шаблон нужного бланка
$GLOBALS["blank"] = $data;
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/pbrf/blanks/" . $_GET["slug"] . ".php";
?>
开发者ID:ASDAFF,项目名称:bitrix-pbrf,代码行数:30,代码来源:pbrf_templates.php
示例13: htmlspecialcharsex
<input type="hidden" name="save" value="Y">
<input type="hidden" name="back_url" value="<?php
echo htmlspecialcharsex($back_url);
?>
">
<?php
if (!$bEdit) {
?>
<input type="hidden" name="new" value="Y"><?php
}
echo bitrix_sessid_post();
?>
<?php
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("FILEMAN_TAB1"), "ICON" => "fileman", "TITLE" => GetMessage("FILEMAN_TAB1_ALT")));
$tabControl = new CAdminTabControl("tabControl", $aTabs);
$tabControl->Begin();
?>
<?php
$tabControl->BeginNextTab();
?>
<?php
if ($bEdit && strlen($strWarning) <= 0) {
$res = CFileMan::GetMenuArray($abs_path);
$aMenuLinksTmp = $res["aMenuLinks"];
$sMenuTemplateTmp = $res["sMenuTemplate"];
}
if (!is_array($aMenuLinksTmp)) {
$aMenuLinksTmp = array();
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:fileman_menu_edit.php
示例14: GetMessage
}
}
}
}
} else {
$sErrorHTML = GetMessage('CATALOG_ERROR');
}
break;
}
$aTabs = array();
if (!empty($aCatalog['CATALOG'])) {
foreach ($aCatalog['CATALOG'] as $sKey => $aSection) {
$aTabs[] = array('DIV' => $sKey, 'TAB' => $aSection['NAME'], 'ICON' => 'main_channel_edit', 'TITLE' => $aSection['NAME']);
}
}
$tabControl = new CAdminTabControl("tabControl", $aTabs, false);
$aTables = array();
foreach ($aTabs as $aTab) {
$sTableID = "tbl_bitrixGems_" . $aTab['DIV'];
$oSort = new CAdminSorting($sTableID, "LIKES", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);
$lAdmin->InitFilter(array('filter_by_gem'));
$headers = array(array("id" => "PICTURE", "content" => GetMessage('TH_PICTURE'), "default" => true), array("id" => "NAME", "content" => GetMessage('TH_NAME'), "sort" => "s_NAME", "default" => true), array("id" => "TYPE", "content" => GetMessage('TH_TYPE'), "sort" => "s_TYPE", "default" => true), array("id" => "DESCRIPTION", "content" => GetMessage('TH_DESCRIPTION'), "sort" => "s_DESCRIPTION", "default" => true), array("id" => "REQUIREMENTS", "content" => GetMessage('TH_REQUIREMENTS'), "sort" => "s_REQUIREMENTS", "default" => true), array("id" => "AUTHOR", "content" => GetMessage('TH_AUTHOR'), "sort" => "s_AUTHOR", "default" => true), array("id" => "LIKES", "content" => GetMessage('TH_LIKES'), "sort" => "s_LIKES", "default" => true), array("id" => "DOWNLOADS", "content" => GetMessage('TH_DOWNLOADS'), "sort" => "s_DOWNLOADS", "default" => true));
$lAdmin->AddHeaders($headers);
$rsData = new CDBResult();
/**
* ������. �� ������� ������� ���� �����. ���� ����� �������� ������ ��������. �� �� ��� �������.
*/
$aFilteredCat = array();
if ($filter_by_gem) {
foreach ($aCatalog['CATALOG'][$aTab['DIV']]['ITEMS'] as $aGem) {
开发者ID:ASDAFF,项目名称:BitrixGems,代码行数:31,代码来源:bitrixgems_manager.php
示例15: dirname
* @global CUser $USER
* @global CMain $APPLICATION
*/
require_once dirname(__FILE__) . "/../include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/prolog.php";
define("HELP_FILE", "settings/culture_edit.php");
if (!$USER->CanDoOperation('edit_other_settings') && !$USER->CanDoOperation('view_other_settings')) {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
$isAdmin = $USER->CanDoOperation('edit_other_settings');
use Bitrix\Main;
use Bitrix\Main\Localization\CultureTable;
use Bitrix\Main\Localization\Loc;
Loc::loadMessages(__FILE__);
$aTabs = array(array("DIV" => "edit1", "TAB" => Loc::getMessage("MAIN_PARAM"), "ICON" => "lang_edit", "TITLE" => Loc::getMessage("MAIN_PARAM_TITLE")));
$tabControl = new CAdminTabControl("tabControl", $aTabs);
/** @var $request Main\HttpRequest */
$request = Main\Context::getCurrent()->getRequest();
$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"] != '') {
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:culture_edit.php
示例16: ClearVars
ClearVars();
if (!$USER->CanDoOperation('view_tasks')) {
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
IncludeModuleLangFile(__FILE__);
/***************************************************************************
Handling GET | POST
****************************************************************************/
$ID = intval($_REQUEST["ID"]);
$COPY_ID = intval($_REQUEST["COPY_ID"]);
if ($COPY_ID > 0) {
$ID = $COPY_ID;
}
$message = null;
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("TAB_1"), "ICON" => "", "TITLE" => GetMessage("TAB_1_TITLE")), array("DIV" => "edit2", "TAB" => GetMessage("TAB_2"), "ICON" => "", "TITLE" => GetMessage('TAB_2_TITLE')));
$tabControl = new CAdminTabControl("tabControl", $aTabs);
if ($_SERVER["REQUEST_METHOD"] == "POST" && ($_POST["save"] != '' || $_POST["apply"] != '') && $USER->CanDoOperation('edit_tasks') && check_bitrix_sessid()) {
$aMsg = array();
$LETTER = strtoupper($_POST["LETTER"]);
$arFields = array("NAME" => $_POST["NAME"], "DESCRIPTION" => $_POST["DESCRIPTION"], "LETTER" => $LETTER, "BINDING" => $_POST["BINDING"], "MODULE_ID" => $_POST["MODULE_ID"]);
if ($ID > 0 && $COPY_ID <= 0) {
CTask::UpdateModuleRights($ID, $_POST["MODULE_ID"], $LETTER);
CTask::Update($arFields, $ID);
} else {
$ID = CTask::Add($arFields);
}
/** @var CAdminException $e */
if ($e = $APPLICATION->GetException()) {
$aMsg = $e->messages;
}
if (empty($aMsg)) {
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:task_edit.php
示例17: defined
defined('B_PROLOG_INCLUDED') and B_PROLOG_INCLUDED === true or die;
defined('ADMIN_MODULE_NAME') or define('ADMIN_MODULE_NAME', 'bex.d7dull');
use Bitrix\Main\Application;
use Bitrix\Main\Config\Option;
use Bitrix\Main\Localization\Loc;
use Bitrix\Main\Text\String;
if (!$USER->isAdmin()) {
$APPLICATION->authForm('Nope');
}
$app = Application::getInstance();
$context = $app->getContext();
$request = $context->getRequest();
Loc::loadMessages($context->getServer()->getDocumentRoot() . "/bitrix/modules/main/options.php");
Loc::loadMessages(__FILE__);
$tabControl = new CAdminTabControl("tabControl", array(array("DIV" => "edit1", "TAB" => Loc::getMessage("MAIN_TAB_SET"), "TITLE" => Loc::getMessage("MAIN_TAB_TITLE_SET"))));
if ((!empty($save) || !empty($restore)) && $request->isPost() && check_bitrix_sessid()) {
if (!empty($restore)) {
Option::delete(ADMIN_MODULE_NAME);
CAdminMessage::showMessage(array("MESSAGE" => Loc::getMessage("REFERENCES_OPTIONS_RESTORED"), "TYPE" => "OK"));
} elseif ($request->getPost('max_image_size') && $request->getPost('max_image_size') > 0 && $request->getPost('max_image_size') < 100000) {
Option::set(ADMIN_MODULE_NAME, "max_image_size", $request->getPost('max_image_size'));
CAdminMessage::showMessage(array("MESSAGE" => Loc::getMessage("REFERENCES_OPTIONS_SAVED"), "TYPE" => "OK"));
} else {
CAdminMessage::showMessage(Loc::getMessage("REFERENCES_INVALID_VALUE"));
}
}
$tabControl->begin();
?>
<form method="post" action="<?php
开发者ID:romzes5000,项目名称:bex.d7dull,代码行数:30,代码来源:options.php
示例18: bitrix_sessid_post
<input type="hidden" name="Update" value="Y">
<input type="hidden" name="lang" value="<?php
echo LANG;
?>
">
<input type="hidden" name="ID" value="<?php
echo $ID;
?>
">
<?php
echo bitrix_sessid_post();
?>
<?php
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("CVAT_TAB"), "ICON" => "catalog", "TITLE" => GetMessage("CVAT_TAB_DESCR")));
$tabControl = new CAdminTabControl("tabControl", $aTabs);
$tabControl->Begin();
?>
<?php
$tabControl->BeginNextTab();
?>
<?php
if ($ID > 0) {
?>
<tr>
<td width="40%">ID:</td>
<td width="60%"><?php
echo $ID;
?>
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:cat_vat_edit.php
示例19: array
$statDB = CDatabase::GetModuleConnection('statistic');
$err_mess = "FILE: " . __FILE__ . "<br>\nLINE: ";
$module_id = "statistic";
$STAT_RIGHT = $APPLICATION->GetGroupRight($module_id);
$strError = "";
if ($STAT_RIGHT >= "R") {
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("MAIN_TAB_SET"), "ICON" => "statistic_settings", "TITLE" => GetMessage("MAIN_TAB_TITLE_SET")), array("DIV" => "edit6", "TAB" => GetMessage("STAT_OPT_TAB_ADV"), "ICON" => "statistic_settings", "TITLE" => GetMessage("STAT_OPT_TAB_ADV_TITLE")), array("DIV" => "edit7", "TAB" => GetMessage("STAT_OPT_TAB_CITY"), "ICON" => "statistic_settings", "TITLE" => GetMessage("STAT_OPT_TAB_CITY_TITLE")), array("DIV" => "edit2", "TAB" => GetMessage("STAT_OPT_TAB_STORAGE"), "ICON" => "statistic_settings", "TITLE" => GetMessage("STAT_OPT_TAB_STORAGE_TITLE")), array("DIV" => "edit3", "TAB" => GetMessage("STAT_OPT_TAB_TIME"), "ICON" => "statistic_settings", "TITLE" => GetMessage("STAT_OPT_TAB_TIME_TITLE")), array("DIV" => "edit4", "TAB" => GetMessage("STAT_OPT_TAB_SKIP"), "ICON" => "statistic_settings", "TITLE" => GetMessage("STAT_OPT_TAB_SKIP_TITLE")), array("DIV" => "edit5", "TAB" => GetMessage("MAIN_TAB_RIGHTS"), "ICON" => "statistic_settings", "TITLE" => GetMessage("MAIN_TAB_TITLE_RIGHTS")));
$tabControl = new CAdminTabControl("tabControl", $aTabs);
$aTabs = array(array("DIV" => "fedit2", "TAB" => GetMessage("STAT_OPT_TAB_CLEANUP"), "ICON" => "statistic_settings", "TITLE" => GetMessage("STAT_OPT_TAB_CLEANUP_TITLE")));
if (strtolower($statDB->type) == "mysql") {
$aTabs[] = array("DIV" => "fedit3", "TAB" => GetMessage("STAT_OPT_TAB_OPTIMIZE"), "ICON" => "statistic_settings", "TITLE" => GetMessage("STAT_OPT_TAB_OPTIMIZE_TITLE"));
}
if ($STAT_RIGHT >= "W" && ($bCheckForDDL = CStatistics::CheckForDDL())) {
$aTabs[] = array("DIV" => "fedit4", "TAB" => GetMessage("STAT_OPT_TAB_INDEX"), "ICON" => "statistic_settings", "TITLE" => GetMessage("STAT_OPT_TAB_INDEX_TITLE"));
}
$tabControl2 = new CAdminTabControl("tabControl2", $aTabs, true, true);
if ($REQUEST_METHOD == "POST" && $STAT_RIGHT == "W" && strlen($RestoreDefaults) > 0 && check_bitrix_sessid()) {
COption::RemoveOption($module_id);
$z = CGroup::GetList($v1 = "id", $v2 = "asc", array("ACTIVE" => "Y", "ADMIN" => "N"));
while ($zr = $z->Fetch()) {
$APPLICATION->DelGroupRight($module_id, array($zr["ID"]));
}
LocalRedirect($APPLICATION->GetCurPage() . "?mid=" . urlencode($mid) . "&lang=" . urlencode(LANGUAGE_ID) . "&back_url_settings=" . urlencode($_REQUEST["back_url_settings"]) . "&" . $tabControl->ActiveTabParam());
}
$cookie_name = COption::GetOptionString("main", "cookie_name", "BITRIX_SM");
$arOPTIONS = array("TAB1" => array("ONLINE_INTERVAL" => array("ONLINE_INTERVAL", GetMessage("STAT_OPT_ONLINE_INTERVAL"), array("text", 5)), "RECORDS_LIMIT" => array("RECORDS_LIMIT", GetMessage("STAT_OPT_RECORDS_LIMIT"), array("text", 5)), "GRAPH_WEIGHT" => array("GRAPH_WEIGHT", GetMessage("STAT_OPT_GRAPH_WEIGHT"), array("text", 5)), "GRAPH_HEIGHT" => array("GRAPH_HEIGHT", GetMessage("STAT_OPT_GRAPH_HEIGHT"), array("text", 5)), "DIAGRAM_DIAMETER" => array("DIAGRAM_DIAMETER", GetMessage("STAT_OPT_DIAGRAM_DIAMETER"), array("text", 5)), "STAT_LIST_TOP_SIZE" => array("STAT_LIST_TOP_SIZE", GetMessage("STAT_OPT_STAT_LIST_TOP_SIZE"), array("text", 5)), "ADV_DETAIL_TOP_SIZE" => array("ADV_DETAIL_TOP_SIZE", GetMessage("STAT_OPT_ADV_DETAIL_TOP_SIZE"), array("text", 5)), "SAVE_SESSION_DATA" => array("SAVE_SESSION_DATA", GetMessage("STAT_OPT_SAVE_SESSION_DATA"), array("checkbox", "Y")), "USE_AUTO_OPTIMIZE" => "", "BASE_CURRENCY" => ""), "TAB2" => array(1 => GetMessage("STAT_OPT_TIME_TRAFFIC_SECTION"), "VISIT_DAYS" => array("VISIT_DAYS", GetMessage("STAT_OPT_TIME_VISIT_DAYS"), array("text", 5), "CStatistics::CleanUpVisits();", "b_stat_page, b_stat_page_adv"), "PATH_DAYS" => array("PATH_DAYS", GetMessage("STAT_OPT_TIME_PATH_DAYS"), array("text", 5), "CStatistics::CleanUpPathDynamic();", "b_stat_path, b_stat_path_adv"), 2 => GetMessage("STAT_OPT_TIME_REFERER_SECTION"), "PHRASES_DAYS" => array("PHRASES_DAYS", GetMessage("STAT_OPT_TIME_PHRASES_DAYS"), array("text", 5), "CStatistics::CleanUpPhrases();", "b_stat_phrase_list"), "REFERER_LIST_DAYS" => array("REFERER_LIST_DAYS", GetMessage(&qu
|
请发表评论