<?
$arSelect1 = Array ("ID");
if ($arResult["ID"]=="441" || $arResult["ID"]=="442"): {
$arFilter1 = Array("IBLOCK_ID"=>"10",
"ACTIVE"=>"Y"
);
};
elseif ($arResult["ID"]=="439"): {
$arFilter1 = Array("IBLOCK_ID"=>"10",
"PROPERTY_MATERIAL"=>"Металл",
"ACTIVE"=>"Y");
};
elseif ($arResult["ID"]=="440"): {
$arFilter1 = Array("IBLOCK_ID"=>"10",
"PROPERTY_DEPTH_S_VALUE"=>"3.2",
"ACTIVE"=>"Y");
};
endif;
$res = CIBlockElement::GetList(Array("SORT"=>"ASC"), $arFilter1, false, Array(), $arSelect1);
while($ob = $res->GetNextElement()) {
$arFields = $ob->GetFields();
$armaterials[]=$arFields["ID"];?>
|