<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); //print_r($arResult);?>
<fo rm name="<?echo $arResult["FILTER_NAME"]."_form"?>" action="<?=SITE_DIR?>kommercheskaya_nedvizhimost/index.php" method="get">
<?foreach($arResult["ITEMS"] as $arItem):
if(array_key_exists("HIDDEN", $arItem)):
echo $arItem["INPUT"];
endif;
endforeach;?>
<?
if (strlen($_REQUEST["set_filter"])>0)
$arrPFV = $_REQUEST[$arResult['FILTER_NAME']."_pf"];
elseif ($arParams["SAVE_IN_SESSION"])
$arrPFV = $_SESSION[$arResult['FILTER_NAME']."arrPFV"];
$i = 0;
$items = array();
foreach($arResult["arrProp"] as $arProp)
{
$item = $arResult["ITEMS"][$i];
$item["arrProp"] = $arProp;
if($arProp["PROPERTY_TYPE"] == "N")
$item["INPUT"] = 'от <input type="text" on keypress="return check_key(event)" name="'.$arResult['FILTER_NAME'].'_pf['.$arProp["CODE"].'][LEFT]" value="'.$arrPFV[$arProp["CODE"]]["LEFT"].'" />'.
' до <input type="text" on keypress="return check_key(event)" name="'.$arResult['FILTER_NAME'].'_pf['.$arProp["CODE"].'][RIGHT]" value="'.$arrPFV[$arProp["CODE"]]["RIGHT"].'" />';
$i++;
$items[$arProp["CODE"]] = $item;
}
?>
<table class="flat" alight="center">
<tr> <td>
<div id="783" alt="Калужско-Рижская">
<input type="checkbox" name="<?=$arResult['FILTER_NAME']?>_pf[_metro]" value="783"
<?if($arrPFV["_lin_metro"]==783):?>checked<?endif;?>/>
</div>
............и так далее......
</td></tr>
<tr>
<td colspan="2">
<input type="s ubmit" name="set_filter" value="НАЙТИ!" class="sendsubmit but-filter-gl act link"/>
</td></tr>
|