<?
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
$show_price = isset($arParams['SHOW_PRICE']) ? $arParams['SHOW_PRICE'] : 'Y';
$is_prices = $show_price === 'Y';
$price_min = 100;
$price_max = 10000000;
$size_min = 20;
$size_max = 1000;
$height_options = array(
'' => 'Количество этажей',
'1' => '1 этаж',
'2' => '2 этажа'
);
$price_from = get_request_int('price_from', $price_min);
$price_to = get_request_int('price_to', $price_max);
$size_from = get_request_int('size_from', $size_min);
$size_to = get_request_int('size_to', $size_max);
$height = get_request_option('height', $height_options);
$height_key = $height['KEY'];
$height_text = $height['VALUE'];
set_list_filter('arrFilter', array(
'>=PROPERTY_PRICE' => $price_from,
'<=PROPERTY_PRICE' => $price_to,
'>=PROPERTY_SIZE' => $size_from,
'<=PROPERTY_SIZE' => $size_to,
'PROPERTY_HEIGHT' => $height_key
));
$price_from = isset($price_from) ? $price_from : $price_min;
$price_to = isset($price_to) ? $price_to : $price_max;
$size_from = isset($size_from) ? $size_from : $size_min;
$size_to = isset($size_to) ? $size_to : $size_max;
$height = isset($height) ? $height : get_first_pair($height_options);
$height_key = $height['KEY'];
$height_text = $height['VALUE'];
?>