Current Path : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/modules/aspro.allcorp3/admin/ |
Current File : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/modules/aspro.allcorp3/admin/mc.php |
<? use CAllcorp3Tools as Tools, CAllcorp3 as Solution; require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_admin_before.php'); if($_SERVER['REQUEST_METHOD'] === 'GET'){ require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_admin_after.php'); } IncludeModuleLangFile(__FILE__); if($_SERVER['REQUEST_METHOD'] === 'GET'){ $GLOBALS['APPLICATION']->SetTitle(GetMessage('ALLCORP3_CONTROL_CENTER_TITLE')); } $RIGHT = $GLOBALS['APPLICATION']->GetGroupRight(Solution::moduleID); if($RIGHT >= 'R'){ if(CModule::IncludeModule(Solution::moduleID)){ if($_SERVER['REQUEST_METHOD'] === 'GET'){ CJSCore::Init(array('jquery')); ?> <link href="/bitrix/css/aspro.allcorp3/style.css" type="text/css" rel="stylesheet" /> <div id="aspro_admin_area"> <div class="aspro-admin-waiter"></div> </div> <script type="text/javascript"> $.ajax({ type: 'POST', dataType: 'html', success: function(html){ $('#aspro_admin_area').append(html); }, error: function(){ $('#aspro_admin_area').addClass('aspro-admin-ready'); $('#aspro_admin_area').append('<div class="adm-info-message-wrap adm-info-message-red"><div class="adm-info-message"><div class="adm-info-message-title"><?=GetMessage('ALLCORP3_MODULE_CONTROL_CENTER_ERROR')?></div><div class="adm-info-message-icon"></div></div></div>'); } }); </script> <? } else{ $m = Tools::___1595018847(); ?> <iframe src="https://aspro.ru/mc/?<?=$m?>"></iframe> <script type="text/javascript"> $(document).ready(function() { var asproAdminArea = $('#aspro_admin_area'); var asproIframe = $('#aspro_admin_area iframe'); if(asproIframe.length){ _checkAdminAreaResized = function() { asproAdminArea.removeAttr('style'); var wh = $('.adm-workarea-wrap').height(); // var wh = $('.adm-main-wrap').height(); var bh = $('#main_navchain').outerHeight(); var th = $('#adm-title').outerHeight() + parseInt($('#adm-title').css('margin-top')) + parseInt($('#adm-title').css('margin-bottom'))+10; asproAdminArea.height(wh-bh-th); return $('#menucontainer').height(); } asproIframe.load(function() { asproAdminArea.addClass('aspro-admin-ready'); }); var h = 0; setInterval(function() { if (h !== $('#menucontainer').height()) { h = _checkAdminAreaResized(); } }, 200); $(window).resize(function() { h = _checkAdminAreaResized(); }); } }); </script> <? } } else{ CAdminMessage::ShowMessage(GetMessage('ALLCORP3_MODULE_NOT_INCLUDED')); } } else{ CAdminMessage::ShowMessage(GetMessage('ALLCORP3_NO_RIGHTS_FOR_VIEWING')); } ?> <? if($_SERVER['REQUEST_METHOD'] === 'GET'){ require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/epilog_admin.php'); } ?>