<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Title");
?><?
if ($_REQUEST["SECTION_ID"] != "" && $_REQUEST["SUBSECTION_ID"] == "" && $_REQUEST["ELEMENT_ID"] == ""):
$arrFilter = Array("SECTION_ID"=>$_REQUEST["SECTION_ID"]);
$APPLICATION->SetTitle("Тестовая");
?> <?
$res = CIBlockSection::GetByID($_REQUEST["SECTION_ID"]);
if($ar_res = $res->GetNext())
{ echo $ar_res['DESCRIPTION']."\n"; }
?> <?$APPLICATION->IncludeComponent(
"bitrix:news.list",
".default",
Array(
"IBLOCK_TYPE" => "articles",
"IBLOCK_ID" => "6",
"NEWS_COUNT" => "20",
"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=>"",1=>"",),
"CHECK_DATES" => "Y",
"DETAIL_URL" => "?ELEMENT_ID=#ELEMENT_ID#&SECTION_ID=\".$_REQUEST[SECTION_ID]",
"AJAX_MODE" => "N",
"AJAX_OPTION_SHADOW" => "Y",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"AJAX_OPTION_HISTORY" => "N",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "3600",
"CACHE_FILTER" => "N",
"PREVIEW_TRUNCATE_LEN" => "",
"ACTIVE_DATE_FORMAT" => "d.m.Y",
"DISPLAY_PANEL" => "N",
"SET_TITLE" => "Y",
"SET_STATUS_404" => "N",
"INCLUDE_IBLOCK_INTO_CHAIN" => "Y",
"ADD_SECTIONS_CHAIN" => "Y",
"HIDE_LINK_WHEN_NO_DETAIL" => "N",
"PARENT_SECTION" => "",
"PARENT_SECTION_CODE" => "",
"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" => "Y",
"DISPLAY_DATE" => "Y",
"DISPLAY_NAME" => "Y",
"DISPLAY_PICTURE" => "Y",
"DISPLAY_PREVIEW_TEXT" => "Y",
"AJAX_OPTION_ADDITIONAL" => ""
)
);?> <?
elseif($SECTION_ID != "" && $SUBSECTION_ID != "" && $ELEMENT_ID == ""):
$arrFilter = Array("SECTION_ID"=>$_REQUEST["SUBSECTION_ID"]);
?> <?
$s_link = $arSection["SECTION_PAGE_URL"];
//Извлекаем значения пользовательских свойств
if( GetUserField("IBLOCK_".$_REQUEST["IBLOCK_ID"]."_SECTION", $_REQUEST["SUBSECTION_ID"], "UF_PSTYLE") == 1 )
{
//echo GetUserField("IBLOCK_".$_REQUEST["IBLOCK_ID"]."_SECTION", $_REQUEST["SUBSECTION_ID"], "UF_PSTYLE");
?> <?$APPLICATION->IncludeComponent(
"bitrix:catalog.section",
"materials_list",
Array(
"IBLOCK_TYPE" => "articles",
"IBLOCK_ID" => $_REQUEST["IBLOCK_ID"],
"SECTION_ID" => $_REQUEST["SUBSECTION_ID"],
"SECTION_CODE" => "",
"ELEMENT_SORT_FIELD" => "sort",
"ELEMENT_SORT_ORDER" => "asc",
"FILTER_NAME" => "arrFilter",
"INCLUDE_SUBSECTIONS" => "Y",
"SHOW_ALL_WO_SECTION" => "N",
"PAGE_ELEMENT_COUNT" => "30",
"LINE_ELEMENT_COUNT" => "3",
"PROPERTY_CODE" => array(0=>"",1=>"",),
"SECTION_URL" => "",
"DETAIL_URL" => "?SECTION_ID=\".$_REQUEST[SECTION_ID].\&qu |