Код |
---|
<? global $USER; if ($USER->IsAuthorized()){ $res = CUser::GetList(($by="last_login"), ($order="desc")); if ($ar_fields = $res->GetNext()) { $last_date = $ar_fields["LAST_LOGIN"]; $arFilter = Array( ">DATE_CREATE" =>$last_date, "ACTIVE" =>"Y", "!PROPERTY_SRC" =>false ); $resCI = CIBlockElement::GetList(Array("SORT"=>"ASC", "PROPERTY_PRIORITY"=>"ASC"), $arFilter, Array("NAME")); while($ar_fields = $resCI->GetNext()) { echo $ar_fields["NAME"]."<hr>"; } } } ?> |