Код |
---|
$propbyid = CIBlockElement::GetProperty($res["IBLOCK_ID"] ,$res["ID"], Array(), Array(), Array()); //получаем свойства $activity = Array(); while($arIBlockElementProp = $propbyid -> Fetch()): if($arIBlockElementProp["CODE"]=="activity") $activity[]=$arIBlockElementProp["VALUE"]; else $$arIBlockElementProp["CODE"] = $arIBlockElementProp["VALUE"]; endwhile; |