This file contains 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
<?$rsResult = CIBlockSection::GetList(array("SORT" => "ASC"), array("IBLOCK_ID" => $arParams["IBLOCK_ID"], "ID" => $arResult['SECTION']['ID']), false, $arSelect = array("UF_*")); | |
while ($arResult = $rsResult -> GetNext()) | |
{?> | |
<?//echo '<pre>'; print_r($arResult); echo '<pre>';?> | |
<?}?> |
This file contains 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
global $USER; | |
if($USER->isAdmin()){ | |
echo "<pre>"; | |
print_r($arResult); | |
echo "</pre>"; | |
} |
This file contains 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
<IfModule mod_gzip.c> | |
mod_gzip_on Yes | |
mod_gzip_dechunk Yes | |
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$ | |
mod_gzip_item_include handler ^cgi-script$ | |
mod_gzip_item_include mime ^text/.* | |
mod_gzip_item_include mime ^application/x-javascript.* | |
mod_gzip_item_exclude mime ^image/.* | |
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* | |
</IfModule> |
This file contains 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
delete from b_event where DATE_INSERT < '2018-05-23 00:00:01' |
This file contains 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
/?AUTH_FORM=Y&TYPE=AUTH&USER_LOGIN=login&USER_PASSWORD=password |
This file contains 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
<?php | |
use Bitrix\Main\Context; | |
require_once($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php"); | |
$request = Context::getCurrent()->getRequest(); | |
global $APPLICATION; | |
$io = explode(" ", $request[data][io]); |
This file contains 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
<? | |
$content = file_get_contents('include/phone.php'); | |
$content = preg_replace('![^0-9]+!', '', $content); | |
?> | |
<?if(!$_SESSION['SESS_INCLUDE_AREAS']):?> | |
<a href="tel:<?=$content1?>"> | |
<? $APPLICATION->IncludeFile(SITE_DIR.'include/phone.php')?> | |
</a> | |
<?else:?> | |
<? $APPLICATION->IncludeFile(SITE_DIR.'include/phone.php')?> |
This file contains 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
<div class="quantity"> | |
<input type="number" value="1" min="1" class="qu"> | |
</div> | |
<a href="javascript:void(0);" id="<?=$arResult[ID];?>" class="buy btn btn--white"><span>Купить</span></a> | |
<script> | |
$(document).ready(function(){ | |
$('<div class="quantity-nav"><div class="quantity-button quantity-up">+</div><div class="quantity-button quantity-down">-</div></div>').insertAfter('.quantity input'); | |
$('.quantity').each(function() { | |
var spinner = jQuery(this), | |
input = spinner.find('input[type="number"]'), |
This file contains 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
Реализация достаточно не хитрая в цикле, который выводит или собирает в массив элементы, для последующего вывода в шаблоне, необходимо добавить следующий код: | |
//получение ссылок - редактирования и удаления элемента | |
$arButtons = CIBlock::GetPanelButtons( | |
$arItem["IBLOCK_ID"], | |
$arItem["ID"], | |
0, | |
array("SECTION_BUTTONS"=>false, "SESSID"=>false) | |
); | |
$arItem["EDIT_LINK"] = $arButtons["edit"]["edit_element"]["ACTION_URL"]; |
This file contains 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(isset($_FILES)) { | |
$ids = array(); | |
foreach($_FILES as $key=>$file) { | |
$file_params = array( | |
'name'=>$file['name'], | |
'size'=>$file['size'], | |
'tmp_name'=>$file['tmp_name'], | |
"type" => "", | |
"old_file" => "", | |
"del" => "", |
OlderNewer