Changeset 16929 for branches/2.4/admin/help.php
- Timestamp:
- Jul 23, 2012, 1:52:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/admin/help.php
r16926 r16929 30 30 check_status(ACCESS_ADMINISTRATOR); 31 31 32 $ link = get_root_url().'admin.php?page=help§ion=';32 $help_link = get_root_url().'admin.php?page=help§ion='; 33 33 $selected = null; 34 $help_section_title = null;35 36 $tabs = array();37 $tabs[] = array(38 'code' => 'add_photos',39 'label' => l10n('Add Photos'),40 );41 $tabs[] = array(42 'code' => 'permissions',43 'label' => l10n('Permissions'),44 );45 $tabs[] = array(46 'code' => 'groups',47 'label' => l10n('Groups'),48 );49 $tabs[] = array(50 'code' => 'virtual_links',51 'label' => l10n('Virtual Links'),52 );53 $tabs[] = array(54 'code' => 'misc',55 'label' => l10n('Miscellaneous'),56 );57 34 58 35 if (!isset($_GET['section'])) 59 36 { 60 $se ction = $tabs[0]['code'];37 $selected = 'add_photos'; 61 38 } 62 39 else 63 40 { 64 $se ction= $_GET['section'];41 $selected = $_GET['section']; 65 42 } 66 43 67 44 $tabsheet = new tabsheet(); 68 45 $tabsheet->set_id('help'); 69 foreach ($tabs as $tab)70 {71 if ($tab['code'] == $section)72 {73 $selected_tab = $tab['code'];74 $help_section_title = $tab['label'];75 }76 77 $tabsheet->add($tab['code'], $tab['label'], $link.$tab['code']);78 }79 $tabsheet->select($selected_tab);80 46 $tabsheet->assign(); 81 47 … … 85 51 array( 86 52 'HELP_CONTENT' => load_language( 87 'help/help_'.$ selected_tab.'.html',53 'help/help_'.$tabsheet->selected.'.html', 88 54 '', 89 55 array('return'=>true) 90 56 ), 91 'HELP_SECTION_TITLE' => $ help_section_title,57 'HELP_SECTION_TITLE' => $tabsheet->sheets[ $tabsheet->selected ]['caption'], 92 58 ) 93 59 );
Note: See TracChangeset
for help on using the changeset viewer.