<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); //print_r($arResult);?>
<fo rm name="<?echo $arResult["FILTER_NAME"]."_form"?>" action="/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"];
if (strlen($_REQUEST["del_filter"])>0)
$arrPFV = array();
$i = 0;
$items = array();
foreach($arResult["arrProp"] as $arProp)
{
$item = $arResult["ITEMS"][$i];
$item["arrProp"] = $arProp;
if($arProp["PROPERTY_TYPE"] == "Y")
$item["INPUT"] = 'от <input type="text" onk eypress="return check_key(event)" name="'.$arResult['FILTER_NAME'].'_pf['.$arProp["CODE"].'][LEFT]" value="'.$arrPFV[$arProp["CODE"]]["LEFT"].'" />'.
' до <input type="text" onk eypress="return check_key(event)" name="'.$arResult['FILTER_NAME'].'_pf['.$arProp["CODE"].'][RIGHT]" value="'.$arrPFV[$arProp["CODE"]]["LEFT"].'" />';
$i++;
$items[$arProp["CODE"]] = $item;
}
?>
<table class="flat">
<tr>
<td scope="col">Метро</td>
<td scope="col"> </td>
</tr>
<tr>
<td class="inp_filter" ><?=$items["_metro"]["INPUT"]?></td>
<td> </td>
</tr>
</table>
<table class="flat">
<tr>
<td colspan="2"></td>
<td> </td>
<td colspan="2" align="right"><input type="s ubmit" name="set_filter" value="<?=GetMessage("IBLOCK_SET_FILTER")?>" class="bluebttn"/>
<input type="hidden" name="set_filter" value="Y" />
<input type="s ubmit" name="del_filter" value="<?=GetMessage("IBLOCK_DEL_FILTER")?>" class="bluebttn_right"/></td>
</tr>
</table>
</form>
|