<div class="caption">Фильтр поиска</div>
<form class="zf searchFilter" name="<?echo $arResult["FILTER_NAME"]?>" action="<?echo $arResult["FORM_ACTION"]?>" method="get">
<div class="formLine">
<?foreach($arResult["arrProp"] as $PROP):?>
<label for="Cntrl_Filter[<?=$PROP['CODE']?>]"><?=$PROP['NAME']?></label>
<select id="Cntrl_Filter[<?=$PROP['CODE']?>]" name="Filter[<?=$PROP['CODE']?>]" class="zf inpText">
<option selected="selected" value="">Все</option>
<?foreach($PROP["VALUE_LIST"] as $key=>$TYPE):?>
<option <? if($_GET["Filter"][$PROP['CODE']]==$key) echo 'selected';?> value="<?=$key?>"><?=$TYPE?></option>
<?endforeach?>
</select>
<?endforeach?>
</div>
<div class="formLine gray">
<div class="left">
<label for="Cntrl_Filter[SquareInd]" class="w100">Площадь</label>
<select id="Cntrl_Filter[SquareInd]" name="Filter[SquareInd]" class="zf w136 inpText" onclick="return { oDependedOptions : { sName : 'Filter[TYPE]', aData : [['', ''], ['3', /^$|^0{1}[1-4]$/], [/^[124]$/, /^$|^1{1}[0-4]$/]] } }">
<option value="">Все</option>
<option value="01"<?php if($_GET["Filter"]["SquareInd"]==01) echo 'selected';?>>0 - 500</option>
<option value="02"<?php if($_GET["Filter"]["SquareInd"]==02) echo 'selected';?>>500 - 1 000</option>
<option value="03"<?php if($_GET["Filter"]["SquareInd"]==03) echo 'selected';?>>1 000 - 10 000</option>
<option value="04"<?php if($_GET["Filter"]["SquareInd"]==04) echo 'selected';?>>10 000 +</option>
<option value="10"<?php if($_GET["Filter"]["SquareInd"]==10) echo 'selected';?>>0 - 50</option>
<option value="11"<?php if($_GET["Filter"]["SquareInd"]==11) echo 'selected';?>>50 - 100</option>
<option value="12"<?php if($_GET["Filter"]["SquareInd"]==12) echo 'selected';?>>100 -150</option>
<option value="13"<?php if($_GET["Filter"]["SquareInd"]==13) echo 'selected';?>>150 - 200</option>
<option value="14"<?php if($_GET["Filter"]["SquareInd"]==14) echo 'selected';?>>200 +</option>
</select>
<label for="Cntrl_Filter[CostType]">Цена</label>
<select id="Cntrl_Filter[CostType]" name="Filter[CostType]" class="zf inpText mr0">
<option value="1"<?php if($_GET["Filter"]["CostType"]==01) echo 'selected';?>>полная</option>
<option value="2"<?php if($_GET["Filter"]["CostType"]==02) echo 'selected';?>>за 1м²</option>
</select>
<select id="Cntrl_Filter[CostInd]" name="Filter[CostInd]" class="zf inpText mr0 w130" onclick="return { oDependedOptions : { aFrom: [ { sName : 'Filter[TYPE]', aData : [['', ''], [/^[124]$/, /^$|^0{1}[1-6]$/], [/^[124]$/, /^$|^2{1}[0-4]$/], ['3', /^$|^0{1}[1-6]$/], ['3', /^$|^1{1}[0-5]$/]] }, { sName : 'Filter[CostType]', aData : [[/^[1-2]$/, ''], ['1', /^$|^0{1}[1-6]$/], ['2', /^$|^2{1}[0-4]$/], ['2', /^$|^1{1}[0-5]$/]]} ] } }">
<option value="">Все</option>
<option value="01"<?php if($_GET["Filter"]["CostInd"]==01) echo 'selected';?>>0 - 50 000</option>
<option value="02"<?php if($_GET["Filter"]["CostInd"]==02) echo 'selected';?>>50 000 - 100 000</option>
<option value="03"<?php if($_GET["Filter"]["CostInd"]==03) echo 'selected';?> |