$newsFilter = Array(); $newsFilter["IBLOCK_ID"] = 3; $newsFilter["ACTIVE"] = "Y"; $res = CIBlockElement::GetList(Array("SORT"=>"ASC", "PROPERTY_PRIORITY"=>"ASC"), $newsFilter, Array("DATE_ACTIVE_FROM")); while($ar_fields = $res->GetNext()) { echo $ar_fields["DATE_ACTIVE_FROM"].": ".$ar_fields["CNT"]."<br>"; }
$arOrder = array( "DATE_ACTIVE_FROM"=>"ASC" ); $arFilter = array( "IBLOCK_ID" = 3, "ACTIVE" = "Y" ); $arSelectFields = array( "ID", "NAME" "DATE_ACTIVE_FROM" ); =CIBlockElement::GetList($arOrder, $arFilter, null, $arNavStartParams, $arSelectFields);