Код |
---|
$arFilter = array( "SITE_ID" => SITE_ID, "QUERY" => $arResult["REQUEST"]["~QUERY"], "TAGS" => $arResult["REQUEST"]["~TAGS"], ); if(strlen($where)>0) { list($module_id, $part_id) = explode("_",$where,2); $arFilter["MODULE_ID"] = $module_id; if(strlen($part_id)>0) $arFilter["PARAM1"] = $part_id; } if($arParams["CHECK_DATES"]) $arFilter["CHECK_DATES"]="Y"; $obSearch = new CSearch(); $obSearch->Search($arFilter, $aSort, $exFILTER); $arResult["ERROR_CODE"] = $obSearch->errorno; $arResult["ERROR_TEXT"] = $obSearch->error; $arResult["SEARCH"] = array(); if($obSearch->errorno==0) { $obSearch->NavStart($arParams["PAGE_RESULT_COUNT"], false); |
Код |
---|
$arFilter = array( "SITE_ID" => SITE_ID, "QUERY" => $arResult["REQUEST"]["~QUERY"], "TAGS" => $arResult["REQUEST"]["~TAGS"], "><DATE_CHANGE" => Array(date($DB->DateFormatToPHP(CLang::GetDateFormat("FULL")), mktime(0,0,0,1,1,2003)), date($DB->DateFormatToPHP(CLang::GetDateFormat("FULL")), mktime(0,0,0,1,1,2004))) ); |