Warning: Undefined array key "बहिः गच्छतु" in /home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line 136

Warning: Undefined array key "aksi" in /home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line 140

Warning: Undefined array key "नामपत्र" in /home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line 159

Warning: Undefined array key "नामपत्र" in /home/httpd/vhosts/puntogroup.ru/httpdocs/collections/plint/index.php(1) : eval()'d code on line 181
Current File : /home/httpd/vhosts/puntogroup.ru/httpdocs/collections/dallas/index.php
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetPageProperty("title", "Коллекция Dallas: стильная городская мебель от Punto Group");
$APPLICATION->SetPageProperty("description", "Коллекция Dallas от Punto Group — стильная городская мебель для парков и террас, сочетающая функциональность и дизайн. Создайте свои уютные пространства!");
$APPLICATION->SetTitle("Коллекция Dallas");
$APPLICATION->SetPageProperty("HIDE_LEFT_BLOCK","Y"); 
// Обработка параметров сортировки и отображения
$sortField = $_GET['sort'] ?? 'SORT';
$sortOrder = $_GET['order'] ?? 'ASC';
$displayType = $_GET['display'] ?? 'block';

// Определение допустимых полей для сортировки
$allowedSortFields = ['SHOWS', 'NAME', 'PRICE', 'SORT'];
if (!in_array($sortField, $allowedSortFields)) {
    $sortField = 'SORT';
}

// Определение направления сортировки
$sortOrder = strtoupper($sortOrder) === 'DESC' ? 'DESC' : 'ASC';

// Определение классов для отображения
$displayClass = 'block_list';
if ($displayType === 'list') {
    $displayClass = 'list_list';
} elseif ($displayType === 'table') {
    $displayClass = 'table_list';
}

// Определение активного класса для кнопок сортировки
$sortShowsClass = $sortField === 'SHOWS' ? 'active' : '';
$sortNameClass = $sortField === 'NAME' ? 'active' : '';
$sortPriceClass = $sortField === 'PRICE' ? 'active' : '';

// Определение направления стрелки для сортировки
$sortArrow = $sortOrder === 'ASC' ? 'asc' : 'desc';
?><div class="top_inner_block_wrapper maxwidth-theme">
    <div class="page-top-wrapper grey v3">
        <?php
        $collections = [
		 	'/collections/dallas/' => [
                'images' => [
					'/upload/images/1-dallas.jpg',
					'/upload/images/2-dallas.jpg',
					'/upload/images/3-dallas.jpg',
					'/upload/images/4-dallas.jpg',
					'/upload/images/5-dallas.jpg',
					'/upload/images/6-dallas.jpg',
					'/upload/images/7-dallas.jpg',
					'/upload/images/8-dallas.jpg'
				],
				'alt' => 'Коллекция EDO'
			]
		];


		// Определяем текущую коллекцию
        $currentPath = null;
        foreach ($collections as $path => $data) {
            if (CSite::InDir($path)) {
                $currentPath = $path;
                break;
            }
        }
        
        if ($currentPath):
            $currentCollection = $collections[$currentPath];
            $imgSrc1 = $currentCollection['images'][0];
            $imgSrc2 = $currentCollection['images'][1];
            $imgSrc3 = $currentCollection['images'][2];
            $imgSrc4 = $currentCollection['images'][3];
		 	$imgSrc5 = $currentCollection['images'][4];
            $imgSrc6 = $currentCollection['images'][5];
            $imgSrc7 = $currentCollection['images'][6];
            $imgSrc8 = $currentCollection['images'][7];
            $altImg = $currentCollection['alt'];
        ?>
        <div class="maxwidth-theme" style="background-color: #f9f9f9;">
            <div class="carousel carousel--gallery js-carousel">
                <div class="carousel__inner js-carousel-wrapper">
                    <button class="carousel__control carousel__control--prev js-carousel-control" data-control="previous">
                        <span class="sr-only">Предыдущее</span>
                    </button>
                    <button class="carousel__control carousel__control--next js-carousel-control" data-control="next">
                        <span class="sr-only">Следующий</span>
                    </button>
                    <div class="flickity flickity--main flickity--nowrap js-flickity-main">
                        <div class="carousel__item">
                            <div class="carousel__item__inner">
                                <a href="<?=$imgSrc1?>" data-fancybox="gallery" class="carousel-zoom">
                                    <img src="<?=$imgSrc1?>" alt="<?=$altImg?> - вид 1" class="lazyloaded">
                                </a>
                            </div>
                        </div>
                        <div class="carousel__item">
                            <div class="carousel__item__inner">
                                <a href="<?=$imgSrc2?>" data-fancybox="gallery" class="carousel-zoom">
                                    <img src="<?=$imgSrc2?>" alt="<?=$altImg?> - вид 2" class="lazyloaded">
                                </a>
                            </div>
                        </div>
                        <div class="carousel__item">
                            <div class="carousel__item__inner">
                                <a href="<?=$imgSrc3?>" data-fancybox="gallery" class="carousel-zoom">
                                    <img src="<?=$imgSrc3?>" alt="<?=$altImg?> - вид 3" class="lazyloaded">
                                </a>
                            </div>
                        </div>
						<div class="carousel__item">
                            <div class="carousel__item__inner">
                                <a href="<?=$imgSrc4?>" data-fancybox="gallery" class="carousel-zoom">
                                    <img src="<?=$imgSrc4?>" alt="<?=$altImg?> - вид 4" class="lazyloaded">
                                </a>
                            </div>
                        </div>
						<div class="carousel__item">
                            <div class="carousel__item__inner">
                                <a href="<?=$imgSrc1?>" data-fancybox="gallery" class="carousel-zoom">
                                    <img src="<?=$imgSrc5?>" alt="<?=$altImg?> - вид 5" class="lazyloaded">
                                </a>
                            </div>
                        </div>
                        <div class="carousel__item">
                            <div class="carousel__item__inner">
                                <a href="<?=$imgSrc2?>" data-fancybox="gallery" class="carousel-zoom">
                                    <img src="<?=$imgSrc6?>" alt="<?=$altImg?> - вид 6" class="lazyloaded">
                                </a>
                            </div>
                        </div>
                        <div class="carousel__item">
                            <div class="carousel__item__inner">
                                <a href="<?=$imgSrc3?>" data-fancybox="gallery" class="carousel-zoom">
                                    <img src="<?=$imgSrc7?>" alt="<?=$altImg?> - вид 7" class="lazyloaded">
                                </a>
                            </div>
                        </div>
                        <div class="carousel__item">
                            <div class="carousel__item__inner">
                                <a href="<?=$imgSrc4?>" data-fancybox="gallery" class="carousel-zoom">
                                    <img src="<?=$imgSrc8?>" alt="<?=$altImg?> - вид 8" class="lazyloaded">
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="carousel__thumbnails">
                    <div class="carousel__thumbnails-inner">
                        <div class="carousel__thumbnail active" data-index="0">
                            <img src="<?=$imgSrc1?>" alt="Миниатюра 1">
                        </div>
                        <div class="carousel__thumbnail" data-index="1">
                            <img src="<?=$imgSrc2?>" alt="Миниатюра 2">
                        </div>
                        <div class="carousel__thumbnail" data-index="2">
                            <img src="<?=$imgSrc3?>" alt="Миниатюра 3">
                        </div>
                        <div class="carousel__thumbnail" data-index="3">
                            <img src="<?=$imgSrc4?>" alt="Миниатюра 4">
                        </div>
						<div class="carousel__thumbnail" data-index="4">
                            <img src="<?=$imgSrc5?>" alt="Миниатюра 5">
                        </div>
						<div class="carousel__thumbnail active" data-index="5">
                            <img src="<?=$imgSrc6?>" alt="Миниатюра 6">
                        </div>
                        <div class="carousel__thumbnail" data-index="6">
                            <img src="<?=$imgSrc7?>" alt="Миниатюра 7">
                        </div>
                        <div class="carousel__thumbnail" data-index="7">
                            <img src="<?=$imgSrc8?>" alt="Миниатюра 8">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php endif; ?>
    </div>
</div>

<?php
if (!CModule::IncludeModule("iblock")) {
    die("Модуль iblock не подключен");
}

$iblockId = 19;
$sectionId = 535;

$section = CIBlockSection::GetList(
    array(),
    array(
        "IBLOCK_ID" => $iblockId,
        "ID" => $sectionId,
        "ACTIVE" => "Y"
    ),
    false,
    array("ID", "NAME", "DESCRIPTION")
)->Fetch();

if ($section) {
    if ($section['DESCRIPTION']) {
        echo "<div class='section-description'>" . $section['DESCRIPTION'] . "</div>";
    }
?>

<!-- Список товаров -->
<?php
$arFilter = array(
    "IBLOCK_ID" => $iblockId,
    "SECTION_ID" => $sectionId,
    "ACTIVE" => "Y"
);

$arSelect = array(
    "ID",
    "NAME",
    "DETAIL_PAGE_URL",
    "PREVIEW_PICTURE",
    "PROPERTY_ARTICLE",
    "PROPERTY_PRICE",
    "PROPERTY_SHOW_PRICE",
    "SHOW_COUNTER" // Добавляем счетчик просмотров для сортировки по популярности
);

$rsElements = CIBlockElement::GetList(
    array($sortField => $sortOrder),
    $arFilter,
    false,
    false,
    $arSelect
);

if($rsElements->SelectedRowsCount() >= 1) { ?>
	<div class="catalog">
		<div class="sort_header view_block" style="display: flex; flex-direction:row-reverse; align-items: center; justify-content: space-between;">
			<!--noindex-->
				<div class="sort_display">	
					<a rel="nofollow" href="/collections/dallas/?sort=<?= $sortField ?>&order=<?= $sortOrder ?>&display=block" class="sort_btn block <?= $displayType === 'block' ? 'current' : '' ?>"><i title="плиткой"></i></a>
                        <a rel="nofollow" href="/collections/dallas/?sort=<?= $sortField ?>&order=<?= $sortOrder ?>&display=list" class="sort_btn list <?= $displayType === 'list' ? 'current' : '' ?>"><i title="списком"></i></a>
                        <a rel="nofollow" href="/collections/dallas/?sort=<?= $sortField ?>&order=<?= $sortOrder ?>&display=table" class="sort_btn table <?= $displayType === 'table' ? 'current' : '' ?>"><i title="таблицей"></i></a>
				</div>

						
				<a target="_blank" href="https://disk.yandex.com.am/d/Bwn254K4qDY2xA/%D0%A3%D0%BB%D0%B8%D1%87%D0%BD%D0%B0%D1%8F%20%D0%BC%D0%B5%D0%B1%D0%B5%D0%BB%D1%8C/%D0%A3%D1%80%D0%BD%D1%8B/%D0%9A%D0%BE%D0%BB%D0%BB%D0%B5%D0%BA%D1%86%D0%B8%D1%8F%20Dallas" class="btn btn-default download-3d-flow">
					Скачать всю коллекцию в 3D
				</a>

				<div class="sort_filter">
					<a href="/collections/dallas/?sort=SHOWS&order=<?= $sortField === 'SHOWS' && $sortOrder === 'ASC' ? 'desc' : 'asc' ?>&display=<?= $displayType ?>" class="sort_btn <?= $sortShowsClass ?> <?= $sortField === 'SHOWS' ? $sortArrow : '' ?> SHOWS" rel="nofollow">
						<i class="icon" title="По популярности"></i><span>По популярности</span><i class="arr icons_fa"></i>
					</a>
					<a href="/collections/dallas/?sort=NAME&order=<?= $sortField === 'NAME' && $sortOrder === 'ASC' ? 'desc' : 'asc' ?>&display=<?= $displayType ?>" class="sort_btn <?= $sortNameClass ?> <?= $sortField === 'NAME' ? $sortArrow : '' ?> NAME" rel="nofollow">
						<i class="icon" title="По алфавиту"></i><span>По алфавиту</span><i class="arr icons_fa"></i>
					</a>
					<a href="/collections/dallas/?sort=PRICE&order=<?= $sortField === 'PRICE' && $sortOrder === 'ASC' ? 'desc' : 'asc' ?>&display=<?= $displayType ?>" class="sort_btn <?= $sortPriceClass ?> <?= $sortField === 'PRICE' ? $sortArrow : '' ?> PRICE" rel="nofollow">
						<i class="icon" title="По цене"></i><span>По цене</span><i class="arr icons_fa"></i>
					</a>
				</div>
				
			<!--/noindex-->
		</div>
	   <div class="ajax_load <?= $displayType ?>">
            <div class="top_wrapper row margin0">
                <div class="catalog_block items <?= $displayClass ?>">
                    <?php
                    $col = 4; // 4 колонки по умолчанию
                    while ($arElement = $rsElements->GetNext()):
                        $showPrice = $arElement["PROPERTY_SHOW_PRICE_VALUE"] !== "0";
                        $itemId = 'item_' . $arElement["ID"];
                        $article = $arElement["PROPERTY_ARTICLE_VALUE"];
                        $isPatent = false; // Замените на реальную проверку патента
                    ?>
                    <div class="item_block col-4 col-md-3 col-sm-6 col-xs-6">
                        <div class="catalog_item_wrapp item">
                            <div class="basket_props_block" id="<?=$itemId?>_basket_div" style="display: none;"></div>
                            <div class="catalog_item main_item_wrapper item_wrap" id="<?=$itemId?>">
                                <div>
                                    <div class="image_wrapper_block">
                                        <div class="stickers">
        
                                            <div><div class="sticker_novinka">Новинка</div></div>
        
                                            <?php if ($isPatent): ?>
                                                <div><div class="sticker_patent">Патент</div></div>
                                            <?php endif; ?>
                                        </div>
                                        <div class="like_icons">
                                            <div class="wish_item_button">
                                                <a href="/3d-models/" class="model-icon" title="Перейти на страницу 3D-модели" target="_blank" rel="nofollow noreferrer noopener">
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#33cccc" class="bi bi-cloud-arrow-down-fill" viewBox="0 0 16 16">
                                                        <path d="M8 2a5.53 5.53 0 0 0-3.594 1.342c-.766.66-1.321 1.52-1.464 2.383C1.266 6.095 0 7.555 0 9.318 0 11.366 1.708 13 3.781 13h8.906C14.502 13 16 11.57 16 9.773c0-1.636-1.242-2.969-2.834-3.194C12.923 3.999 10.69 2 8 2m2.354 6.854-2 2a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L7.5 9.293V5.5a.5.5 0 0 1 1 0v3.793l1.146-1.147a.5.5 0 0 1 .708.708"></path>
                                                    </svg>
                                                </a>
                                                <span title="Отложить" class="wish_item to" data-item="<?=$arElement['ID']?>" data-iblock="<?=$iblockId?>"><i></i></span>
                                                <span title="В отложенных" class="wish_item in added" style="display: none;" data-item="<?=$arElement['ID']?>" data-iblock="<?=$iblockId?>"><i></i></span>
                                            </div>
                                        </div>
                                        <a href="<?=$arElement['DETAIL_PAGE_URL']?>" class="thumb shine" id="<?=$itemId?>_pict">
                                            <?php
                                            if ($arElement['PREVIEW_PICTURE']) {
                                                $img = CFile::ResizeImageGet(
                                                    $arElement['PREVIEW_PICTURE'], 
                                                    array("width" => 300, "height" => 300), 
                                                    BX_RESIZE_IMAGE_PROPORTIONAL, 
                                                    true
                                                );
                                                echo '<img src="' . $img["src"] . '" alt="' . $arElement['NAME'] . '" title="' . $arElement['NAME'] . '">';
                                            } else {
                                                echo '<img src="' . SITE_TEMPLATE_PATH . '/images/no_photo_medium.png" alt="' . $arElement['NAME'] . '" title="' . $arElement['NAME'] . '">';
                                            }
                                            ?>
                                        </a>
                                        <div class="fast_view_block" data-event="jqm" data-param-form_id="fast_view" data-param-iblock_id="<?=$iblockId?>" data-param-id="<?=$arElement['ID']?>" data-param-item_href="<?=urlencode($arElement['DETAIL_PAGE_URL'])?>" data-name="fast_view">Быстрый просмотр</div>
                                    </div>
                                    <div class="item_info TYPE_1">
                                        <div class="item-title">
                                            <a href="<?=$arElement['DETAIL_PAGE_URL']?>" class="dark_link"><span><?=$arElement['NAME']?></span></a>
                                        </div>
                                        <div class="rating">
                                            <div class="iblock-vote small">
                                                <table class="table-no-border">
                                                    <tbody><tr>
                                                        <td><div class="star-active star-voted"></div></td>
                                                        <td><div class="star-active star-voted"></div></td>
                                                        <td><div class="star-active star-voted"></div></td>
                                                        <td><div class="star-active star-voted"></div></td>
                                                        <td><div class="star-active star-voted"></div></td>
                                                    </tr>
                                                </tbody></table>
                                            </div>
                                        </div>
                                        <div class="sa_block">
                                            <div class="article_block" data-name="Артикул" data-value="<?=$article?>">
                                                <div><?=$article?></div>
                                            </div>
                                            <div class="button_block wide">
                                                <a href="<?=$arElement['DETAIL_PAGE_URL']?>" class="button btn_buy" title="Подробнее">
                                                    <span>Подробнее</span>
                                                </a>
                                            </div>
                                        </div>
                                        <div class="cost prices clearfix" <?=!$showPrice ? 'style="display:none;"' : ''?>>
                                            <?php if ($arElement["PROPERTY_PRICE_VALUE"]): ?>
                                            <div class="price">
                                                <?=number_format($arElement["PROPERTY_PRICE_VALUE"], 0, '', ' ')?> руб.
                                            </div>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                    <div class="footer_button inner_content js_offers__<?=$arElement['ID']?>">
                                        <div class="sku_props"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php endwhile; ?>
                </div>
            </div>
        </div>    
    </div>

    
<?php } else { ?>
    <div class="no_goods catalog_block_view">
        <div class="no_products">
            <div class="wrap_text_empty">
                Нет товаров в этой категории
            </div>
        </div>
    </div>
<?php } ?>
<style>
.model-icon {
    height: 30px !important;
    line-height: 1 !important;
    min-width: auto !important;
    width: 30px !important;
    display: flex !important;
    border: 1px solid transparent;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    box-sizing: border-box;
    background-color: transparent;
    margin: 0 0 10px !important;
}

/* Стили для разных типов отображения */
.block_list .item_block {
    float: left;
    width: 25%;
    padding: 10px;
    box-sizing: border-box;
}

.list_list .item_block {
    float: none;
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
}

.list_list .catalog_item_wrapp {
    display: flex;
    width: 100%;
}

.list_list .image_wrapper_block {
    width: 150px;
    margin-right: 20px;
}

.list_list .item_info {
    flex: 1;
}

.table_list {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.table_list .item_block {
    display: table-row;
}

.table_list .catalog_item_wrapp {
    display: table-cell;
    padding: 10px;
    border: 1px solid #eee;
}
</style>
<?php
} // if ($section)

require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");