if(CModule::IncludeModule("iblock"))
{
$BID = 5;
$arFilter = Array('IBLOCK_ID'=>$BID, 'ACTIVE'=>'Y', "PARENT.UF_ONFRONT"=>1, );
$db_list = CIBlockSection::GetList(Array("SORT"=>"ASC"), $arFilter, false, array ("*", "UF_*"));
while($ar_result = $db_list->GetNext())
{
echo $ar_result['NAME']."<br />";
}
} |