|
|
|
@ -187,10 +187,18 @@ switch ($action) { |
|
|
|
|
if ($is_allowedToEdit || $is_tutor) { |
|
|
|
|
$columns = array('firstname', 'lastname', 'username', 'group_name', 'exe_duration', 'start_date', 'exe_date', 'score','status','actions'); |
|
|
|
|
} else { |
|
|
|
|
$columns = array('exe_duration', 'start_date', 'exe_date', 'score', 'status', 'actions'); |
|
|
|
|
//$columns = array('exe_duration', 'start_date', 'exe_date', 'score', 'status', 'actions'); |
|
|
|
|
} |
|
|
|
|
$result = get_exam_results_data($start, $limit, $sidx, $sord, $exercise_id, $where_condition); |
|
|
|
|
|
|
|
|
|
if (isset($_GET['filter_by_user']) && !empty($_GET['filter_by_user'])) { |
|
|
|
|
$filter_user = intval($_GET['filter_by_user']); |
|
|
|
|
if ($where_condition == "") { |
|
|
|
|
$where_condition .= " te.exe_user_id = '$filter_user'" ; |
|
|
|
|
} else { |
|
|
|
|
$where_condition .= " AND te.exe_user_id = '$filter_user'"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$result = get_exam_results_data($start, $limit, $sidx, $sord, $exercise_id, $where_condition); |
|
|
|
|
break; |
|
|
|
|
case 'get_sessions': |
|
|
|
|
$columns = array('name', 'nbr_courses', 'nbr_users', 'category_name', 'date_start','date_end', 'coach_name', 'session_active', 'visibility'); |
|
|
|
|