%PDF- %PDF-
Direktori : /home/bitrix/www/bitrix/components/bitrix/lists.sections/ |
Current File : /home/bitrix/www/bitrix/components/bitrix/lists.sections/.parameters.php |
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); if(!CModule::IncludeModule("lists")) return; $strSelectedType = $arCurrentValues["IBLOCK_TYPE_ID"]; $arTypes = array(); $rsTypes = CLists::GetIBlockTypes(); while($ar = $rsTypes->Fetch()) { $arTypes[$ar["IBLOCK_TYPE_ID"]] = "[".$ar["IBLOCK_TYPE_ID"]."] ".$ar["NAME"]; if(!$strSelectedType) $strSelectedType = $ar["IBLOCK_TYPE_ID"]; } $arIBlocks = array(); $rsIBlocks = CIBlock::GetList(Array("sort" => "asc"), Array("TYPE" => $strSelectedType, "ACTIVE"=>"Y")); while($ar = $rsIBlocks->Fetch()) { $arIBlocks[$ar["ID"]] = "[".$ar["ID"]."] ".$ar["NAME"]; } $arComponentParameters = array( "GROUPS" => array( ), "PARAMETERS" => array( "IBLOCK_TYPE_ID" => Array( "PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BLS_IBLOCK_TYPE_ID"), "TYPE" => "LIST", "VALUES" => $arTypes, "DEFAULT" => "lists", ), "IBLOCK_ID" => Array( "PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BLS_IBLOCK_ID"), "TYPE" => "LIST", "VALUES" => $arIBlocks, "ADDITIONAL_VALUES" => "Y", "DEFAULT" => '={$_REQUEST["list_id"]}', ), "SECTION_ID" => Array( "PARENT" => "DATA_SOURCE", "NAME" => GetMessage("CP_BLS_SECTION_ID"), "TYPE" => "STRING", "DEFAULT" => '={$_REQUEST["section_id"]}', ), "LISTS_URL" => CListsParameters::GetPathTemplateParam( "LISTS", "LISTS_URL", GetMessage("CP_BLS_LISTS_URL"), "lists.lists.php", "URL_TEMPLATES" ), "LIST_EDIT_URL" => CListsParameters::GetPathTemplateParam( "LIST", "LIST_EDIT_URL", GetMessage("CP_BLS_LIST_EDIT_URL"), "lists.list.edit.php?list_id=#list_id#", "URL_TEMPLATES" ), "LIST_URL" => CListsParameters::GetPathTemplateParam( "SECTIONS", "LIST_URL", GetMessage("CP_BLS_LIST_URL"), "lists.list.php?list_id=#list_id#§ion_id=#section_id#", "URL_TEMPLATES" ), "LIST_SECTIONS_URL" => CListsParameters::GetPathTemplateParam( "SECTIONS", "LIST_SECTIONS_URL", GetMessage("CP_BLS_LIST_SECTIONS_URL"), "lists.sections.php?list_id=#list_id#§ion_id=#section_id#", "URL_TEMPLATES" ), "CACHE_TIME" => Array("DEFAULT"=>3600), ), ); ?>