SetTitle("Спецпредложения"); $classes=array( "skidka"=>array(1,4,7,10), "prazdnik"=>array(3,6,9,12), "podarki"=>array(2,5,8,11), "new"=>array(13,14,15,16), ); $filter = array( "IBLOCK_ID"=>array(5,7,8,9), ); if (is_set($_REQUEST['FILTER'])){ $filter_type = parse_url_request($_REQUEST['FILTER']); $filter['PROPERTY_TYPE'] =$classes[$filter_type]; } $GLOBALS["actions_list"]=$filter; ?> IncludeComponent( "bitrix:news.list", "all_special", Array( "DISPLAY_DATE" => "N", "DISPLAY_NAME" => "Y", "DISPLAY_PICTURE" => "Y", "DISPLAY_PREVIEW_TEXT" => "Y", "AJAX_MODE" => "N", "IBLOCK_TYPE" => "actions", "IBLOCK_ID" => "", "NEWS_COUNT" => "4", "SORT_BY1" => "CREATED_DATE", "SORT_ORDER1" => "DESC", "SORT_BY2" => "TIMESTAMP_X", "SORT_ORDER2" => "DESC", "FILTER_NAME" => "actions_list", "FIELD_CODE" => array("NAME", "PREVIEW_TEXT", "PREVIEW_PICTURE"), "PROPERTY_CODE" => array("DATE", "TYPE", "BRAND"), "CHECK_DATES" => "Y", "DETAIL_URL" => "", "PREVIEW_TRUNCATE_LEN" => "", "ACTIVE_DATE_FORMAT" => "d.m.Y", "SET_TITLE" => "N", "SET_STATUS_404" => "N", "INCLUDE_IBLOCK_INTO_CHAIN" => "N", "ADD_SECTIONS_CHAIN" => "N", "HIDE_LINK_WHEN_NO_DETAIL" => "N", "PARENT_SECTION" => "", "PARENT_SECTION_CODE" => "", "CACHE_TYPE" => "A", "CACHE_TIME" => "36000000", "CACHE_FILTER" => "Y", "CACHE_GROUPS" => "Y", "DISPLAY_TOP_PAGER" => "N", "DISPLAY_BOTTOM_PAGER" => "Y", "PAGER_TITLE" => "Новости", "PAGER_SHOW_ALWAYS" => "N", "PAGER_TEMPLATE" => "", "PAGER_DESC_NUMBERING" => "N", "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", "PAGER_SHOW_ALL" => "N", "AJAX_OPTION_JUMP" => "N", "AJAX_OPTION_STYLE" => "N", "AJAX_OPTION_HISTORY" => "N" ), false );?>