<?
$arFilter = Array(
"IBLOCK_ID"=>IntVal(11),
">DATE_ACTIVE_FROM"=>date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), time()),
"ACTIVE"=>"Y",
);
$res = CIBlockElement::GetList(Array("ID"=>"ASC", "PROPERTY_PRIORITY"=>"ASC"), $arFilter, Array("IBLOCK_SECTION_ID","NAME", "DATE_ACTIVE_FROM"));
while($ar_fields = $res->GetNext())
{
echo $ar_fields["DATE_ACTIVE_FROM"].": ".$ar_fields["NAME"]." ".$ar_fields["IBLOCK_SECTION_ID"]."<br>";
}
?> |