Your IP : 18.222.91.184


Current Path : /home/bitrix/ext_www/dev.ballu.in.ua/dealers/
Upload File :
Current File : /home/bitrix/ext_www/dev.ballu.in.ua/dealers/index.php

<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetPageProperty("title", "Официальные дилеры компании Ballu");
$APPLICATION->SetTitle("Дилеры");
$APPLICATION->SetPageProperty("description", "Официальные дилеры компании Ballu готовы вам помочь всегда. Познакомить вас с нашими продуктами, обеспечить вас запчастями.");
?>

<!--service-->
<article class="service">
    <div class="page-title globe-bg">
        <!--breadcrumbs-->
        <?$APPLICATION->IncludeComponent("bitrix:breadcrumb","",Array(
                "START_FROM" => "0", 
                "PATH" => "", 
                "SITE_ID" => "s1" 
            )
        );?>
        <!-- end of breadcrumbs-->

        <div class="title">
            <div class="inner"><h1>Купить в вашем городе</h1></div>
        </div>
    </div>
    
    <div class="page-content">

        <div class="inner">
            <section class="services-list no-border">
                <div class="tabs">
                    <div class="section-title section-title-low section_dealers">
                        <h2>Дилеры Ballu</h2>
                        <div class="tabs-head">
                            <div class="tabs-head__item tabs-head__item_list active">
                                <span>Показать списком</span>
                            </div>
                            <div class="tabs-head__item tabs-head__item_map">
                                 <span>Показать на карте</span>
                            </div>
                        </div>
                    </div>
                
                    <?
                        $arFilter = array();
                        if(isset($_REQUEST['category'])&& intval($_REQUEST['category'])>0)
                        {
                            $arFilter['PROPERTY_EQUIPMENT'] = (int) $_REQUEST['category'];
                        }
						
                        if(isset($_REQUEST['city']) && intval($_REQUEST['city'])>0)
                        {
                            $arFilter['PROPERTY_CITY'] = (int) $_REQUEST['city'];
                        }
                        elseif(isset($_REQUEST['country'])&& intval($_REQUEST['country'])>0)
    					{
                            $res = CIBlockElement::GetList(
                            		Array("SORT"=>"ASC"),
    								Array("IBLOCK_ID" => 5, "ACTIVE" => "Y", 'PROPERTY_COUNTRY' => (int) $_REQUEST['country']),
    								false,
    								false,
    								Array('ID')
    						);

                            while ($ar_fields = $res->GetNext())
    						{
                                $arFilter['PROPERTY_CITY'][] = $ar_fields['ID'];
                            }
                        }
                    ?>

                    <?$APPLICATION->IncludeComponent(
                        "bitrix:news.list", 
                        "dealers", 
                        array(
                            "ACTIVE_DATE_FORMAT" => "d.m.Y",
                            "ADD_SECTIONS_CHAIN" => "N",
                            "AJAX_MODE" => "N",
                            "AJAX_OPTION_ADDITIONAL" => "",
                            "AJAX_OPTION_HISTORY" => "N",
                            "AJAX_OPTION_JUMP" => "N",
                            "AJAX_OPTION_STYLE" => "N",
                            "CACHE_FILTER" => "N",
                            "CACHE_GROUPS" => "Y",
                            "CACHE_TIME" => "36000000",
                            "CACHE_TYPE" => "A",
                            "CHECK_DATES" => "Y",
                            "DETAIL_URL" => "",
                            "DISPLAY_BOTTOM_PAGER" => "Y",
                            "DISPLAY_DATE" => "Y",
                            "DISPLAY_NAME" => "Y",
                            "DISPLAY_PICTURE" => "Y",
                            "DISPLAY_PREVIEW_TEXT" => "Y",
                            "DISPLAY_TOP_PAGER" => "N",
                            "FIELD_CODE" => array(
                                0 => "",
                                1 => "",
                            ),
                            "FILTER_NAME" => "arFilter",
                            "HIDE_LINK_WHEN_NO_DETAIL" => "N",
                            "IBLOCK_ID" => "29",
                            "IBLOCK_TYPE" => "services",
                            "INCLUDE_IBLOCK_INTO_CHAIN" => "N",
                            "INCLUDE_SUBSECTIONS" => "N",
                            "MESSAGE_404" => "",
                            "NEWS_COUNT" => ($_REQUEST["type"]=='json' && (int) $_REQUEST["country"] && (int) $_REQUEST["city"])?100500:15,
                            "PAGER_BASE_LINK_ENABLE" => "N",
                            "PAGER_DESC_NUMBERING" => "N",
                            "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
                            "PAGER_SHOW_ALL" => "N",
                            "PAGER_SHOW_ALWAYS" => "N",
                            "PAGER_TEMPLATE" => ".default",
                            "PAGER_TITLE" => "Новости",
                            "PARENT_SECTION" => "",
                            "PARENT_SECTION_CODE" => "",
                            "PREVIEW_TRUNCATE_LEN" => "",
                            "PROPERTY_CODE" => array(
                                0 => "SITE",
                                1 => "PHONE",
                            ),
                            "SET_BROWSER_TITLE" => "N",
                            "SET_LAST_MODIFIED" => "N",
                            "SET_META_DESCRIPTION" => "N",
                            "SET_META_KEYWORDS" => "N",
                            "SET_STATUS_404" => "N",
                            "SET_TITLE" => "N",
                            "SHOW_404" => "N",
                            "SORT_BY1" => "NAME",
                            "SORT_BY2" => "SORT",
                            "SORT_ORDER1" => "ASC",
                            "SORT_ORDER2" => "ASC",
                            "STRICT_SECTION_CHECK" => "N",
                            "COMPONENT_TEMPLATE" => "services",
                            "DEALERS" => "Y",
    						"TYPE" => $_REQUEST["type"],
    						"FORMAT" => $_REQUEST["format"],
                        ),
                        false
                    );?>

                </div>

            </section>
        </div>
    </div>
</article>
<!-- end of service-->

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