public static function onBeforeHTMLEditorScriptRuns() { $asset = Asset::getInstance(); $asset->addJs('/bitrix/js/newkaliningrad.typografru/typograf.js'); $messages = Loc::loadLanguageFile(Path::normalize(__FILE__)); $asset->addString(sprintf('<script>BX.message(%s)</script>', Json::encode($messages, JSON_FORCE_OBJECT | JSON_UNESCAPED_UNICODE))); }
/** * @return string */ public static function getScripts() { \Bitrix\Main\Page\Asset::getInstance()->addJs("/bitrix/js/sale/admin/order_info.js"); return ' <script type="text/javascript"> BX.ready(function(){ BX.Sale.Admin.OrderEditPage.registerFieldsUpdaters( BX.Sale.Admin.OrderInfo.getFieldsUpdaters() ); }); </script> '; }
public function onBeforeEndBufferContent() { global $USER; if ($USER->IsAuthorized()) { Asset::getInstance()->addString("<script>(window.BX||top.BX).message({ 'USER_ID': '" . $USER->GetID() . "'});</script>", $unique = false, AssetLocation::AFTER_JS, AssetMode::ALL); } }
public static function initScripts($arData) { global $APPLICATION; $arExt = array('planner'); $arScripts = array(); if (is_array($arData['SCRIPTS'])) { foreach ($arData['SCRIPTS'] as $script) { if (CJSCore::IsExtRegistered($script)) { $arExt[] = $script; } else { $arScripts[] = $script; } } } if (is_array($arData['STYLES'])) { foreach ($arData['STYLES'] as $style) { $APPLICATION->SetAdditionalCSS($style); } } \Bitrix\Main\Page\Asset::getInstance()->addJsKernelInfo('calendar_planner_handler', array('/bitrix/js/calendar/core_planner_handler.js')); \Bitrix\Main\Page\Asset::getInstance()->addCssKernelInfo('calendar_planner_handler', array('/bitrix/js/calendar/core_planner_handler.css')); CJSCore::Init($arExt); foreach ($arScripts as $script) { $APPLICATION->AddHeadScript($script); } }
private function initControlHelpers() { if (!static::$controlIsRendered) { Asset::getInstance()->addJs('/bitrix/js/iblock/iblock_edit.js'); static::$controlIsRendered = true; } }
public static function getScripts() { $result = ''; if (!static::$jsInited) { \Bitrix\Main\Page\Asset::getInstance()->addJs("/bitrix/js/sale/admin/order_basket_settings.js"); $result .= ' BX.message({ SALE_ORDER_BASKET_JS_SETTINGS_TITLE: "' . \CUtil::JSEscape(Loc::getMessage("SALE_ORDER_BASKET_JS_SETTINGS_TITLE")) . '", SALE_ORDER_BASKET_JS_SETTINGS_APPLY: "' . \CUtil::JSEscape(Loc::getMessage("SALE_ORDER_BASKET_JS_SETTINGS_APPLY")) . '" }); '; static::$jsInited = true; } return $result; }
protected function processActionDefault() { $pathToAjax = isset($this->arParams['AJAX_PATH']) ? $this->arParams['AJAX_PATH'] : '/bitrix/components/bitrix/disk.bitrix24disk/ajax.php'; /** @noinspection PhpDynamicAsStaticMethodCallInspection */ $quota = CDiskQuota::getDiskQuota(); $this->arResult['showDiskQuota'] = false; //$quota !== true; //now without quota $this->arResult['diskSpace'] = (double) COption::getOptionInt('main', 'disk_space') * 1024 * 1024; $this->arResult['quota'] = $quota; $this->arResult['ajaxIndex'] = $pathToAjax; $this->arResult['ajaxStorageIndex'] = '/desktop_app/storage.php'; $this->arResult['isInstalledDisk'] = \Bitrix\Disk\Desktop::isDesktopDiskInstall(); $this->arResult['personalLibIndex'] = '/company/personal/user/' . $this->getUser()->getId() . '/disk/path/'; $this->arResult['isInstalledPull'] = (bool) isModuleInstalled('pull'); $this->arResult['currentUser'] = array('id' => $this->getUser()->getId(), 'formattedName' => $this->getUser()->getFormattedName()); Asset::getInstance()->addJs('/bitrix/components/bitrix/disk.bitrix24disk/disk.js'); $this->includeComponentTemplate(); }
/** * @param Order $order * @param $formId * @return string */ public static function getScripts(Order $order, $formId) { Asset::getInstance()->addJs("/bitrix/js/sale/admin/order_edit.js"); Asset::getInstance()->addJs("/bitrix/js/sale/admin/order_ajaxer.js"); $currencyId = $order->getCurrency(); $currencies = array(); if (Loader::includeModule('currency')) { \CJSCore::Init(array('currency')); $currencyFormat = \CCurrencyLang::getFormatDescription($currencyId); $currencies = array(array('CURRENCY' => $currencyId, 'FORMAT' => array('FORMAT_STRING' => $currencyFormat['FORMAT_STRING'], 'DEC_POINT' => $currencyFormat['DEC_POINT'], 'THOUSANDS_SEP' => $currencyFormat['THOUSANDS_SEP'], 'DECIMALS' => $currencyFormat['DECIMALS'], 'THOUSANDS_VARIANT' => $currencyFormat['THOUSANDS_VARIANT'], 'HIDE_ZERO' => "N"))); } $curFormat = \CCurrencyLang::getCurrencyFormat($currencyId); $currencyLang = trim(str_replace("#", '', $curFormat["FORMAT_STRING"])); $langPhrases = array("SALE_ORDEREDIT_DISCOUNT_UNKNOWN", "SALE_ORDEREDIT_REFRESHING_DATA", "SALE_ORDEREDIT_FIX", "SALE_ORDEREDIT_UNFIX"); $result = ' <script type="text/javascript"> BX.ready(function(){ BX.Sale.Admin.OrderEditPage.orderId = "' . $order->getId() . '"; BX.Sale.Admin.OrderEditPage.siteId = "' . $order->getSiteId() . '"; BX.Sale.Admin.OrderEditPage.languageId = "' . LANGUAGE_ID . '"; BX.Sale.Admin.OrderEditPage.formId = "' . $formId . '_form"; BX.Sale.Admin.OrderEditPage.adminTabControlId = "' . $formId . '"; ' . (!empty($currencies) ? 'BX.Currency.setCurrencies(' . \CUtil::PhpToJSObject($currencies, false, true, true) . ');' : '') . 'BX.Sale.Admin.OrderEditPage.currency = "' . $currencyId . '"; BX.Sale.Admin.OrderEditPage.currencyLang = "' . \CUtil::JSEscape($currencyLang) . '";'; if ($formId == "sale_order_create") { $result .= ' BX.Sale.Admin.OrderEditPage.registerFieldsUpdaters(BX.Sale.Admin.OrderPayment.prototype.getCreateOrderFieldsUpdaters());'; } foreach ($langPhrases as $phrase) { $result .= ' BX.message({' . $phrase . ': "' . \CUtil::JSEscape(Loc::getMessage($phrase)) . '"});'; } $result .= '}); </script> '; return $result; }
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } \Bitrix\Main\Page\Asset::getInstance()->addJs('/bitrix/js/bizproc/tools.js'); $cmpId = RandString(); if (empty($arResult['DOCUMENT_ICON'])) { $moduleIcon = 'default'; if (in_array($arResult['TASK']['MODULE_ID'], array('crm', 'disk', 'iblock', 'lists', 'tasks'))) { $moduleIcon = $arResult['TASK']['MODULE_ID']; } $arResult['DOCUMENT_ICON'] = $templateFolder . '/images/bp-' . $moduleIcon . '-icon.png'; } ?> <script type="text/javascript"> BX.message({ BPAT_DELEGATE_SELECT : '<?php echo GetMessageJS('BPAT_DELEGATE_SELECT'); ?> ', BPAT_DELEGATE_CANCEL : '<?php echo GetMessageJS('BPAT_DELEGATE_CANCEL'); ?> ' }); </script> <?php if ($arParams['POPUP']) { ?> <div class="bp-popup-title"><?php
/** * @return string */ public static function getScripts() { Asset::getInstance()->addJs("/bitrix/js/sale/admin/order_payment.js"); $imgPathList = self::getImgPathList(); $message = array('PAYMENT_PAID_NO' => Loc::getMessage('SALE_ORDER_PAYMENT_STATUS_NO'), 'PAYMENT_PAID_YES' => Loc::getMessage('SALE_ORDER_PAYMENT_STATUS_YES'), 'PAYMENT_PAID_RETURN' => Loc::getMessage('SALE_ORDER_PAYMENT_RETURN'), 'PAYMENT_PAID_CANCEL' => Loc::getMessage('SALE_ORDER_PAYMENT_CANCEL'), 'PAYMENT_RETURN_COMMENT' => Loc::getMessage('SALE_ORDER_PAYMENT_RETURN_COMMENT'), 'PAYMENT_RETURN_NUM' => Loc::getMessage('SALE_ORDER_PAYMENT_RETURN_NUM'), 'PAYMENT_RETURN_DATE' => Loc::getMessage('SALE_ORDER_PAYMENT_RETURN_DATE'), 'PAYMENT_OPERATION_TITLE' => Loc::getMessage('SALE_ORDER_PAYMENT_OPERATION_TITLE'), 'PAYMENT_OPERATION_RETURN' => Loc::getMessage('SALE_ORDER_PAYMENT_OPERATION_RETURN'), 'PAYMENT_RETURN_DATE_ALT' => Loc::getMessage('SALE_ORDER_PAYMENT_RETURN_DATE_ALT'), 'PAYMENT_WINDOW_RETURN_TITLE' => Loc::getMessage('SALE_ORDER_PAYMENT_WINDOW_RETURN_TITLE'), 'PAYMENT_WINDOW_CANCEL_TITLE' => Loc::getMessage('SALE_ORDER_PAYMENT_WINDOW_CANCEL_TITLE'), 'PAYMENT_WINDOW_RETURN_BUTTON_SAVE' => Loc::getMessage('SALE_ORDER_PAYMENT_WINDOW_RETURN_BUTTON_SAVE'), 'PAYMENT_RETURN_NUM_DOC' => Loc::getMessage('SALE_ORDER_PAYMENT_RETURN_NUM_DOC'), 'PAYMENT_RETURN_SUM' => Loc::getMessage('SALE_ORDER_PAYMENT_RETURN_SUM'), 'PAYMENT_OPERATION_CANCEL' => Loc::getMessage('SALE_ORDER_PAYMENT_OPERATION_CANCEL'), 'PAYMENT_TOGGLE_DOWN' => Loc::getMessage('SALE_ORDER_PAYMENT_TOGGLE_DOWN'), 'PAYMENT_TOGGLE_UP' => Loc::getMessage('SALE_ORDER_PAYMENT_TOGGLE_UP'), 'PAYMENT_PAY_VOUCHER_NUM' => Loc::getMessage('SALE_ORDER_PAYMENT_PAY_VOUCHER_NUM'), 'PAYMENT_PAY_VOUCHER_DATE' => Loc::getMessage('SALE_ORDER_PAYMENT_PAY_VOUCHER_DATE'), 'PAYMENT_WINDOW_VOUCHER_TITLE' => Loc::getMessage('SALE_ORDER_PAYMENT_WINDOW_VOUCHER_TITLE'), 'PAYMENT_USE_INNER_BUDGET' => Loc::getMessage('SALE_ORDER_PAYMENT_USE_INNER_BUDGET'), 'PAYMENT_ORDER_STATUS' => Loc::getMessage('SALE_ORDER_PAYMENT_ORDER_STATUS'), 'PAYMENT_CONFIRM_DELETE' => Loc::getMessage('SALE_ORDER_PAYMENT_CONFIRM_DELETE')); return '<script type="text/javascript"> BX.message(' . \CUtil::PhpToJSObject($message) . '); logoList = ' . \CUtil::PhpToJSObject($imgPathList) . '; BX.ready(function(){ if(BX.Sale.Admin.OrderEditPage && BX.Sale.Admin.OrderEditPage.registerFieldsUpdaters) BX.Sale.Admin.OrderEditPage.registerFieldsUpdaters( BX.Sale.Admin.OrderPayment.prototype.getCreateOrderFieldsUpdaters() ); }); </script>'; }
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } if (!empty($_REQUEST['action_button_' . $arResult["GRID_ID"]])) { //@TODO remake unset($_REQUEST['bxajaxid'], $_REQUEST['AJAX_CALL']); } \Bitrix\Main\Page\Asset::getInstance()->addJs('/bitrix/js/bizproc/tools.js'); \Bitrix\Main\Page\Asset::getInstance()->addCss('/bitrix/components/bitrix/bizproc.workflow.faces/templates/.default/style.css'); if (strlen($arResult["FatalErrorMessage"]) > 0) { ?> <div class="bp-errortext"> <?php echo $arResult["FatalErrorMessage"]; ?> </div> <?php } else { ?> <div class="bp-interface-toolbar-container"> <div class="bp-interface-toolbar"> <table cellpadding="0" cellspacing="0" border="0" class="" style="width: 100%;"> <tbody> <tr> <td> <table cellpadding="0" cellspacing="0" border="0"> <tbody> <tr> <?php
die; } /** @var array $arParams */ /** @var array $arResult */ /** @global CMain $APPLICATION */ /** @global CUser $USER */ /** @global CDatabase $DB */ /** @var CBitrixComponentTemplate $this */ /** @var string $templateName */ /** @var string $templateFile */ /** @var string $templateFolder */ /** @var string $componentPath */ /** @var CBitrixComponent $component */ use Bitrix\Main\Localization\Loc; use Bitrix\Main\Page\Asset; Asset::getInstance()->addJs($this->GetFolder() . '/right.js'); ?> <div class="bx-lists-total-div-class" id="bx-lists-total-div-id"> <input type="hidden" id="bx-lists-selected-list" name="IBLOCK_ID"> <input type="hidden" id="bx-lists-lists-page" value="<?php echo $arResult['LISTS_URL']; ?> "> <div id="bx-lists-store-lists" style="display:none"></div> <table class="bx-lists-table-title" id="bx-lists-table-title-id"> <tr> <td class="bx-lists-table-td-title"> <span class="bx-lists-title-desc-icon" id="bx-lists-table-td-title-img"></span> <span id="bx-lists-table-td-title"></span> </td>
public static function getScripts() { \Bitrix\Main\Page\Asset::getInstance()->addJs("/bitrix/js/sale/admin/order_additional_info.js"); return '<script type="text/javascript">' . 'BX.message({ SALE_ORDER_ADDITIONAL_INFO_COMMENT_EDIT: "' . \CUtil::jsEscape(Loc::getMessage("SALE_ORDER_ADDITIONAL_INFO_COMMENT_EDIT")) . '", SALE_ORDER_ADDITIONAL_INFO_COMMENT_SAVE: "' . \CUtil::jsEscape(Loc::getMessage("SALE_ORDER_ADDITIONAL_INFO_COMMENT_SAVE")) . '", SALE_ORDER_ADDITIONAL_INFO_NO_COMMENT: "' . \CUtil::jsEscape(Loc::getMessage("SALE_ORDER_ADDITIONAL_INFO_NO_COMMENT")) . '" })' . '</script>'; }
if ($saleModulePermissions >= "W") { $arActions[] = array("SEPARATOR" => true); $arActions[] = array("ICON" => "delete", "TEXT" => Loc::getMessage("SALE_DSE_DELETE"), "ACTION" => "if(confirm('" . Loc::getMessage('SALE_DSE_CONFIRM_DEL_PROFILE_MESSAGE') . "')) " . $lAdminSubServices->ActionRedirect("sale_delivery_service_edit.php?lang=" . LANG . "&PARENT_ID=" . $fields["PARENT_ID"] . "&ID=" . $ID . "&action=profile_delete&ID_PROF=" . $f_ID)); } $row->AddActions($arActions); } if ($saleModulePermissions == "W") { $aContext = array(array("TEXT" => Loc::getMessage("SALE_DSE_ADD_NEW_PROFILE"), "LINK" => "sale_delivery_service_edit.php?lang=" . LANG . "&PARENT_ID=" . $ID . "&back_url=" . urlencode($APPLICATION->GetCurPageParam()), "TITLE" => Loc::getMessage("SALE_DSE_ADD_NEW_PROFILE_TITLE"), "ICON" => "btn_new")); $lAdminSubServices->AddAdminContextMenu($aContext, false); } if ($_REQUEST["table_id"] == $sTableIDSubService) { $lAdminSubServices->CheckListMode(); } } /* profiles end */ Asset::getInstance()->addJs("/bitrix/js/sale/delivery.js"); if ($parentService && get_class($parentService) != 'Bitrix\\Sale\\Delivery\\Services\\Group') { if ($ID > 0) { $sDocTitle = str_replace(array("#NAME#", "#PARENT_NAME#"), array($fields["NAME"], $parentService->getName()), Loc::getMessage("SALE_DSE_EDIT_RECORD_PROFILE")); } else { $sDocTitle = str_replace("#PARENT_NAME#", $parentService->getName(), Loc::getMessage("SALE_DSE_NEW_RECORD_PROFILE")); } } else { if ($isGroup) { if ($ID > 0) { $sDocTitle = str_replace("#NAME#", $fields["NAME"], Loc::getMessage("SALE_DSE_EDIT_GROUP")); } else { $sDocTitle = Loc::getMessage("SALE_DSE_NEW_GROUP"); } } else { if ($ID > 0) {
public static function getScripts() { Asset::getInstance()->addJs("/bitrix/js/sale/admin/order_shipment.js"); $message = array('SALE_ORDER_SHIPMENT_DEDUCTED_YES' => Loc::getMessage('SALE_ORDER_SHIPMENT_DEDUCTED_YES'), 'SALE_ORDER_SHIPMENT_DEDUCTED_NO' => Loc::getMessage('SALE_ORDER_SHIPMENT_DEDUCTED_NO'), 'SALE_ORDER_SHIPMENT_ALLOW_DELIVERY_YES' => Loc::getMessage('SALE_ORDER_SHIPMENT_ALLOW_DELIVERY_YES'), 'SALE_ORDER_SHIPMENT_ALLOW_DELIVERY_NO' => Loc::getMessage('SALE_ORDER_SHIPMENT_ALLOW_DELIVERY_NO'), 'SALE_ORDER_SHIPMENT_NEW_PRICE_DELIVERY' => Loc::getMessage('SALE_ORDER_SHIPMENT_NEW_PRICE_DELIVERY'), 'SALE_ORDER_SHIPMENT_APPLY' => Loc::getMessage('SALE_ORDER_SHIPMENT_APPLY'), 'SALE_ORDER_SHIPMENT_CONFIRM_SET_NEW_PRICE' => Loc::getMessage('SALE_ORDER_SHIPMENT_CONFIRM_SET_NEW_PRICE'), 'SALE_ORDER_SHIPMENT_BLOCK_SHIPMENT_TOGGLE_UP' => Loc::getMessage('SALE_ORDER_SHIPMENT_BLOCK_SHIPMENT_TOGGLE_UP'), 'SALE_ORDER_SHIPMENT_BLOCK_SHIPMENT_TOGGLE' => Loc::getMessage('SALE_ORDER_SHIPMENT_BLOCK_SHIPMENT_TOGGLE'), 'SALE_ORDER_SHIPMENT_CONFIRM_DELETE_SHIPMENT' => Loc::getMessage('SALE_ORDER_SHIPMENT_CONFIRM_DELETE_SHIPMENT'), 'SALE_ORDER_SHIPMENT_PROFILE' => Loc::getMessage('SALE_ORDER_SHIPMENT_PROFILE')); return "<script>\n\t\t\tBX.message(" . \CUtil::PhpToJSObject($message) . ");\n\t\t</script>"; }
/** @var CBitrixComponent $this */ /** @var array $arParams */ /** @var array $arResult */ /** @global CUser $USER */ /** @global CMain $APPLICATION */ use Bitrix\Highloadblock as HL; use Bitrix\Main\Entity; use Bitrix\Main\Type\DateTime; use Bitrix\Main\Page\Asset; use \Bitrix\Main\Loader; use \Bitrix\Main\Application; // Include Bootstrap and jQuery Asset::getInstance()->addJs('http://code.jquery.com/jquery-2.1.4.min.js'); Asset::getInstance()->addJs('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js'); $APPLICATION->SetAdditionalCSS('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'); \Bitrix\Main\Loader::IncludeModule("iblock"); $context = Application::getInstance()->getContext(); $request = $context->getRequest(); $user_name = $request->get("user_name"); $message = $request->get("message"); $submit = $request->get("submit"); $highloadID = $arParams['HIGHLOAD_BLOCK_ID']; if ($USER->IsAuthorized()) { $un = $USER->GetFullName();
public function startBuffering($content) { if (!$this->isEnabled() || !is_object($GLOBALS["APPLICATION"]) || defined("BX_BUFFER_SHUTDOWN")) { return null; } $newBuffer = $GLOBALS["APPLICATION"]->buffer_content; $cnt = count($GLOBALS["APPLICATION"]->buffer_content_type); Asset::getInstance()->setMode(AssetMode::COMPOSITE); $this->compositeWasInjected = false; for ($i = 0; $i < $cnt; $i++) { $method = $GLOBALS["APPLICATION"]->buffer_content_type[$i]["F"]; if (!is_array($method) || count($method) !== 2 || $method[0] !== $GLOBALS["APPLICATION"]) { continue; } if (in_array($method[1], array("GetCSS", "GetHeadScripts", "GetHeadStrings"))) { $newBuffer[$i * 2 + 1] = call_user_func_array($method, $GLOBALS["APPLICATION"]->buffer_content_type[$i]["P"]); if ($this->compositeWasInjected !== true && $method[1] === "GetHeadStrings") { $this->compositeWasInjected = strpos($newBuffer[$i * 2 + 1], "w.frameRequestStart") !== false; } } } Asset::getInstance()->setMode(AssetMode::STANDARD); return $this->compositeWasInjected === true ? implode("", $newBuffer) . $content : null; }
function CAdminTabControlDrag($name, $tabs, $moduleId="", $bCanExpand = true, $bDenyAutosave = false) { parent::CAdminTabControl($name, $tabs, $bCanExpand, $bDenyAutosave); $this->moduleId = $moduleId; \Bitrix\Main\Page\Asset::getInstance()->addJs("/bitrix/js/main/admin_dd.js"); }
if (($siteClosed = getLocalPath("php_interface/" . LANG . "/site_closed.php", BX_PERSONAL_ROOT)) !== false) { include $_SERVER["DOCUMENT_ROOT"] . $siteClosed; } elseif (($siteClosed = getLocalPath("php_interface/include/site_closed.php", BX_PERSONAL_ROOT)) !== false) { include $_SERVER["DOCUMENT_ROOT"] . $siteClosed; } else { include $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/site_closed.php"; } die; } $sPreviewFile = $_SERVER["DOCUMENT_ROOT"] . BX_PERSONAL_ROOT . "/tmp/templates/__bx_preview/header.php"; if (defined("SITE_TEMPLATE_PREVIEW_MODE") && file_exists($sPreviewFile)) { include_once $sPreviewFile; } else { \Bitrix\Main\Page\Asset::getInstance()->startTarget('TEMPLATE'); include_once $_SERVER["DOCUMENT_ROOT"] . SITE_TEMPLATE_PATH . "/header.php"; \Bitrix\Main\Page\Asset::getInstance()->startTarget('PAGE'); } /* Draw edit menu for whole content */ global $BX_GLOBAL_AREA_EDIT_ICON; $BX_GLOBAL_AREA_EDIT_ICON = false; if ($APPLICATION->GetShowIncludeAreas()) { require_once $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/interface/init_admin.php"; $aUserOpt = CUserOptions::GetOption("global", "settings", array()); if ($aUserOpt["page_edit_control_enable"] != "N") { $documentRoot = CSite::GetSiteDocRoot(SITE_ID); if (isset($_SERVER["REAL_FILE_PATH"]) && $_SERVER["REAL_FILE_PATH"] != "") { $currentFilePath = $_SERVER["REAL_FILE_PATH"]; } else { $currentFilePath = $APPLICATION->GetCurPage(true); } $bCanEdit = true;
<meta property="og:url" content="<?php $APPLICATION->ShowProperty('OG_URL'); ?> " /> <meta property="og:image" content="<?php $APPLICATION->ShowProperty('OG_IMAGE'); ?> " /> <meta property="og:type" content="website" /> <meta property="fb:app_id" content="<?php echo Option::get('socialservices', 'facebook_appid'); ?> " /><?php $APPLICATION->ShowHead(); Asset::getInstance()->addCss(SITE_TEMPLATE_PATH . '/css/styles.css'); Asset::getInstance()->addJs(SITE_TEMPLATE_PATH . '/js/scripts.js'); ?> </head><?php ?> <body><?php $APPLICATION->ShowPanel(); ?> <header> <?php $APPLICATION->IncludeComponent("bitrix:menu", "top", array("ALLOW_MULTI_SELECT" => "N", "CHILD_MENU_TYPE" => "top", "COMPONENT_TEMPLATE" => "top", "DELAY" => "N", "MAX_LEVEL" => "1", "MENU_CACHE_GET_VARS" => array(), "MENU_CACHE_TIME" => "3600", "MENU_CACHE_TYPE" => "A", "MENU_CACHE_USE_GROUPS" => "Y", "ROOT_MENU_TYPE" => "top", "USE_EXT" => "N"), false); ?> </header> <?php if ($APPLICATION->GetProperty('layout') && file_exists($_SERVER['DOCUMENT_ROOT'] . SITE_TEMPLATE_PATH . '/layouts/' . $APPLICATION->GetProperty('layout') . '/header.php')) { require 'layouts/' . $APPLICATION->GetProperty('layout') . '/header.php'; } else {
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } \Bitrix\Main\Page\Asset::getInstance()->addJs(SITE_TEMPLATE_PATH . "/js/swiper/swiper.jquery.min.js", true); \Bitrix\Main\Page\Asset::getInstance()->addJs(SITE_TEMPLATE_PATH . "/js/gallery.js", true); ?> <script type="text/javascript"> $(document).ready(function () { //initialize swiper when document ready var mySwiper = new Swiper ('.product-data-swiper-container', { pagination: '.swiper-pagination', nextButton: '.swiper-button-next', prevButton: '.swiper-button-prev', paginationClickable: true, slidesPerView: 5, spaceBetween: 20, // Responsive breakpoints breakpoints: { // when window width is <= 320px 320: { slidesPerView: 1, spaceBetweenSlides: 10 }, // when window width is <= 480px 480: { slidesPerView: 2, spaceBetweenSlides: 20 },
if (IntVal($arResult["ajax_comment"]) > 0) { $arResult["is_ajax_post"] = "Y"; $cache_id .= $arResult["ajax_comment"]; } if ($arParams["CACHE_TIME"] > 0 && $cache->InitCache($arParams["CACHE_TIME"], $cache_id, $cache_path)) { $Vars = $cache->GetVars(); $arResult = array_merge($Vars["arResult"], $arResult); if (!empty($arResult["Assets"])) { if (!empty($arResult["Assets"]["CSS"])) { foreach ($arResult["Assets"]["CSS"] as $cssFile) { \Bitrix\Main\Page\Asset::getInstance()->addCss($cssFile, true); } } if (!empty($arResult["Assets"]["JS"])) { foreach ($arResult["Assets"]["JS"] as $jsFile) { \Bitrix\Main\Page\Asset::getInstance()->addJs($jsFile, true); } } } CBitrixComponentTemplate::ApplyCachedData($Vars["templateCachedData"]); $cache->Output(); } else { if ($arParams["CACHE_TIME"] > 0) { $cache->StartDataCache($arParams["CACHE_TIME"], $cache_id, $cache_path); if (defined("BX_COMP_MANAGED_CACHE")) { $GLOBALS["CACHE_MANAGER"]->StartTagCache($cache_path); } } $arResult["Assets"] = array("CSS" => array(), "JS" => array()); $arResult["Images"] = array(); $arResult["CommentsResult"] = array();
if (file_exists($f . "/lang/" . LANGUAGE_ID . "/" . $actId . ".js.php")) { include $f . "/lang/" . LANGUAGE_ID . "/" . $actId . ".js.php"; } global $JSMESS; foreach ($MESS as $k => $v) { $JSMESS[$k] = $v; } } foreach ($arResult['ACTIVITIES'] as $actId => $actProps) { $actPath = substr($actProps["PATH_TO_ACTIVITY"], strlen($_SERVER["DOCUMENT_ROOT"])); if (file_exists($actProps["PATH_TO_ACTIVITY"] . "/" . $actId . ".js")) { Asset::getInstance()->addJs($actPath . '/' . $actId . '.js'); GetJSLangMess($actProps["PATH_TO_ACTIVITY"], $actId); } if (file_exists($actProps["PATH_TO_ACTIVITY"] . "/" . $actId . ".css")) { Asset::getInstance()->addCss($actPath . '/' . $actId . '.css'); } if (file_exists($actProps["PATH_TO_ACTIVITY"] . "/icon.gif")) { $arResult['ACTIVITIES'][$actId]['ICON'] = $actPath . '/icon.gif'; } unset($arResult['ACTIVITIES'][$actId]['PATH_TO_ACTIVITY']); } ?> <script> var arAllActivities = <?php echo CUtil::PhpToJSObject($arResult['ACTIVITIES']); ?> ; var arAllActGroups = <?php echo CUtil::PhpToJSObject($arResult['ACTIVITY_GROUPS']); ?>
background: none repeat scroll 0 0 #FFFFFF; border-color: #87919C #959EA9 #9EA7B1; border-image: none; border-radius: 4px 4px 4px 4px; border-style: solid; border-width: 1px; box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.3), 0 2px 2px -1px rgba(180, 188, 191, 0.7) inset; color: #000000; display: inline-block; outline: medium none; vertical-align: middle; !important; } </style>'; Asset::getInstance()->addString($lheStyle); Asset::getInstance()->addJs("/bitrix/js/sale/pay_system.js"); \Bitrix\Sale\Delivery\Restrictions\Manager::getClassesList(); $instance = Application::getInstance(); $context = $instance->getContext(); $request = $context->getRequest(); $server = $context->getServer(); $documentRoot = Application::getDocumentRoot(); $id = (int) $request->get('ID'); if (CModule::IncludeModule("fileman")) { $bFilemanModuleInst = true; } $aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("SPSN_TAB_PAYSYS"), "ICON" => "sale", "TITLE" => GetMessage("SPSN_TAB_PAYSYS_DESCR"))); if ($id > 0 && $request->getRequestMethod() !== 'POST') { $aTabs[] = array("DIV" => "edit3", "TAB" => GetMessage("SPS_PAY_SYSTEM_RESTRICTION"), "ICON" => "sale", "TITLE" => GetMessage("SPS_PAY_SYSTEM_RESTRICTION_DESC")); } $tabControl = new CAdminTabControl("tabControl", $aTabs);
?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php IncludeTemplateLangFile(__FILE__); ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo LANGUAGE_ID; ?> " lang="<?php echo LANGUAGE_ID; ?> "> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /><?php $APPLICATION->ShowHead(); $asset = \Bitrix\Main\Page\Asset::getInstance(); $asset->addString('<link rel="stylesheet" type="text/css" media="print" href="' . SITE_TEMPLATE_PATH . '/print.css" />', false, \Bitrix\Main\Page\AssetLocation::AFTER_CSS); $asset->addString('<link rel="alternate stylesheet" type="text/css" media="screen,projection" href="' . SITE_TEMPLATE_PATH . '/print.css" title="print" />', false, \Bitrix\Main\Page\AssetLocation::AFTER_CSS); $asset->addString('<link rel="stylesheet" type="text/css" href="' . SITE_TEMPLATE_PATH . '/colors.css"/>', false, \Bitrix\Main\Page\AssetLocation::AFTER_CSS); $asset->addJs(SITE_TEMPLATE_PATH . '/script.js'); ?> <title><?php $APPLICATION->ShowTitle(); ?> </title> </head> <body class="<?php $APPLICATION->ShowProperty("BodyClass"); ?> "> <?php
<?php $module_id = "sale"; /** @global CMain $APPLICATION */ use Bitrix\Main; use Bitrix\Main\Loader; use Bitrix\Main\SiteTable; use Bitrix\Main\Config\Option; use Bitrix\Sale\SalesZone; use Bitrix\Sale; $SALE_RIGHT = $APPLICATION->GetGroupRight($module_id); if ($SALE_RIGHT >= "R") { IncludeModuleLangFile($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/options.php'); IncludeModuleLangFile(__FILE__); Main\Page\Asset::getInstance()->addJs('/bitrix/js/sale/options.js'); $APPLICATION->SetAdditionalCSS("/bitrix/themes/.default/sale.css"); Loader::includeModule('sale'); Loader::includeModule('currency'); $lpEnabled = CSaleLocation::isLocationProEnabled(); $lMigrated = CSaleLocation::isLocationProMigrated(); function checkAccountNumberValue($templateType, $number_data, $number_prefix) { $res = true; switch ($templateType) { case 'NUMBER': if (strlen($number_data) <= 0 || strlen($number_data) > 7 || !preg_match('/^[0-9]+$/', $number_data) || intval($number_data) < intval(COption::GetOptionString("sale", "account_number_data", ""))) { $res = false; } break; case 'PREFIX': if (strlen($number_prefix) <= 0 || strlen($number_prefix) > 7 || preg_match('/[^a-zA-Z0-9_-]/', $number_prefix)) {
?> <!DOCTYPE html> <html class="no-js" lang="en"> <head> <title><?php $APPLICATION->ShowTitle(); ?> </title> <meta name="viewport" content="width=device-width"> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> <?php \Bitrix\Main\Page\Asset::getInstance()->addCss(SITE_TEMPLATE_PATH . '/css/style.css'); \Bitrix\Main\Page\Asset::getInstance()->addCss(SITE_TEMPLATE_PATH . '/css/extra.css'); \Bitrix\Main\Page\Asset::getInstance()->addJs(SITE_TEMPLATE_PATH . '/js/main.js'); $APPLICATION->ShowHead(); ?> </head> <body> <?php $APPLICATION->ShowPanel(); ?> <div class="l-page"> <aside class="l-sidebar"> <div class="b-sidebar"> <div class="b-logo"><?php if ($curPage != '/') { ?> <a href="/" class="b-logo__link"><img src="<?php echo SITE_TEMPLATE_PATH;
<?php /** @global CMain $APPLICATION */ use Bitrix\Main; use Bitrix\Highloadblock as HL; require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php"; require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/iblock/prolog.php"; IncludeModuleLangFile(__FILE__); if (!Main\Loader::includeModule('catalog')) { die; } Main\Loader::includeModule('fileman'); Main\Page\Asset::getInstance()->addJs('/bitrix/js/catalog/tbl_edit.js'); $arJSDescription = array('js' => '/bitrix/js/iblock/sub_generator.js', 'css' => '/bitrix/panel/iblock/sub-generator.css', 'lang' => '/bitrix/modules/iblock/lang/' . LANGUAGE_ID . '/admin/iblock_subelement_generator.php'); CJSCore::RegisterExt('iblock_generator', $arJSDescription); CJSCore::Init(array('iblock_generator', 'file_input')); define('IB_SEG_ROW_PREFIX', 'IB_SEG_'); $subIBlockId = intval($_REQUEST["subIBlockId"]); $subPropValue = intval($_REQUEST["subPropValue"]); $subTmpId = intval($_REQUEST["subTmpId"]); $iBlockId = intval($_REQUEST["iBlockId"]); $findSection = intval($_REQUEST["findSection"]); $arSKUInfo = CCatalogSKU::GetInfoByOfferIBlock($subIBlockId); CUtil::decodeURIComponent($_POST['PRODUCT_NAME']); $parentProductName = trim($_POST['PRODUCT_NAME']); $useStoreControl = (string) Main\Config\Option::get('catalog', 'default_use_store_control') == 'Y'; if ($arSKUInfo == false) { ShowError("SKU error!"); } $APPLICATION->SetTitle(GetMessage("IB_SEG_MAIN_TITLE")); /**
//load order if (!empty($_REQUEST["ID"]) && intval($_REQUEST["ID"]) > 0) { $saleOrder = Bitrix\Sale\Order::load($_REQUEST["ID"]); } if ($saleOrder) { $allowedStatusesView = \Bitrix\Sale\OrderStatus::getStatusesUserCanDoOperations($USER->GetID(), array('view')); } if (!$saleOrder || !in_array($saleOrder->getField("STATUS_ID"), $allowedStatusesView)) { LocalRedirect("/bitrix/admin/sale_order.php?lang=" . LANGUAGE_ID . GetFilterParams("filter_", false)); } $ID = intval($_REQUEST["ID"]); /** @var Bitrix\Sale\Order $saleOrder */ Admin\OrderEdit::initCouponsData($saleOrder->getUserId(), $ID); CUtil::InitJSCore(); $APPLICATION->SetTitle(Loc::getMessage("SALE_OVIEW_TITLE", array("#ID#" => $saleOrder->getId(), "#NUM#" => strlen($saleOrder->getField('ACCOUNT_NUMBER')) > 0 ? $saleOrder->getField('ACCOUNT_NUMBER') : $saleOrder->getId(), "#DATE#" => $saleOrder->getDateInsert()->toString()))); \Bitrix\Main\Page\Asset::getInstance()->addJs("/bitrix/js/sale/admin/order_edit.js"); ob_start(); require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/admin/order_history.php"; $historyContent = ob_get_contents(); ob_end_clean(); require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php"; /* context menu */ $aMenu = array(); $aMenu[] = array("ICON" => "btn_list", "TEXT" => Loc::getMessage("SALE_OVIEW_TO_LIST"), "TITLE" => Loc::getMessage("SALE_OVIEW_TO_LIST_TITLE"), "LINK" => "/bitrix/admin/sale_order.php?lang=" . LANGUAGE_ID . GetFilterParams("filter_")); $aMenu[] = array("TEXT" => Loc::getMessage("SALE_OVIEW_TO_EDIT"), "TITLE" => Loc::getMessage("SALE_OVIEW_TO_EDIT_TITLE"), "LINK" => "/bitrix/admin/sale_order_edit.php?ID=" . $ID . "&lang=" . LANGUAGE_ID . GetFilterParams("filter_")); $arSysLangs = array(); $db_lang = CLangAdmin::GetList($b = "sort", $o = "asc", array("ACTIVE" => "Y")); while ($arLang = $db_lang->Fetch()) { $arSysLangs[] = $arLang["LID"]; } $arReports = array();
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); $APPLICATION->SetAdditionalCSS("/bitrix/components/bitrix/socialnetwork.log.ex/templates/.default/style.css"); $APPLICATION->SetAdditionalCSS("/bitrix/components/bitrix/socialnetwork.blog.blog/templates/.default/style.css"); \Bitrix\Main\Page\Asset::getInstance()->addJs("/bitrix/components/bitrix/main.post.list/templates/.default/scripts_for_form.js"); if (CModule::IncludeModule("im")) \Bitrix\Main\Page\Asset::getInstance()->addJs("/bitrix/components/bitrix/main.post.list/templates/.default/scripts_for_im.js"); CUtil::InitJSCore(array("date", "fx", "popup", "viewer")); $ajax_page = CUtil::JSEscape($APPLICATION->GetCurPageParam("", array("logajax", "bxajaxid", "logout"))); $todayString = ConvertTimeStamp(); ob_start(); ?> <!--RCRD_#FULL_ID#--> <a id="com#ID#" name="com#ID#" bx-mpl-full-id="#FULL_ID#"></a> <div id="record-#FULL_ID#" class="feed-com-block-outer"> #BEFORE_RECORD# <div class="feed-com-block feed-com-block-#NEW# blog-comment-user-#AUTHOR_ID# sonet-log-comment-createdby-#AUTHOR_ID# feed-com-block-#APPROVED##CLASSNAME#"> #BEFORE_HEADER# <div class="feed-com-avatar feed-com-avatar-#AUTHOR_AVATAR_IS#"><img src="#AUTHOR_AVATAR#" width="<?php echo $arParams["AVATAR_SIZE"]; ?> " height="<?php echo $arParams["AVATAR_SIZE"]; ?> " /></div> <!--/noindex--> <span class="feed-com-name feed-author-name feed-author-name-#AUTHOR_ID#">#AUTHOR_NAME#</span> <a class="feed-com-name #AUTHOR_EXTRANET_STYLE# feed-author-name feed-author-name-#AUTHOR_ID#" id="bpc_#FULL_ID#" href="#AUTHOR_URL#">#AUTHOR_NAME#</a> <script type="text/javascript">BX.tooltip('#AUTHOR_ID#', "bpc_#FULL_ID#", '<?php echo $ajax_page; ?>