Added registrationDate in user export - Refs BT#12247

remotes/angel/1.11.x
José Loguercio 8 years ago
parent caed0e432f
commit fcfe4c6cce
  1. 5
      main/admin/user_export.php
  2. 2
      main/session/resume_session.php
  3. 5
      main/user/user_export.php

@ -94,7 +94,8 @@ if ($form->validate()) {
u.auth_source AS AuthSource,
u.status AS Status,
u.official_code AS OfficialCode,
u.phone AS Phone";
u.phone AS Phone,
u.registration_date AS RegistrationDate";
if (strlen($course_code) > 0) {
$sql .= " FROM $user_table u, $course_user_table cu
WHERE
@ -141,6 +142,7 @@ if ($form->validate()) {
'Status',
'OfficialCode',
'PhoneNumber',
'RegistrationDate'
);
} else {
$data[] = array(
@ -154,6 +156,7 @@ if ($form->validate()) {
'Status',
'OfficialCode',
'PhoneNumber',
'RegistrationDate'
);
}

@ -252,7 +252,7 @@ if ($sessionInfo['nbr_courses'] == 0) {
<a href="'.api_get_path(WEB_CODE_PATH).'user/user_import.php?action=import&cidReq='.$course->getCode().'&id_session='.$sessionId.'">'.
Display::return_icon('import_csv.png', get_lang('ImportUsersToACourse'), null, ICON_SIZE_SMALL).'</a>
<a href="'.api_get_path(WEB_CODE_PATH).'user/user_export.php?file_type=csv&course_session='.$course->getCode().':'.$sessionId.'&addcsvheader=1">'.
Display::return_icon('export_csv.png', get_lang('ExportUsersToACourse'), null, ICON_SIZE_SMALL).'</a>
Display::return_icon('export_csv.png', get_lang('ExportUsersOfACourse'), null, ICON_SIZE_SMALL).'</a>
<a href="../tracking/courseLog.php?id_session='.$sessionId.'&cidReq='.$course->getCode().$orig_param.'&hide_course_breadcrumb=1">'.
Display::return_icon('statistics.gif', get_lang('Tracking')).'</a>&nbsp;
<a href="session_course_edit.php?id_session='.$sessionId.'&page=resume_session.php&course_code='.$course->getCode().''.$orig_param.'">'.

@ -55,7 +55,8 @@ $sql = "SELECT
u.auth_source AS AuthSource,
u.status AS Status,
u.official_code AS OfficialCode,
u.phone AS Phone";
u.phone AS Phone,
u.registration_date AS RegistrationDate";
if (strlen($course_code) > 0) {
$sql .= " FROM $user_table u, $course_user_table cu
WHERE
@ -109,6 +110,7 @@ if ($export['addcsvheader']=='1' AND $export['file_type']=='csv') {
'Status',
'OfficialCode',
'PhoneNumber',
'RegistrationDate'
);
} else {
$data[] = array(
@ -122,6 +124,7 @@ if ($export['addcsvheader']=='1' AND $export['file_type']=='csv') {
'Status',
'OfficialCode',
'PhoneNumber',
'RegistrationDate'
);
}

Loading…
Cancel
Save