Цитата |
---|
$arFilter = array("IBLOCK_TYPE" => $arParams["IBLOCK_TYPE"], "IBLOCK_ID" => $arParams["IBLOCK_ID"], "CREATED_BY" => $USER->GetID());
$rsElement = CIBLockElement::GetList(array(), $arFilter); бла-бла-бла..... |
Код |
---|
<? global $USER; $usid = $USER->GetID(); $arFilter = Array("IBLOCK_ID"=>30, "ACTIVE_DATE"=>"Y", "CREATED_BY"=>$usid; "ACTIVE"=>"Y"); $res = CIBlockElement::GetList(Array(), $arFilter, false, Array("SORT"=>"ASC")); while($ar_res = $res->GetNext()) { ?> <?=$ar_res[NAME];?> <? } ?> |