Skip to content

Commit

Permalink
Reporting: Add pdf download link see BT#17954
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Nov 11, 2020
1 parent e9a1eb7 commit cb9bec3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions main/session/resume_session.php
Expand Up @@ -299,6 +299,17 @@
Display::return_icon('export_csv.png', get_lang('ExportUsers')),
$codePath."user/user_export.php?file_type=csv&session=$sessionId&addcsvheader=1"
);
$url .= Display::url(
Display::return_icon('pdf.png', get_lang('CertificateOfAchievement'), [], ICON_SIZE_SMALL),
$codePath.'mySpace/session.php?'.http_build_query(
[
'action' => 'export_to_pdf',
'type' => 'achievement',
'session_to_export' => $sessionId,
'all_students' => 1,
]
)
);

$userListToShow = Display::page_subheader(get_lang('UserList').$url);
$userList = SessionManager::get_users_by_session($sessionId);
Expand Down

0 comments on commit cb9bec3

Please sign in to comment.