не работает.
[CODE]
$arSelect = Array("ID", "NAME", "CREATED_BY", "PROPERTY_DATAFROM", "PROPERTY_DATATO", "PROPERTY_DISCIPLINA", "PROPERTY_ETAP", "PROPERTY_VIDSOREVNOV", "PROPERTY_MESTOPROV");
$arFilter = Array("IBLOCK_ID"=>IntVal($CALENDAR_ID), "<=DATE_ACTIVE_FROM"=>"$date", ">=DATE_ACTIVE_TO"=>"$date" );
$res = CIBlockElement::GetList(Array(), $arFilter, false, false, $arSelect);
while($ob = $res->GetNextElement())
{
echo "Категории: ";
$arProperty = $ob->GetProperties();
print_r($arProperty["KATEGOR"]["VALUE"]);
}
[/CODE]
[CODE]
$arSelect = Array("ID", "NAME", "CREATED_BY", "PROPERTY_DATAFROM", "PROPERTY_DATATO", "PROPERTY_DISCIPLINA", "PROPERTY_ETAP", "PROPERTY_VIDSOREVNOV", "PROPERTY_MESTOPROV");
$arFilter = Array("IBLOCK_ID"=>IntVal($CALENDAR_ID), "<=DATE_ACTIVE_FROM"=>"$date", ">=DATE_ACTIVE_TO"=>"$date" );
$res = CIBlockElement::GetList(Array(), $arFilter, false, false, $arSelect);
while($ob = $res->GetNextElement())
{
echo "Категории: ";
$arProperty = $ob->GetProperties();
print_r($arProperty["KATEGOR"]["VALUE"]);
}
[/CODE]