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
<? | |
echo 'Hello'; | |
?> |
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
$(document).ready(function() { | |
$('#search_top').keyup(function(){ | |
BX.ajax.insertToNode('/local/ajax/search.php?s='+$('#search_top').val(), 'search_cnt'); | |
}); | |
}); |
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/modules/main/include/prolog_before.php"); // --- подключаем пролог ядра | |
CModule::IncludeModule("iblock"); // --- подключаем модуль инфоблоков | |
$search = $_REQUEST["s"]; // --- входящий запрос | |
/* --- поиск и определение количества по всей базе --- */ | |
/* --- товары --- */ |
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
<? if($arTv): | |
$GLOBALS["arrFilter"]["ID"] = $arTv; // фильтр | |
?> | |
<div class="search-popup-name">Товары (<? echo sizeof($arTv); ?>)</div> | |
<? | |
$APPLICATION->IncludeComponent( | |
"bitrix:catalog.section", | |
"tovar", | |
array("FILTER_NAME" => "arrFilter" ), | |
false |
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 getData($reqL, $reqP, $reqUrl, $reqData=array(), $reqType="GET", $jsonDec="Y") | |
{ | |
if(empty($reqL) || empty($reqP) || empty($reqUrl)) #-------проверка наличия обязательных переменных | |
{ | |
$response = "false"; | |
} else { | |
$data_string = json_encode($reqData); #-------перевод массива параметров в json | |
$ch = curl_init($reqUrl);#-------открываем соединение |
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
$pData = array( | |
"ID" => "123", | |
"amount" => "15000", | |
"period" => "2018-06-20", | |
"creditproduct" => "ДО ЗАРПЛАТЫ", | |
"last_name" => "Фамилия", | |
"first_name" => "Имя", | |
"middle_name" => "Отчество", | |
"phone" => "79112345678", | |
); |
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
$pdf = getData($login, $pasw, $servar_base."/hs/dealinpdf/".$deal_id, array(), "GET", "N"); | |
#--- сохраним на сайте договор pdf | |
if($pdf) | |
{ | |
$file_pdf = $_SERVER["DOCUMENT_ROOT"]."/upload/".$file_name.".pdf"; | |
file_put_contents($file_pdf, $pdf); | |
} |
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
$arrElem['ID'] = $id_el; #--------- id товара | |
$arrElem['NAME'] = $name_el; #--------- название товара | |
$arrElem['QUANTITY'] = $q_el; #--------- колличество | |
$arrProps = array( #--------- массив свойств сохраняемых в корзине (id свойства и значение) | |
'ID_PROP"=>"VALUE_PROP', | |
'ID_PROP2"=>"VALUE_PROP2' | |
); | |
$res = BFCatalog::BasketAdd($arrElem, $arrProps); |
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
BFCatalog::HLIdGetList( | |
int ID, | |
array arFilter = Array(), | |
array arSelectFields = Array(), | |
array arOrder = Array(), | |
string limit, | |
string offset, | |
); |
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
$id_hl = 20; | |
$id_elem = 'bhjdbj5d'; | |
$arrList = BFCatalog::HLIdGetList( | |
$id_hl, | |
array('UF_XML_ID'=>$id_elem), | |
array('UF_NAME', 'UF_TEXT') | |
); | |
echo '<pre>'; |
OlderNewer