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
| <script> | |
| ymaps.ready(init); | |
| function init(){ | |
| // Создаем карту | |
| var map = new ymaps.Map("map", { | |
| center: [55, 37], // координаты центра карты, при загрузке | |
| zoom: 5 // коэффициент масштабирования | |
| }); |
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 readURL(input) { | |
| if (input.files && input.files[0]) { | |
| var reader = new FileReader(); | |
| reader.onload = function (e) { | |
| $('#blah').attr('src', e.target.result); | |
| } | |
| reader.readAsDataURL(input.files[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"); | |
| CModule::IncludeModule("iblock"); | |
| if($_SERVER["REQUEST_METHOD"] == "POST"){ | |
| $arResult = array( | |
| 'errors' => array(), | |
| 'email' => 'empty' | |
| ); | |
| $metro = trim($_POST['metro']); | |
| $login = trim($_POST['login']); |
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
| <?$bxajaxid = CAjax::GetComponentID($component->__name, $component->__template->__name);?> | |
| <?if($arResult["NAV_RESULT"]->nEndPage > 1 && $arResult["NAV_RESULT"]->NavPageNomer<$arResult["NAV_RESULT"]->nEndPage):?> | |
| <div id="btn_<?=$bxajaxid?>"> | |
| <a data-ajax-id="<?=$bxajaxid?>" href="javascript:void(0)" data-show-more="<?=$arResult["NAV_RESULT"]->NavNum?>" data-next-page="<?=($arResult["NAV_RESULT"]->NavPageNomer + 1)?>" data-max-page="<?=$arResult["NAV_RESULT"]->nEndPage?>">Показать еще комментарии</a> | |
| </div> | |
| <?endif?> | |
| $(document).on('click', '[data-show-more]', function(){ | |
| var btn = $(this); | |
| var page = btn.attr('data-next-page'); | |
| var id = btn.attr('data-show-more'); |
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
| <?$this->SetViewTarget('news_detail');?> | |
| <noindex><a rel="nofollow" class="h1-head fancy" href="/develop/change_cover_type.php"><?=$arDataFilter["NAME"]?></a></noindex> | |
| <?$this->EndViewTarget();?> | |
| <?$APPLICATION->ShowViewContent('news_detail');?> |
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
| <? | |
| $GLOBALS['_____578075656'] = array( | |
| base64_decode('R2V0QnlJRA=' . '='), | |
| base64_decode('R' . '2' . 'V' . '0QnlJRA=='), | |
| base64_decode('RmV0Y2' . 'g='), | |
| base64_decode('SW5jbHVkZU1v' . 'ZHVsZUxhbmd' . 'GaWxl'), | |
| base64_decode('SW5' . 'j' . 'bH' . 'VkZU1vZHVsZUxh' . 'bmd' . 'Ga' . 'Wxl'), | |
| base64_decode('S' . 'W5jbHVkZU' . '1vZHVsZ' . 'Uxh' . 'bmdGaWxl'), | |
| base64_decode('SW' . '5jb' . 'HV' . 'kZ' . 'U1vZHVsZ' . 'Uxhb' . 'mdGaWxl'), | |
| base64_decode('R2' . 'V' . '0T3B0a' . 'W' . '9uSW50'), |
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
| http://prntscr.com/c5xr10 | |
| Условие: #^/stati/([a-zA-Z0-9\-_]+)/$# | |
| Файл: /stati/detail.php | |
| Правило: ELEMENT_CODE=$1 |
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
| <?$this->SetViewTarget('search');?> | |
| <!--code--> | |
| <?$this->EndViewTarget();?> | |
| //Метод вывода участка кода | |
| <?$APPLICATION->ShowViewContent('search');?> | |
| //another example | |
| <?ob_start(); | |
| echo 'SomeText'; |
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
| <?$APPLICATION->IncludeComponent( | |
| "bitrix:catalog.section", | |
| "", | |
| Array( | |
| "TEMPLATE_THEME" => $arParams['TEMPLATE_THEME'], | |
| "PRODUCT_DISPLAY_MODE" => $arParams['PRODUCT_DISPLAY_MODE'], | |
| "ADD_PICT_PROP" => $arParams['ADD_PICT_PROP'], | |
| "LABEL_PROP" => $arParams['LABEL_PROP'], | |
| "OFFER_ADD_PICT_PROP" => $arParams['OFFER_ADD_PICT_PROP'], | |
| "OFFER_TREE_PROPS" => $arParams['OFFER_TREE_PROPS'], |
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
| $('.order').click(function(){ | |
| var ide = $(this).parent().find('input:hidden').val(); | |
| $.ajax({ | |
| type: "POST", | |
| data: 'action=ADD2BASKET&ajax_basket=Y&id='+ide, | |
| url: '/', | |
| success: function(data){ | |
| data = data.split('\'').join('\u0022'); | |
| var obj = JSON && JSON.parse(data) || $.parseJSON(data); | |
| if (obj.STATUS == 'OK'){ |