'.get_lang('GroupList').'

'; $extra .= ''.get_lang('Course').': '.$courseInfo['title'].' ('.$courseInfo['code'].')'; $content = $extra.$content; $pdf->content_to_pdf($content, null, null, api_get_course_id()); break; case 'export': $groupId = isset($_GET['id']) ? intval($_GET['id']) : null; $data = GroupManager::exportCategoriesAndGroupsToArray($groupId, true); switch ($_GET['type']) { case 'csv': Export::export_table_csv($data); exit; break; case 'xls': if (!empty($data)) { Export::export_table_xls($data); exit; } break; } break; } } /* Header */ $interbreadcrumb[] = array('url' => 'group.php', 'name' => get_lang('Groups')); if (!isset ($_GET['origin']) || $_GET['origin'] != 'learnpath') { // So we are not in learnpath tool if (!$is_allowed_in_course) { api_not_allowed(true); } if (!api_is_allowed_to_edit(false, true)) { api_not_allowed(true); } else { Display::display_header($nameTools, 'Group'); // Tool introduction Display::display_introduction_section(TOOL_GROUP); } } else { ?> '; echo ''. Display::return_icon('new_group.png', get_lang('NewGroupCreate'), '', ICON_SIZE_MEDIUM).''; if (api_get_setting('allow_group_categories') == 'true') { echo ''. Display::return_icon('new_folder.png', get_lang('AddCategory'), '', ICON_SIZE_MEDIUM).''; } else { echo ''. Display::return_icon('settings.png', get_lang('PropModify'), '', ICON_SIZE_MEDIUM).''; } echo ''. Display::return_icon('import_csv.png', get_lang('Import'), '', ICON_SIZE_MEDIUM).''; echo ''. Display::return_icon('export_csv.png', get_lang('Export'), '', ICON_SIZE_MEDIUM).''; echo ''. Display::return_icon('export_excel.png', get_lang('ExportAsXLS'), '', ICON_SIZE_MEDIUM).''; echo ''. Display::return_icon('pdf.png', get_lang('ExportToPDF'), '', ICON_SIZE_MEDIUM).''; echo ''. Display::return_icon('group.png', get_lang('Groups'),'',ICON_SIZE_MEDIUM).''; echo ''. Display::return_icon('user.png', get_lang('GoTo').' '.get_lang('Users'), '', ICON_SIZE_MEDIUM).''; echo GroupManager::getSearchForm(); echo ''; echo GroupManager::getOverview($courseId, $keyword); if (!isset ($_GET['origin']) || $_GET['origin'] != 'learnpath') { Display::display_footer(); }