<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<form name="<?echo $arResult["FILTER_NAME"]."_form"?>" action="<?echo $arResult["FORM_ACTION"]?>" method="get">
<?foreach($arResult["ITEMS"] as $arItem):
if(array_key_exists("HIDDEN", $arItem)):
echo $arItem["INPUT"];
endif;
endforeach;?>
<?if(!array_key_exists("HIDDEN", $arItem)):?>
<?//СЕРИИ?>
<p align="right">фильтровать по: <select id="acpro_inp5" class="inputselect" size="1" name="<?echo $arResult["FILTER_NAME"]."_pf[".$arItem["CODE"]."]"?>">
<option id="acpro_inp5" selected disabled>серии</option>
<?
CModule::IncludeModule("iblock");
$arSort = array ("NAME"=>"asc");
$arSelect = array(
"ID",
"NAME",
"CODE",
"IBLOCK_ID",
"IBLOCK_SECTION_ID",
"PROPERTY_*",
);
$arrFilter = array(
"IBLOCK_ID" => 16,
"PROPERTY_CODE" => Array(),
);
$rsElements = CIBlockElement::GetList($arSort, $arrFilter, false, false, $arSelect);
while($obElement = $rsElements->GetNextElement())
{
$arItem = $obElement->GetFields();
?>
<option id="acpro_inp5" value="
<?
if ($arItem == $_REQUEST["arrFilter_pf"]["SERIE"] && !$_REQUEST["del_filter"])
{
$stmp=' selected';
echo '<option value="'.$_REQUEST["arrFilter_pf"]["SERIE"].'"'.$stmp.'>'.$_REQUEST["arrFilter_pf"]["SERIE"].'</option>';
}
?>
"><?=$arItem["NAME"]?></option>
<?}?>
</select>
<?endif?>
<input type="submit" class="red_btn fright" name="set_filter" value=" Искать " /><input type="hidden" name="set_filter" value="Y" />
<input type="submit" class="red_btn fright" name="del_filter" value=" Сбросить " />
</form>
<br>
<div class="hr_all"></div> |