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
<?CModule::IncludeModule('socialservices'); | |
use Bitrix\Socialservices; | |
$propertyValue = "7736050003"; | |
$client = new Socialservices\Properties\Client(); | |
$result = $client->getByInn($propertyValue); | |
echo '<pre>', print_r($result, 1), '</pre>'; |
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
<? | |
file_put_contents('123.txt', print_r($data, true), FILE_APPEND); |
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
<?//epilog | |
\Bitrix\Main\Page\Asset::getInstance()->addString('<link rel="canonical" href="https://site.ru'.$templateData['CANONICAL_PAGE_URL']. '" />'); | |
//detail template | |
$templateData['CANONICAL_PAGE_URL'] = $arResult['CANONICAL_PAGE_URL']; |
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
<? | |
CModule::IncludeModule('crm'); | |
//Контакт | |
$entity = new CCrmContact(false); | |
$address = ''; | |
if($_REQUEST['user']['city']){ | |
$address .= 'г. '.$_REQUEST['user']['city'].' '; | |
} | |
if($_REQUEST['user']['street']){ |
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 type="text/javascript"> | |
function hideNotZastroy(){ | |
console.log('click'); | |
$('#crm-crm-additional-uf-crm-1537536664-open_UF_CRM_1537536664-blocks .crm-block-cont-contact-info span:not(:contains("Застройщик"))').parent('span').parent('span').css("display", "none"); | |
$('#crm-crm-uf-crm-1537536664-uf-crm-1537536664-open_UF_CRM_1537536664-blocks .crm-block-cont-contact-info span:not(:contains("Застройщик"))').parent('span').parent('span').css("display", "none"); | |
} | |
var ids_zhk; | |
$(document).ready(function() { | |
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
<? | |
CModule::IncludeModule('bizproc'); | |
CBPDocument::StartWorkflow( | |
99, | |
array("crm","CCrmDocumentDeal", 'DEAL_'.$deal), | |
array(), | |
$arErrorsTmp | |
); | |
CBPDocument::AutoStartWorkflows( |
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(doStaf) { | |
app.doStaf = function() { | |
// здесь выводим все аргументы, с которыми был вызван app.doStaf() | |
console.log('app.doStaf args', arguments); | |
return doStaf.apply(this, arguments); | |
}; | |
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 (\Bitrix\B24Connector\Connection::isExist()) | |
{ | |
if ($client = \Bitrix\Socialservices\ApClient::init()) | |
{ | |
$result = $client->call('crm.dealcategory.list', array( | |
'filter' => array( | |
'IS_LOCKED' => 'N' | |
), | |
'order' => array( |
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 OnBeforeProductAdd($ID, $arFields){ | |
$arFields['ID'] = $ID; | |
if($_SESSION['NO_ADD_TP']){ | |
unset($_SESSION['NO_ADD_TP']); | |
return true; | |
} |
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
<? | |
//component_epilog | |
ob_start();?> | |
наа что заменяем | |
<?$retrunStr = @ob_get_contents(); | |
ob_get_clean(); | |
echo str_replace('#MORE_PHOTO#', $retrunStr, $templateData["ALL_HTML"]); | |