Documentation

ShowSectionIndex

CadminPage::ShowSectionIndex(
    $menu_id, 
    $module_id=false, 
    $mode=false
) 

The method shows admin's control panel with section index. Non-static method.

Parameters

Parameter Description Available from version
menu_idID of menu item which subsections are included into the list (i. e. all that is specified in items_id)
module_id ID of module for which the list is created. Starting from version 5.0.3 - required parameter.
mode Mode:
  • icon
  • list
  • table
If the mode is not specified - shows icons or items selected by user during previous page opening. Optional.
7.0.6

Example

<?require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");define("HELP_FILE", "subscribe/index.php");IncludeModuleLangFile(__FILE__);$POST_RIGHT = $APPLICATION->GetGroupRight("subscribe");if($POST_RIGHT<="D")    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));$APPLICATION->SetTitle(GetMessage("subscr_index_title"));if($_REQUEST["mode"] == "list")    require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_js.php");else    require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");$adminPage->ShowSectionIndex("menu_subscribe", "subscribe");if($_REQUEST["mode"] == "list")    require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin_js.php");else    require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");?>

Note Provided example indicates pages that are unavailable in the control panel starting from version 12.0.



© «Bitrix24», 2001-2024
Up