|
|
|
@ -90,15 +90,15 @@ if ($form->validate() && !empty($courseInfo)) { |
|
|
|
|
$url = api_get_path(WEB_AJAX_PATH).'model.ajax.php?a=get_exercise_results_report&exercise_id='.$exerciseId.'&start_date='.$startDate.'&cidReq='.$courseInfo['code'].'&export_filename='.$exportFilename; |
|
|
|
|
|
|
|
|
|
$categoryList = TestCategory::getListOfCategoriesIDForTest($exerciseId, $courseId); |
|
|
|
|
$columns = array( |
|
|
|
|
$columns = [ |
|
|
|
|
get_lang('FirstName'), |
|
|
|
|
get_lang('LastName'), |
|
|
|
|
get_lang('LoginName'), |
|
|
|
|
get_lang('Session'), |
|
|
|
|
get_lang('SessionStartDate'), |
|
|
|
|
get_lang('StartDate'), |
|
|
|
|
get_lang('EndDate'), |
|
|
|
|
get_lang('Score') |
|
|
|
|
); |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
if (!empty($categoryList)) { |
|
|
|
|
foreach ($categoryList as $categoryInfo) { |
|
|
|
@ -107,15 +107,21 @@ if ($form->validate() && !empty($courseInfo)) { |
|
|
|
|
} |
|
|
|
|
$columns[] = get_lang('Actions'); |
|
|
|
|
|
|
|
|
|
$columnModel = array( |
|
|
|
|
array('name' => 'firstname', 'index' => 'firstname', 'width' => '50', 'align' => 'left', 'search' => 'true'), |
|
|
|
|
array('name' => 'lastname', 'index' => 'lastname', 'width' => '50', 'align' => 'left', 'formatter' => 'action_formatter', 'search' => 'true'), |
|
|
|
|
array('name' => 'login', 'index' => 'username', 'width' => '40', 'align' => 'left', 'search' => 'true', 'hidden' => 'true'), |
|
|
|
|
array('name' => 'session', 'index' => 'session', 'width' => '40', 'align' => 'left', 'search' => 'false'), |
|
|
|
|
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' => 'center', 'search' => 'true') |
|
|
|
|
); |
|
|
|
|
$columnModel = [ |
|
|
|
|
['name' => 'firstname', 'index' => 'firstname', 'width' => '50', 'align' => 'left', 'search' => 'true'], |
|
|
|
|
['name' => 'lastname', 'index' => 'lastname', 'width' => '50', 'align' => 'left', 'formatter' => 'action_formatter', 'search' => 'true'], |
|
|
|
|
['name' => 'login', 'index' => 'username', 'width' => '40', 'align' => 'left', 'search' => 'true', 'hidden' => 'true'], |
|
|
|
|
['name' => 'session', 'index' => 'session', 'width' => '40', 'align' => 'left', 'search' => 'false'], |
|
|
|
|
[ |
|
|
|
|
'name' => 'session_access_start_date', |
|
|
|
|
'index' => 'session_access_start_date', |
|
|
|
|
'width' => '50', |
|
|
|
|
'align' => 'center', |
|
|
|
|
'search' => 'true', |
|
|
|
|
], |
|
|
|
|
['name' => 'exe_date', 'index' => 'exe_date', 'width' => '60', 'align' => 'left', 'search' => 'true'], |
|
|
|
|
['name' => 'score', 'index' => 'exe_result', 'width' => '50', 'align' => 'center', 'search' => 'true'], |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
if (!empty($categoryList)) { |
|
|
|
|
foreach ($categoryList as $categoryInfo) { |
|
|
|
|