<?
CModule::IncludeModule("iblock");
$dbIBlockType = CIBlockType::GetList(
array("sort" => "asc"),
array("ACTIVE" => "Y")
);
while ($arIBlockType = $dbIBlockType->Fetch())
{
if ($arIBlockTypeLang = CIBlockType::GetByIDLang($arIBlockType["ID"], LANGUAGE_ID))
$arIblockType[$arIBlockType["ID"]] = "[".$arIBlockType["ID"]."] ".$arIBlockTypeLang["NAME"];
}
$arComponentParameters = array(
"GROUPS" => array(
"PARAMS" => array(
"NAME" => GetMessage("Переменные параметры")
),
),
"PARAMETERS" => array(
"AMOUNT" => array(
"PARENT" => "PARAMS",
"NAME" => GetMessage("Количество выводимых новостей"),
"TYPE" => "INT",
"MULTIPLE" => "N",
"DEFAULT" => "4",
),
"IBLOCK_ID" => array(
"PARENT" => "PARAMS",
"NAME" => GetMessage("Идентификатор раздела, откуда выводим новости"),
"TYPE" => "INT",
"MULTIPLE" => "N",
"DEFAULT" => "16",
),
"SET_TITLE" => array(),
"CACHE_TIME" => array(),
)
);
?> |