$value) { $pdfList[] = GradebookUtils::generateTable( $value['user_id'], $cat_id, false, true ); } if (!empty($pdfList)) { // Print certificates (without the common header/footer/watermark // stuff) and return as one multiple-pages PDF $pdf->html_to_pdf( $pdfList, null, null, false, false, true ); } break; case 'download': $userId = isset($_GET['user_id']) && $_GET['user_id'] ? $_GET['user_id'] : null; GradebookUtils::generateTable($userId, $cat_id); break; /*case 'generate_all_certificates': $user_list = CourseManager::get_user_list_from_course_code(api_get_course_id(), api_get_session_id()); if (!empty($user_list)) { foreach ($user_list as $user_info) { if ($user_info['status'] == INVITEE) { continue; } Category::register_user_certificate($cat_id, $user_info['user_id']); } } break; case 'delete_all_certificates': Category::deleteAllCertificates($cat_id); break;*/ } $course_code = api_get_course_id(); $interbreadcrumb[] = array('url' => Security::remove_XSS($_SESSION['gradebook_dest']).'?', 'name' => get_lang('Gradebook')); $interbreadcrumb[] = array('url' => '#','name' => get_lang('GradebookListOfStudentsReports')); $this_section = SECTION_COURSES; Display::display_header(''); $token = Security::get_token(); echo Display::page_header(get_lang('GradebookListOfStudentsReports')); echo '
'. get_lang('Student').' : '.api_get_person_name($value['firstname'], $value['lastname']).' ('.$value['username'].') | '; echo ''; $url = api_get_self().'?'.api_get_cidreq().'&action=download&user_id='.$value['user_id'].'&selectcat='.$cat_id; $link = Display::url( get_lang('ExportToPDF'), $url, array('target' => '_blank', 'class' => 'btn btn-default') ); echo $link; echo ' |