'add_photos', 'label' => l10n('Add Photos'), ); $tabs[] = array( 'code' => 'permissions', 'label' => l10n('Permissions'), ); $tabs[] = array( 'code' => 'groups', 'label' => l10n('Groups'), ); $tabs[] = array( 'code' => 'virtual_links', 'label' => l10n('Virtual Links'), ); $tabs[] = array( 'code' => 'misc', 'label' => l10n('Miscellaneous'), ); if (!isset($_GET['section'])) { $section = $tabs[0]['code']; } else { $section = $_GET['section']; } $tabsheet = new tabsheet(); foreach ($tabs as $tab) { if ($tab['code'] == $section) { $selected_tab = $tab['code']; $help_section_title = $tab['label']; } $tabsheet->add($tab['code'], $tab['label'], $link.$tab['code']); } $tabsheet->select($selected_tab); $tabsheet->assign(); $template->set_filenames(array('help' => 'help.tpl')); $template->assign( array( 'HELP_CONTENT' => load_language( 'help/help_'.$selected_tab.'.html', '', array('return'=>true) ), 'HELP_SECTION_TITLE' => $help_section_title, ) ); // +-----------------------------------------------------------------------+ // | sending html code | // +-----------------------------------------------------------------------+ $template->assign_var_from_handle('ADMIN_CONTENT', 'help'); ?>