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
| Array | |
| ( | |
| [CREATED_BY] => 41 | |
| [IBLOCK_ID] => 23 | |
| [PROPERTY_VALUES] => Array | |
| ( | |
| [COMPANY] => 484 | |
| [PROBLEMS] => Array | |
| ( | |
| [0] => 7 |
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
| for (value of this.IDS) { | |
| $('#' + value).barrating({ | |
| theme: 'fontawesome-stars', | |
| showSelectedRating: false, | |
| initialRating: this, | |
| onSelect: function (value, text, event){ | |
| var obj = this.$elem[0]; | |
| if (value == 5) { | |
| var companyID = $(obj).data('companyid'); | |
| _this.allCorrect(value, companyID) |
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
| Array | |
| ( | |
| [ID] => 477 | |
| [IBLOCK_ID] => 24 | |
| [WF_PARENT_ELEMENT_ID] => | |
| [WF_STATUS_ID] => 1 | |
| [PREVIEW_PICTURE] => | |
| [DETAIL_PICTURE] => | |
| [EXTERNAL_ID] => 477 | |
| [CODE] => o2wqynSU6Fqs |
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
| Array | |
| ( | |
| [CODE] => 7701233065 | |
| [MODIFIED_BY] => 5 | |
| [NAME] => ООО Для примера | |
| [PROPERTY_VALUES] => Array | |
| ( | |
| [88] => ООО Для примера | |
| [89] => ООО Для примера | |
| [91] => 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
| EventManager::getInstance()->addEventHandler( | |
| 'sale', | |
| 'OnSaleBasketSaved', | |
| 'clearSessionParameters' | |
| ); | |
| /** | |
| * @param \Bitrix\Main\Event $event | |
| * @return \Bitrix\Main\EventResult|\Main\EventResult | |
| * 14553 |
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
| CIBlockElement::SetPropertyValuesEx($ELEMENT_ID, $arParams["IBLOCK_ID"], array( | |
| "vote_count" => array( | |
| "VALUE" => $arProperties["vote_count"]["VALUE"], | |
| "DESCRIPTION" => $arProperties["vote_count"]["DESCRIPTION"], | |
| ), | |
| "vote_sum" => array( | |
| "VALUE" => $arProperties["vote_sum"]["VALUE"], | |
| "DESCRIPTION" => $arProperties["vote_sum"]["DESCRIPTION"], | |
| ), | |
| "rating" => 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
| var url = new URL(location.href); | |
| url.searchParams.delete('LG'); | |
| url.searchParams.set('LG', 'YES'); | |
| location.href = url.href; |
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
| $method = '/add.new.ajax'; | |
| $params = ['field' => 'value']; | |
| $queryUrl = 'https://mycoolsite.ru' . $method; | |
| $queryData = http_build_query($params); | |
| $curl = curl_init(); | |
| curl_setopt_array($curl, array( | |
| CURLOPT_SSL_VERIFYPEER => false, | |
| CURLOPT_POST => 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
| use Bitrix\Main\Application; | |
| use Bitrix\Main\Web\Cookie; | |
| if(Application::getInstance()->getContext()->getRequest()->getCookie('FROMBUSINESS')){ | |
| $cookie = new Cookie("FROMBUSINESS", ''); | |
| Application::getInstance()->getContext()->getResponse()->addCookie($cookie); | |
| } |
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
| $arFieldsToInsert = ['SITE' => $newLid, 'TOSITE' => $newLid, 'URLFROM' => $arRedirect['URLFROM'], 'URLTO' => $arRedirect['URLTO']]; | |
| $arInsert = $DB->PrepareInsert("v_redirect", $arFieldsToInsert); | |
| $strSql = "INSERT INTO v_redirect(".$arInsert[0].") VALUES(".$arInsert[1].")"; | |
| $id = $DB->Query($strSql, false, "File: ".__FILE__."<br>Line: ".__LINE__); | |
| if ($id) { | |
| echo "Редирект с " . $arRedirect['URLFROM'] . " на " . $arRedirect['URLTO'] . " успешно скопирован <br>"; | |
| } |
NewerOlder