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
| Ты профессиональный верстальщик на CSS. | |
| У меня проект на CMS 1С-Битрикс и версткой на Bootstrap 3. | |
| У меня есть страница Бренда, которую необходимо перевести на стили bootstrap. | |
| В комментариях указаны примечания по верстке. | |
| Убрать пустые муссорыне теги, например `<span style="color: #4367ae;"> </span>` | |
| ``` | |
| <strong>Продукция RENHOTEC используется в проектах, где критически важны:</strong> | |
| <ul> | |
| <li>надёжность соединения</li> |
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
| from bs4 import BeautifulSoup | |
| import urllib.request, base64, urllib.error | |
| lgn = 'Login' # логин | |
| psw = 'Password_123456' # пароль | |
| id_credit = '86220838' # номер заявки | |
| url_api = 'https://my.pochtabank.ru/dbo/poscreditservice/posLead/status/' | |
| url = url_api + id_credit |
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
| <? | |
| $arFieldsSklad = Array( | |
| "PRODUCT_ID" => $PRODUCT_ID, | |
| "STORE_ID" => 1, | |
| "AMOUNT" => 10, | |
| ); | |
| CCatalogStoreProduct::Add($arFieldsSklad); |
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
| <!-- | |
| По мотивам https://dev.1c-bitrix.ru/community/blogs/howto/336.php добавил только папку local | |
| 2017 год | |
| --> | |
| <html> | |
| <head><title>Создание ссылок на папки bitrix и upload</title></head> | |
| <body> | |
| <? | |
| error_reporting(E_ALL & ~E_NOTICE); | |
| @ini_set("display_errors",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
| <? | |
| require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); | |
| $APPLICATION->SetTitle("AJAX"); | |
| /* подключаем библиотеку */ | |
| CJSCore::Init(array('ajax')); |
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
| <? | |
| $utmSearch = urldecode($_GET['utm_content']); // utm_content - меняем на метку в которой может быть название товара | |
| if($utmSearch) { | |
| if (CModule::IncludeModule('search')) { | |
| $obSearch = new CSearch; | |
| $obSearch->Search(array(//при желании, фильтр можете еще сузить, см.документацию | |
| 'QUERY' => $utmSearch, | |
| 'SITE_ID' => SITE_ID, | |
| 'MODULE_ID' => 'iblock', |
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
| print(etree.tostring(root, encoding="utf-8", pretty_print=True).decode('utf-8')) |
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
| //Dynamically update/set a sub attribute of a Collection in Meteor | |
| var $set = {}; | |
| $set['profile.' + fieldname] = name; | |
| Meteor.users.update({_id:Meteor.user()._id}, { $set: $set }); | |
| /* ECMAScript 6 */ | |
| Meteor.users.update( |
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
| Router.route('/post/:_id', { | |
| // Имя маршрута | |
| // Используется для упрощения поиска шаблона, если конечно он не указан | |
| // в опциях шаблона. Если name не объявлено то роутер ищет имя основываясь | |
| // на пути '/post/:_id' | |
| name: 'post.show', | |
| // Поддержка устаревшей версии | |
| path: '/post/:_id', |
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
| < template > | |
| {{#each}} | |
| {{../price}} | |
| {{/each}} | |
| < template > | |
| // in js | |
| Template.parentData().price |
NewerOlder