Доброго времени суток! Помогите понять, что я упускаю, не фильтрует умный фильтр
| Код |
|---|
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<?$this->SetViewTarget("right_area");?>
<form name="<?echo $arResult["FILTER_NAME"]."_form"?>" action="<?echo $arResult["FORM_ACTION"]?>" method="get" id="search_main2">
<div class="filtren">
<ul>
<div class="form_row2">
<div class="width_type1 marg_right2">
<label><?=$arResult["ITEMS"]['1']['NAME']?>:</label>
<select onkeyup="smartFilter.keyup(this)" class="custom_select" style="display: none;">
<? foreach($arResult['ITEMS'][1]['VALUES'] as $Pod){
$idPod[] = $Pod['VALUE'];
}?>
<? $RowCount = count($idPod)?>
<? for($x=0;$x<$RowCount;$x++){?>
<option onkeyup="smartFilter.keyup(this)"><?=$idPod[$x]?></option>
<? ;}?>
</select>
</div>
<div class="width_type4">
<label><?=$arResult["ITEMS"]['2']['NAME']?>:</label>
<select class="custom_select2" style="display: none;">
<? foreach($arResult['ITEMS'][2]['VALUES'] as $Pod2){
$idPod2[] = $Pod2['VALUE'];
}?>
<? $RowCount2 = count($idPod2)?>
<? for($x=0;$x<$RowCoun2t;$x++){?>
<option><?=$idPod2[$x]?></option>
<? ;}?>
</select>
</div>
<div class="room_number spec_marg">
<span class="for_room"><?=$arResult["ITEMS"]['3']['NAME']?>:</span>
<? foreach($arResult['ITEMS'][3]['VALUES'] as $Pod3){
$idPod3[] = $Pod3['VALUE'];
}?>
<? $RowCount3 = count($idPod3)?>
<? for($x=0;$x<$RowCount3;$x++){?>
<a href="#"><?=$idPod3[$x]?></a>
<? ;}?>
</div>
<div class="width_type1">
<label><?=$arResult["ITEMS"]['4']['NAME']?>:</label>
<select class="custom_select2" style="display: none;">
<? foreach($arResult['ITEMS'][4]['VALUES'] as $Pod4){
$idPod4[] = $Pod4['VALUE'];
}?>
<? $RowCount4 = count($idPod4)?>
<? for($x=0;$x<$RowCount4;$x++){?>
<option><?=$idPod4[$x]?></option>
<? ;}?>
</select>
</div>
<div class="defis fortop"></div>
</div>
</ul>
<div class="right_buttons">
<input type="submit" class="right_search" name="set_filter" value="<?=GetMessage("CT_BCSF_SET_FILTER")?>" />
</div>
<!--<input type="submit" id="del_filter" name="del_filter" value="<?=GetMessage("CT_BCSF_DEL_FILTER")?>" />-->
<div class="modef" id="modef" <?if(!isset($arResult["ELEMENT_COUNT"])) echo 'style="display:none"';?>>
<?echo GetMessage("CT_BCSF_FILTER_COUNT", array("#ELEMENT_COUNT#" => '<span id="modef_num">'.intval($arResult["ELEMENT_COUNT"]).'</span>'));?>
<a href="<?echo $arResult["FILTER_URL"]?>" class="showchild"><?echo GetMessage("CT_BCSF_FILTER_SHOW")?></a>
<!--<span class="ecke"></span>-->
</div>
</div>
</form>
<?$this->EndViewTarget("right_area");?>
<script>
var smartFilter = new JCSmartFilter('<?echo CUtil::JSEscape($arResult["FORM_ACTION"])?>');
</script>
|