23if(!defined(
"B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==
true)
die();
30$aUserOpt = CUserOptions::GetOption(
"admin_panel",
"settings");
43 require_once(
$_SERVER[
"DOCUMENT_ROOT"].
BX_ROOT.
"/modules/main/interface/admin_lib.php");
54if (!defined(
'ADMIN_SECTION_LOAD_AUTH') || !ADMIN_SECTION_LOAD_AUTH):
56 $direction = \Bitrix\Main\Context::getCurrent()->getCulture()->getDirection() ?
'' :
' dir="rtl"';
61<meta
http-equiv=
"Content-Type" content=
"text/html; charset=<?=htmlspecialcharsbx(LANG_CHARSET)?>">
62<meta name=
"viewport" content=
"initial-scale=1.0, width=device-width">
63<meta
http-equiv=
"X-UA-Compatible" content=
"IE=edge">
72document.documentElement.className =
'adm-header-fixed';
76window.document.title =
'<?$adminPage->ShowJsTitle()?> - <?echo CUtil::JSEscape(COption::GetOptionString("main","site_name", $_SERVER["SERVER_NAME"]));?>';
87BX.message({MENU_ENABLE_TOOLTIP: <?=(!isset(
$aUserOptGlobal[
'start_menu_title']) ||
$aUserOptGlobal[
'start_menu_title'] <>
'N' ?
'true' :
'false')?>});
90var topWindow = BX.PageObject.getRootWindow();
92 BX.Reflection.getClass(
'topWindow.BX.adminSidePanel')
94 !topWindow.window[
"adminSidePanel"]
95 || !BX.is_subclass_of(topWindow.window[
"adminSidePanel"], topWindow.BX.adminSidePanel)
99 topWindow.window[
"adminSidePanel"] =
new topWindow.BX.adminSidePanel();
103if (!defined(
'ADMIN_SECTION_LOAD_AUTH') || !ADMIN_SECTION_LOAD_AUTH):
106<body
id=
"bx-admin-prefix">
108<
style type=
"text/css">
109#bx-panel {display:none !important;}
110.adm-main-wrap {
display:none !important; }
112<div
id=
"bx-panel-error">
118if(($adminHeader =
getLocalPath(
"php_interface/admin_header.php", BX_PERSONAL_ROOT)) !==
false)
120 include(
$_SERVER[
"DOCUMENT_ROOT"].$adminHeader);
124 <table
class=
"adm-main-wrap">
127 <td
class=
"adm-header-wrap" colspan=
"2">
143 if(isset(
$GLOBALS[
"BX_FAVORITE_MENU_ACTIVE_ID"]) &&
$GLOBALS[
"BX_FAVORITE_MENU_ACTIVE_ID"])
152 CUserOptions::SetOption(
'favorite',
'favorite_menu',
array(
'stick' =>
$stick));
156 <td
class=
"adm-left-side-wrap" id=
"menu_mirrors_cont">
159BX.adminMenu.setMinimizedState(<?=$bOptMenuMinimized ?
'true' :
'false'?>);
160BX.adminMenu.setActiveSection(
'<?=$openedSection?>');
161BX.adminMenu.setOpenedSections(
'<?=CUtil::JSEscape($adminMenu->GetOpenedSections());?>');
163 <div
class=
"adm-left-side<?=$bOptMenuMinimized ? ' adm-left-side-wrap-close' : ''?>"<?
if(isset(
$aOptMenuPos[
"width"]) && intval(
$aOptMenuPos[
"width"]) > 0) echo
' style="width:'.($bOptMenuMinimized ? 15 : intval(
$aOptMenuPos[
"width"])).
'px" data-width="'.intval(
$aOptMenuPos[
"width"]).
'"'?>
id=
"bx_menu_panel"><div
class=
"adm-menu-wrapper<?=$bOptMenuMinimized ? ' adm-main-menu-close' : ''?>" style=
"overflow:hidden; min-width:300px;">
164 <div
class=
"adm-main-menu">
170 $menuClass =
"adm-main-menu-item adm-".$menu[
"menu_id"];
173 $menuClass .=
' adm-main-menu-item-active';
175 if (isset($menu[
'url']) && $menu[
'url']):
177 <a href=
"<?=htmlspecialcharsbx($menu["url
"])?>" class=
"adm-default <?=$menuClass?>" onclick=
"BX.adminMenu.GlobalMenuClick('<?echo $menu["menu_id
"]?>'); return false;" onfocus=
"this.blur();" id=
"global_menu_<?echo $menu["menu_id
"]?>">
178 <div
class=
"adm-main-menu-item-icon"></div>
180 <div
class=
"adm-main-menu-hover"></div>
185 <span
class=
"adm-default <?=$menuClass?>" onclick=
"BX.adminMenu.GlobalMenuClick('<?echo $menu["menu_id
"]?>'); return false;" id=
"global_menu_<?echo $menu["menu_id
"]?>">
186 <div
class=
"adm-main-menu-item-icon"></div>
188 <div
class=
"adm-main-menu-hover"></div>
195 <div
class=
"adm-submenu" id=
"menucontainer">
211 $subMenuDisplay =
"block";
213 $subMenuDisplay =
"none";
216 <div
class=
"adm-global-submenu<?=($subMenuDisplay == "block
" ? " adm-global-submenu-active
" : "")?>" id=
"global_submenu_<?echo $menu["menu_id
"]?>">
218 if ($menu[
'menu_id'] ==
'desktop')
220 if (
$USER->IsAuthorized())
226 BX.addCustomEvent(BX.adminMenu,
'onMenuChange', BX.delegate(BX.adminFav.onMenuChange,
this));
230 $menu[
"text"] =
GetMessage(
"MAIN_PR_ADMIN_FAV");
231 $menu[
"items"] = $favMenu->GenerateItems();
234 <div
class=
"adm-submenu-items-wrap">
235 <div
class=
"adm-submenu-items-stretch-wrap" onscroll=
"BX.adminMenu.itemsStretchScroll()">
236 <table
class=
"adm-submenu-items-stretch">
238 <td
class=
"adm-submenu-items-stretch-cell">
239 <div
class=
"adm-submenu-items-block">
240 <div
class=
"adm-submenu-items-title adm-submenu-title-<?=$menu['menu_id']?>"><?=
htmlspecialcharsbx($menu[
"text"])?></div>
241 <div
id=
'<?="_".$menu['items_id
']?>'>
243 if(!empty($menu[
"items"]))
245 foreach($menu[
"items"] as $submenu)
250 elseif ($menu[
'menu_id'] ==
'desktop')
255 if($menu[
'menu_id'] ==
'desktop')
272 <div
class=
"adm-submenu-separator"></div>
274 if ($menuScripts !=
""):
276<script><?=$menuScripts?></script>
280 if(file_exists(
$_SERVER[
"DOCUMENT_ROOT"].BX_PERSONAL_ROOT.
"/php_interface/this_site_logo.php"))
282 include(
$_SERVER[
"DOCUMENT_ROOT"].BX_PERSONAL_ROOT.
"/php_interface/this_site_logo.php");
289 <td
class=
"adm-workarea-wrap <?=defined('BX_ADMIN_SECTION_404') && BX_ADMIN_SECTION_404 == 'Y' ? 'adm-404-error' : 'adm-workarea-wrap-top'?>">
290 <div
class=
"adm-workarea adm-workarea-page" id=
"adm-workarea">
294if (
$curPage !=
"/bitrix/admin/index.php")
296 $currentFavId =
null;
303 ->deleteParams([
"IFRAME",
"IFRAME_TYPE"])
306 $currentFavId = CFavorites::getIDByUrl(
$requestUri);
320foreach (
GetModuleEvents(
"main",
"OnPrologAdminTitle",
true) as $arEvent)
322 $arPageParams =
array();
324 if (isset($_GET[
"pageid"]))
325 $arPageParams[] = $_GET[
"pageid"];
338 <h1
class=
"adm-title" id=
"adm-title">
341 <a href=
"javascript:void(0)" class=
"adm-fav-link<?=$currentFavId>0?' adm-fav-link-active':''?>" onclick=
"
342 BX.adminFav.titleLinkClick(this, <?=intval($currentFavId)?>, '')" title=
"
343 <?= $currentFavId ? GetMessage("MAIN_PR_ADMIN_FAV_DEL
") : GetMessage("MAIN_PR_ADMIN_FAV_ADD
")?>"></a>
345 <a
id=
"navchain-link" href=
"<?echo htmlspecialcharsbx($_SERVER["REQUEST_URI
"])?>" title=
"
346 <?echo GetMessage("MAIN_PR_ADMIN_CUR_LINK
")?>"></a>
353if(
$USER->IsAuthorized()):
354 $license = Application::getInstance()->getLicense();
359 if(defined(
"DEMO") && DEMO ==
"Y"):
361 $vendor = COption::GetOptionString(
"main",
"vendor",
"1c_bitrix");
366 echo
BeginNote(
'style="position: relative; top: -15px;"');
368 <span
class=
"required"><?echo
GetMessage(
"TRIAL_ATTENTION") ?></span>
369 <?echo
GetMessage(
"TRIAL_ATTENTION_TEXT1_".$vendor) ?>
373 <?echo
GetMessage(
"TRIAL_ATTENTION_TEXT4_".$vendor) ?>
375 <?echo
GetMessage(
"TRIAL_ATTENTION_TEXT5_".$vendor) ?>
379 elseif(defined(
"TIMELIMIT_EDITION") && TIMELIMIT_EDITION ==
"Y"):
381 $expireDate =
$license->getExpireDate();
382 $delta = $expireDate?->getTimestamp() - time();
388 '#FINISH_DATE#' => $expireDate,
395 $blockDate = ($expireDate ? (clone $expireDate)->add(
'+15 days') :
new Date());
397 '#FINISH_DATE#' => ($expireDate ?: $blockDate),
398 '#BLOCK_DATE#' => $blockDate,
406 $supportFinishDate =
$license->getSupportExpireDate();
407 if ($supportFinishDate !==
null)
410 if(!isset($aGlobalOpt[
'messages'][
'support']) || $aGlobalOpt[
'messages'][
'support'] <>
'N')
412 $supportFinishStamp = $supportFinishDate->getTimestamp();
413 $supportDateDiff = ceil(($supportFinishStamp - time())/86400);
415 if($supportDateDiff >= 0 && $supportDateDiff <= 30)
418 'prolog_main_support_almost_expire',
419 [
'#FINISH_DATE#' =>
GetTime($supportFinishStamp)]
423 elseif($supportDateDiff < 0)
426 'prolog_main_support_expired',
427 [
'#FINISH_DATE#' =>
GetTime($supportFinishStamp)]
438 if (!isset($userOption[
"showInformerDate"]) || time() > $userOption[
"showInformerDate"])
440 if (LANGUAGE_ID ==
"ru" &&
$license->getPartnerId() > 0)
442 $prolongUrl =
"/bitrix/admin/buy_support.php?lang=" . LANGUAGE_ID;
446 $prolongUrl =
$license->getBuyLink();
449 echo
BeginNote(
'style="position: relative; top: -15px;"');
452 #menu-popup-prolong-popup .popup-window-hr { display:none;}
453 #menu-popup-prolong-popup .menu-popup .menu-popup-item {min-width: 100px; margin-top: 7px;}
454 #menu-popup-prolong-popup .menu-popup-item:hover {background-color: #fff !important;}
457 function showProlongMenu(bindElement)
459 BX.PopupMenu.show(
"prolong-popup", bindElement, [
461 html :
'<b><?=GetMessageJS("prolog_main_support_menu1")?></b>'
464 html :
'<?=GetMessageJS("prolog_main_support_menu2")?>',
465 onclick :
function() {prolongRemind(
'<?=AddToTimeStamp(array("DD" => 7));?>',
this)}
468 html :
'<?=GetMessageJS("prolog_main_support_menu3")?>',
469 onclick :
function() {prolongRemind(
'<?=AddToTimeStamp(array("DD" => 14));?>',
this)}
472 html :
'<?=GetMessageJS("prolog_main_support_menu4")?>',
473 onclick :
function() {prolongRemind(
'<?=AddToTimeStamp(array("MM" => 1));?>',
this)}
485 function prolongRemind(tt, el)
487 BX.userOptions.save(
'main',
'admSupInf',
'showInformerDate', tt);
488 el.popupWindow.close();
489 BX.hide(BX(
'prolongmenu').parentNode);
492 <div
style=
"float: right; padding-left: 50px; margin-top: -5px; text-align: center;">
493 <a href=
"<?=$prolongUrl?>" target=
"_blank" class=
"adm-btn adm-btn-save" style=
"margin-bottom: 4px;"><?=
GetMessage(
"prolog_main_support_button_prolong")?></a><br />
495 <a href=
"javascript:void(0)" id=
"prolongmenu" onclick=
"showProlongMenu(this)" style=
"color: #716536;"><?=
GetMessage(
"prolog_main_support_button_no_prolong2")?></a>
499 <div
id=
"supdescr" style=
"display: none;"><br /><br /><b><?=
GetMessage(
"prolog_main_support_wit_descr1")?></b><hr><?=
GetMessage(
"prolog_main_support_wit_description" . (
IsModuleInstalled(
"intranet") ?
"_cp" :
"_bus") .
'_MSGVER_1', [
'#LINK#' =>
$eulaLink])?></div>
const BX_ADMIN_SECTION_404
static Show(CAdminPage $adminPage, CAdminMenu $adminMenu)
static Init($arExt=array(), $bReturn=false)
static GetOption($category, $name, $default_value=false, $user_id=false)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
<? if( $useEditor3):?>< tr class="heading">< td colspan="2"><? echo GetMessage("FILEMAN_OPTION_SPELL_SET");?></td ></tr ><? if(function_exists( 'pspell_config_create')):$use_pspell_checked=(COption::GetOptionString( $module_id, "use_pspell", "Y")=="Y") ? "checked" :"";?>< tr >< td valign="top">< label for="use_pspell"><?echo GetMessage("FILEMAN_OPTION_USE_PSPELL");?></label >< br >< a title="<?echo GetMessage("FILEMAN_OPTION_ADDISH_DICS_TITLE");?> http
global $adminSidePanelHelper
$_SERVER["DOCUMENT_ROOT"]
if(file_exists(( $_fname=__DIR__ . "/classes/general/update_db_updater.php"))) if(($_fname=getLocalPath("init.php")) !==false) if(( $_fname=getLocalPath("php_interface/init.php", BX_PERSONAL_ROOT)) !==false) if(($_fname=getLocalPath("php_interface/" . SITE_ID . "/init.php", BX_PERSONAL_ROOT)) !==false) if((!(defined("STATISTIC_ONLY") &&STATISTIC_ONLY &&!str_starts_with( $GLOBALS["APPLICATION"]->GetCurPage(), BX_ROOT . "/admin/"))) &&COption::GetOptionString("main", "include_charset", "Y")=="Y" &&LANG_CHARSET !='') if(COption::GetOptionString("main", "set_p3p_header", "Y")=="Y") $license
ExecuteModuleEventEx($arEvent, $arParams=[])
IsModuleInstalled($module_id)
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
GetTime($timestamp, $type="SHORT", $site=false, $bSearchInSitesOnly=false)
GetModuleEvents($MODULE_ID, $MESSAGE_ID, $bReturnArray=false)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
getLocalPath($path, $baseFolder="/bitrix")
if(!is_object($adminSidePanelHelper)) $aOptMenuPos
global_menu_<?echo $menu["menu_id"]?> adm main menu item icon adm main menu item text text adm main menu hover adm submenu menucontainer menu_id menu_id items_id items_id desktop menu_id block none adm global submenu<?=($subMenuDisplay=="block" ? " adm-global-submenu-active" :"")?> global_submenu_<?echo $menu["menu_id"]?> text MAIN_PR_ADMIN_FAV items adm submenu items wrap adm submenu items stretch wrap BX adminMenu itemsStretchScroll()"> <table class if (!empty( $menu["items"])) elseif ( $menu[ 'menu_id']=='desktop') if ( $menu[ 'menu_id']=='desktop') endforeach
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
<? endif;?> window document title
$GLOBALS['_____370096793']
adm detail iblock types adm detail iblock list tr_SITE_ID display