sprintf(get_lang('GradeFromX'), $courseInfo['name']),
'session_info' => '',
'course_info' => '',
'pdf_date' => '',
'course_code' => api_get_course_id(),
'add_signatures' => false,
'student_info' => null,
'show_grade_generated_date' => true,
'show_real_course_teachers' => false,
'show_teacher_as_myself' => false
);
$pdf = new PDF('A4', $params['orientation'], $params, $tpl);
foreach ($userList as $index => $value) {
$pdfList[] = GradebookUtils::generateTable(
$value['user_id'],
$cats,
false,
true,
$studentList,
$pdf
);
}
if (!empty($pdfList)) {
// Print certificates (without the common header/footer/watermark
// stuff) and return as one multiple-pages PDF
$address = api_get_setting('platform.institution_address');
$phone = api_get_setting('admin.administrator_phone');
$address = str_replace('\n', '
', $address);
$pdf->custom_header = array('html' => "
'. 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 ' |