Код |
---|
$arSelect = Array("ID", "NAME","IBLOCK_SECTION_ID", "DATE_ACTIVE_FROM"); $arFilter = Array("IBLOCK_ID"=>14, "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y","INCLUDE_SUBSECTIONS" => "Y"); $res = CIBlockElement::GetList(Array(), $arFilter, false, false, $arSelect); while($ob = $res->GetNextElement()) { $arFields = $ob->GetFields(); echo $arFields['IBLOCK_SECTION_ID']."<br />"; echo $arFields['NAME']."<br />"; } |