$db_props = CIBlockElement::GetProperty($BLOCK_ID, $ELEMENT_ID, array("sort" => "asc"), Array("CODE" => "YEAR"));
if($ar_props = $db_props->Fetch())
$property_enums = CIBlockPropertyEnum::GetList(Array("DEF"=>"DESC", "SORT"=>"ASC"), Array("IBLOCK_ID"=>, "ID" =>
$ar_props["VALUE"]));
while($enum_fields = $property_enums->GetNext()){
$m2[0] .= "<option value = '$enum_fields[VALUE]'> $enum_fields[VALUE]</option>";
}
|