$arSelect = Array("ID","NAME","UF_TYPE_TABLE");
if ($_REQUEST["SECTION_ID"] )
{
$arFilter = Array("SECTION_ID"=>$_REQUEST["SECTION_ID"], "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y");
$res = CIBlockElement::GetList(Array(), $arFilter, false, false,$arSelect);
while($ob = $res->GetNextElement())
{
$arFields = $ob->GetFields();
echo $arFields["UF_TYPE_TABLE"]."<br>";
echo $arFields["NAME"]."<br>";
}
|