|
|
|
@ -975,8 +975,6 @@ if (isset($first_time) && $first_time == 1 && api_is_allowed_to_edit(null, true) |
|
|
|
|
|
|
|
|
|
if ($action == 'export_table') { |
|
|
|
|
ob_clean(); |
|
|
|
|
$sessionName = api_get_session_name(api_get_session_id()); |
|
|
|
|
$sessionName = !empty($sessionName) ? " - $sessionName" : ''; |
|
|
|
|
$params = array( |
|
|
|
|
'pdf_title' => sprintf(get_lang('GradeFromX'), $courseInfo['name']), |
|
|
|
|
'course_code' => api_get_course_id(), |
|
|
|
@ -986,16 +984,11 @@ if (isset($first_time) && $first_time == 1 && api_is_allowed_to_edit(null, true) |
|
|
|
|
'student_info' => api_get_user_info(), |
|
|
|
|
'show_grade_generated_date' => true, |
|
|
|
|
'show_real_course_teachers' => false, |
|
|
|
|
'show_teacher_as_myself' => false |
|
|
|
|
'show_teacher_as_myself' => false, |
|
|
|
|
'orientation' => 'P' |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$pdf = new PDF('A4', $params['orientation'], $params); |
|
|
|
|
|
|
|
|
|
$address = api_get_setting('institution_address'); |
|
|
|
|
$phone = api_get_setting('administratorTelephone'); |
|
|
|
|
$address = str_replace('\n', '<br />', $address); |
|
|
|
|
$pdf->custom_header = array('html' => "<h5 align='right'>$address <br />$phone</h5>"); |
|
|
|
|
|
|
|
|
|
$pdf->html_to_pdf_with_template( |
|
|
|
|
$table. |
|
|
|
|
$graph. |
|
|
|
|