SetPageProperty("title", "Помогать просто"); $APPLICATION->SetPageProperty("NOT_SHOW_NAV_CHAIN", "Y"); $APPLICATION->SetTitle("Статьи"); if($_REQUEST['help_type_values']){ $arValues=explode(',', $_REQUEST['help_type_values']); $db_enum_list = CIBlockProperty::GetPropertyEnum("CATEGORY", Array(), Array("IBLOCK_ID"=>4)); while($ar_enum_list = $db_enum_list->GetNext()) { if(in_array($ar_enum_list['XML_ID'], $arValues)) $arSection[]=$ar_enum_list['VALUE']; } $GLOBALS['arrFilter']['PROPERTY_CATEGORY_VALUE'] = $arSection; $arFilter['PROPERTY_CATEGORY_VALUE']=$arSection; } if($_REQUEST['city'] && $_REQUEST['city']!='default'){ $GLOBALS['arrFilter']['PROPERTY_PLACE'] = $_REQUEST['city']; $arFilter['PROPERTY_PLACE']=$_REQUEST['city']; } if(intval($_REQUEST['count'])){ $count=intval($_REQUEST['count']); } else { $count=3; } $GLOBALS['arrFilter']['ACTIVE_DATE'] = 'Y'; $arFilter['ACTIVE_DATE'] = 'Y'; $GLOBALS['arrFilter']['ACTIVE'] = 'Y'; $arFilter['ACTIVE'] = 'Y'; $GLOBALS['arrFilter']['PROPERTY_CITY_ID'] = !empty($_REQUEST['city_id']) ? $_REQUEST['city_id'] : null; //var_dump($GLOBALS['arrFilter']['PROPERTY_CITY_ID']); //var_dump('city_id'); //var_dump($_REQUEST['city_id']); // $GLOBALS['arrFilter']["!PROPERTY_HELP_USER"]=false; ?>IncludeComponent( "bitrix:news.list", "projets_main", Array( "IBLOCK_TYPE" => "services", "IBLOCK_ID" => "4", "NEWS_COUNT" => $count, "SORT_BY1" => "ID", "SORT_ORDER1" => "DESC", "SORT_BY2" => "SORT", "SORT_ORDER2" => "ASC", "FILTER_NAME" => "arrFilter", "FIELD_CODE" => array(0=>"DATE_ACTIVE_TO",1=>"ACTIVE_DATE",2=>"ACTIVE",3=>"",), "PROPERTY_CODE" => array(0=>"PLACE",1=>"COUNT",2=>"ORGANIZATION",3=>"CURATOR",4=>"PHONE",5=>"EMAIL",6=>"CATEGORY",7=>"HELP_USER",8=>"",), "CHECK_DATES" => "N", "DETAIL_URL" => "", "AJAX_MODE" => "N", "AJAX_OPTION_JUMP" => "N", "AJAX_OPTION_STYLE" => "Y", "AJAX_OPTION_HISTORY" => "N", "CACHE_TYPE" => "A", "CACHE_TIME" => "36000000", "CACHE_FILTER" => "N", "CACHE_GROUPS" => "Y", "PREVIEW_TRUNCATE_LEN" => "", "ACTIVE_DATE_FORMAT" => "j M Y", "SET_STATUS_404" => "N", "SET_TITLE" => "N", "INCLUDE_IBLOCK_INTO_CHAIN" => "N", "ADD_SECTIONS_CHAIN" => "N", "HIDE_LINK_WHEN_NO_DETAIL" => "N", "PARENT_SECTION" => "", "PARENT_SECTION_CODE" => "", "INCLUDE_SUBSECTIONS" => "Y", "PAGER_TEMPLATE" => ".default", "DISPLAY_TOP_PAGER" => "N", "DISPLAY_BOTTOM_PAGER" => "Y", "PAGER_TITLE" => "Новости", "PAGER_SHOW_ALWAYS" => "N", "PAGER_DESC_NUMBERING" => "N", "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", "PAGER_SHOW_ALL" => "Y", "DISPLAY_DATE" => "N", "DISPLAY_NAME" => "Y", "DISPLAY_PICTURE" => "Y", "DISPLAY_PREVIEW_TEXT" => "Y", "AJAX_OPTION_ADDITIONAL" => "" ) );?>



IncludeComponent( "bitrix:news.list", "partners_main", Array( "COMPONENT_TEMPLATE" => "partners_main", "IBLOCK_TYPE" => "services", "IBLOCK_ID" => "8", "NEWS_COUNT" => "3", "SORT_BY1" => "ACTIVE_FROM", "SORT_ORDER1" => "DESC", "SORT_BY2" => "SORT", "SORT_ORDER2" => "ASC", "FILTER_NAME" => "arrFilter", "FIELD_CODE" => array(0=>"",1=>"",), "PROPERTY_CODE" => array(0=>"LINK",1=>"",), "CHECK_DATES" => "Y", "DETAIL_URL" => "", "AJAX_MODE" => "N", "AJAX_OPTION_JUMP" => "N", "AJAX_OPTION_STYLE" => "Y", "AJAX_OPTION_HISTORY" => "N", "AJAX_OPTION_ADDITIONAL" => "", "CACHE_TYPE" => "A", "CACHE_TIME" => "36000000", "CACHE_FILTER" => "N", "CACHE_GROUPS" => "Y", "PREVIEW_TRUNCATE_LEN" => "", "ACTIVE_DATE_FORMAT" => "d.m.Y", "SET_TITLE" => "Y", "SET_BROWSER_TITLE" => "Y", "SET_META_KEYWORDS" => "Y", "SET_META_DESCRIPTION" => "Y", "SET_LAST_MODIFIED" => "N", "INCLUDE_IBLOCK_INTO_CHAIN" => "Y", "ADD_SECTIONS_CHAIN" => "Y", "HIDE_LINK_WHEN_NO_DETAIL" => "N", "PARENT_SECTION" => "", "PARENT_SECTION_CODE" => "", "INCLUDE_SUBSECTIONS" => "Y", "DISPLAY_DATE" => "Y", "DISPLAY_NAME" => "Y", "DISPLAY_PICTURE" => "Y", "DISPLAY_PREVIEW_TEXT" => "Y", "PAGER_TEMPLATE" => ".default", "DISPLAY_TOP_PAGER" => "N", "DISPLAY_BOTTOM_PAGER" => "N", "PAGER_TITLE" => "Новости", "PAGER_SHOW_ALWAYS" => "N", "PAGER_DESC_NUMBERING" => "N", "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", "PAGER_SHOW_ALL" => "N", "PAGER_BASE_LINK_ENABLE" => "N", "SET_STATUS_404" => "N", "SHOW_404" => "N", "MESSAGE_404" => "" ) );?>