Show user IP on exercise report - refs #7268

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent d1a21a6c9b
commit 999c61edb1
  1. 3
      main/exercice/exercise.lib.php
  2. 2
      main/exercice/exercise_report.php
  3. 2
      main/inc/ajax/model.ajax.php

@ -1317,7 +1317,8 @@ function get_exam_results_data(
revised,
group_name,
group_id,
orig_lp_id";
orig_lp_id,
te.user_ip";
}
$sql = " $sql_select

@ -414,6 +414,7 @@ if ($is_allowedToEdit || $is_tutor) {
get_lang('StartDate'),
get_lang('EndDate'),
get_lang('Score'),
get_lang('IP'),
get_lang('Status'),
get_lang('ToolLearnpath'),
get_lang('Actions')
@ -439,6 +440,7 @@ if ($is_allowedToEdit || $is_tutor) {
array('name' => 'start_date', 'index' => 'start_date', 'width' => '60', 'align' => 'left', 'search' => 'true'),
array('name' => 'exe_date', 'index' => 'exe_date', 'width' => '60', 'align' => 'left', 'search' => 'true'),
array('name' => 'score', 'index' => 'exe_result', 'width' => '50', 'align' => 'left', 'search' => 'true'),
array('name' => 'ip', 'index' => 'user_ip', 'width' => '40', 'align' => 'center', 'search' => 'true'),
array('name' => 'status', 'index' => 'revised', 'width' => '40', 'align' => 'left', 'search' => 'true', 'stype' => 'select',
//for the bottom bar
'searchoptions' => array(

@ -658,7 +658,7 @@ switch ($action) {
$documentPath = api_get_path(SYS_COURSE_PATH) . $course['path'] . "/document";
if ($is_allowedToEdit || api_is_student_boss()) {
$columns = array(
'firstname', 'lastname', 'username', 'group_name', 'exe_duration', 'start_date', 'exe_date', 'score', 'status', 'lp', 'actions'
'firstname', 'lastname', 'username', 'group_name', 'exe_duration', 'start_date', 'exe_date', 'score', 'user_ip', 'status', 'lp', 'actions'
);
$officialCodeInList = api_get_configuration_value('show_official_code_exercise_result_list');
if ($officialCodeInList == true) {

Loading…
Cancel
Save