$start_date = date('d.m.Y', strtotime('last monday'));
$end_date = date('d.m.Y'); X
$arSelect = Array("ID");
$arFilter = Array("IBLOCK_ID"=>"16", ">=PROPERTY_DATE_FROM"=>ConvertDateTime($start_date, "YYYY-MM-DD")." 00:00:00",
"<PROPERTY_DATE_TO"=>ConvertDateTime($end_date, "YYYY-MM-DD")." 23:59:59", "ACTIVE"=>"Y");
$res = CIBlockElement::GetList(Array(), $arFilter, false, Array("nPageSize"=>20), $arSelect);
while($ob = $res->GetNextElement())
{
$arFields = $ob->GetFields();
/*print_r($arFields);*/
}
$GLOBALS['arrFilter'] = array("IBLOCK_ID"=>"14", "PROPERTY_PERIOD" => $arFields);
|