$rsSection = CIBlockSection::GetList(array('sort'=>'asc'),array("IBLOCK_ID"=>37,"ACTIVE"=>"Y"));
while ($arSection = $rsSection->GetNext()){
$rsElements = CIBlockElement::GetList(array("NAME"=>"ASC"),array("IBLOCK_ID"=>37,"SECTION_ID"=>$arSection['ID']));
while ($arElement = $rsElements->GetNextElement()){
......
}
}
|