<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
if(CModule::IncludeModule("iblock")){
$yvalue = 20;
//$arSelect = Array("ID", "NAME", "DATE_ACTIVE_FROM","PROPERTY_GENDER");
$arSelect = Array("ID", "NAME", "DATE_ACTIVE_FROM");
$arFilter = Array("IBLOCK_ID"=>IntVal($yvalue), "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y");
$res = CIBlockElement::GetList(Array(), $arFilter, false, Array("nPageSize"=>10), $arSelect);
while($ob = $res->GetNextElement()){
$arFields2 = $ob->GetProperty("MODEL");
print_r($arFields2);
$arFields3 = $ob->GetProperties();
print_r($arFields3["MODEL"]);
echo '<br>';
}
$res2 = CIBlockElement::GetProperty($yvalue, "7128", "sort", "asc", array("CODE" => "MODEL"));
if ($ob = $res->GetNext())
{
$VALUE = $ob['VALUE'];
print_r($VALUE);
}
}
?>
|