<?php
if(CModule::IncludeModule("iblock"))
{
$arSelect = Array("ID", "DATE_ACTIVE_FROM", "PROPERTY_T_N_MAX", "PROPERTY_T_D_MAX", "PROPERTY_T_D_MIN", "PROPERTY_T_N_MIN", "PROPERTY_OSADKI");
$arFilter = Array(
"IBLOCK_ID"=>32,
"ACTIVE_DATE"=>"Y",
">=DATE_ACTIVE_FROM"=>date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,date("m"),date("d"),date("Y"))),
"<DATE_ACTIVE_FROM"=>date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,date("m"),date("d")+1,date("Y"))),
"ACTIVE"=>"Y"
);
$arSort = Array("active_from"=>"desc");
$res = CIBlockElement::GetList($arSort, $arFilter, false, false, $arSelect);
$ob = $res->GetNextElement();
if ($ob){
$arFields = $ob->GetFields();
$arProps = $ob->GetProperties();}
}
?>
<?php echo
$arFields["PROPERTY_OSADKI_PROPERTY_ID"];
?><?php echo
$arFields["PROPERTY_OSADKI_VALUE"];
?>
|