Browse Source

Minor - add new page tag in export, + change icon BT#15826

Julio Montoya 5 years ago
parent
commit
48929d68ce
2 changed files with 2 additions and 3 deletions
  1. 1 2
      main/mySpace/access_details_session.php
  2. 1 1
      main/mySpace/myStudents.php

+ 1 - 2
main/mySpace/access_details_session.php

@@ -296,7 +296,7 @@ if ($form->validate()) {
     $tpl = new Template('', false, false, false, true, false, false);
     $tpl->assign('title', get_lang('RealisationCertificate'));
     $tpl->assign('student', $userInfo['complete_name']);
-    $tpl->assign('table_progress', $totalCourseSessionTable.$totalTable.$courseSessionTable);
+    $tpl->assign('table_progress', $totalTable.$totalCourseSessionTable.'<pagebreak>'.$courseSessionTable);
 
     $content = $tpl->fetch($tpl->get_template('my_space/pdf_export_student.tpl'));
     $params = [
@@ -333,7 +333,6 @@ $interbreadcrumb[] = ['url' => '#', 'name' => get_lang('AccessDetails')];
 
 Display::display_header('');
 $userInfo = api_get_user_info($userId);
-$result_to_print = '';
 echo Display::page_header(get_lang('DetailsStudentInCourse'));
 echo Display::page_subheader(
     get_lang('User').': '.$userInfo['complete_name']

+ 1 - 1
main/mySpace/myStudents.php

@@ -663,7 +663,7 @@ echo '<a href="'.api_get_self().'?'.Security::remove_XSS($_SERVER['QUERY_STRING'
     .Display::return_icon('export_excel.png', get_lang('ExportAsXLS'), '', ICON_SIZE_MEDIUM).'</a> ';
 
 echo Display::url(
-    Display::return_icon('export_pdf.png', get_lang('Export'), '', ICON_SIZE_MEDIUM),
+    Display::return_icon('attendance.png', get_lang('Export'), '', ICON_SIZE_MEDIUM),
     api_get_path(WEB_CODE_PATH).'mySpace/access_details_session.php?user_id='.$student_id
 );