|
|
|
@ -77,6 +77,7 @@ class ExerciseResult |
|
|
|
lastname, |
|
|
|
lastname, |
|
|
|
official_code, |
|
|
|
official_code, |
|
|
|
ce.title as extitle, |
|
|
|
ce.title as extitle, |
|
|
|
|
|
|
|
ce.pass_percentage as expasspercentage, |
|
|
|
te.exe_result as exresult , |
|
|
|
te.exe_result as exresult , |
|
|
|
te.exe_weighting as exweight, |
|
|
|
te.exe_weighting as exweight, |
|
|
|
te.exe_date as exdate, |
|
|
|
te.exe_date as exdate, |
|
|
|
@ -113,6 +114,7 @@ class ExerciseResult |
|
|
|
lastname, |
|
|
|
lastname, |
|
|
|
official_code, |
|
|
|
official_code, |
|
|
|
ce.title as extitle, |
|
|
|
ce.title as extitle, |
|
|
|
|
|
|
|
ce.pass_percentage as expasspercentage, |
|
|
|
te.exe_result as exresult, |
|
|
|
te.exe_result as exresult, |
|
|
|
te.exe_weighting as exweight, |
|
|
|
te.exe_weighting as exweight, |
|
|
|
te.exe_date as exdate, |
|
|
|
te.exe_date as exdate, |
|
|
|
@ -229,6 +231,9 @@ class ExerciseResult |
|
|
|
$return[$i]['username'] = $results[$i]['username']; |
|
|
|
$return[$i]['username'] = $results[$i]['username']; |
|
|
|
} |
|
|
|
} |
|
|
|
$return[$i]['title'] = $result['extitle']; |
|
|
|
$return[$i]['title'] = $result['extitle']; |
|
|
|
|
|
|
|
$return[$i]['minimun'] = $result['expasspercentage'] |
|
|
|
|
|
|
|
? float_format($result['expasspercentage'] / 100 * $result['exweight']) |
|
|
|
|
|
|
|
: 0; |
|
|
|
$return[$i]['start_date'] = api_get_local_time($result['exstart']); |
|
|
|
$return[$i]['start_date'] = api_get_local_time($result['exstart']); |
|
|
|
$return[$i]['end_date'] = api_get_local_time($result['exdate']); |
|
|
|
$return[$i]['end_date'] = api_get_local_time($result['exdate']); |
|
|
|
$return[$i]['duration'] = $result['duration']; |
|
|
|
$return[$i]['duration'] = $result['duration']; |
|
|
|
@ -269,6 +274,7 @@ class ExerciseResult |
|
|
|
$return[$i]['username'] = $student['username']; |
|
|
|
$return[$i]['username'] = $student['username']; |
|
|
|
} |
|
|
|
} |
|
|
|
$return[$i]['title'] = null; |
|
|
|
$return[$i]['title'] = null; |
|
|
|
|
|
|
|
$return[$i]['minimun'] = null; |
|
|
|
$return[$i]['start_date'] = null; |
|
|
|
$return[$i]['start_date'] = null; |
|
|
|
$return[$i]['end_date'] = null; |
|
|
|
$return[$i]['end_date'] = null; |
|
|
|
$return[$i]['duration'] = null; |
|
|
|
$return[$i]['duration'] = null; |
|
|
|
@ -368,6 +374,7 @@ class ExerciseResult |
|
|
|
$data .= get_lang('StartDate').';'; |
|
|
|
$data .= get_lang('StartDate').';'; |
|
|
|
$data .= get_lang('EndDate').';'; |
|
|
|
$data .= get_lang('EndDate').';'; |
|
|
|
$data .= get_lang('Duration').' ('.get_lang('MinMinutes').') ;'; |
|
|
|
$data .= get_lang('Duration').' ('.get_lang('MinMinutes').') ;'; |
|
|
|
|
|
|
|
$data .= get_lang('WeightNecessary').';'; |
|
|
|
$data .= get_lang('Score').';'; |
|
|
|
$data .= get_lang('Score').';'; |
|
|
|
$data .= get_lang('Total').';'; |
|
|
|
$data .= get_lang('Total').';'; |
|
|
|
$data .= get_lang('Status').';'; |
|
|
|
$data .= get_lang('Status').';'; |
|
|
|
@ -417,6 +424,7 @@ class ExerciseResult |
|
|
|
$data .= str_replace("\r\n", ' ', $row['start_date']).';'; |
|
|
|
$data .= str_replace("\r\n", ' ', $row['start_date']).';'; |
|
|
|
$data .= str_replace("\r\n", ' ', $row['end_date']).';'; |
|
|
|
$data .= str_replace("\r\n", ' ', $row['end_date']).';'; |
|
|
|
$data .= str_replace("\r\n", ' ', $duration).';'; |
|
|
|
$data .= str_replace("\r\n", ' ', $duration).';'; |
|
|
|
|
|
|
|
$data .= str_replace("\r\n", ' ', $row['minimun']).';'; |
|
|
|
$data .= str_replace("\r\n", ' ', $row['result']).';'; |
|
|
|
$data .= str_replace("\r\n", ' ', $row['result']).';'; |
|
|
|
$data .= str_replace("\r\n", ' ', $row['max']).';'; |
|
|
|
$data .= str_replace("\r\n", ' ', $row['max']).';'; |
|
|
|
$data .= str_replace("\r\n", ' ', $row['status']).';'; |
|
|
|
$data .= str_replace("\r\n", ' ', $row['status']).';'; |
|
|
|
@ -560,6 +568,8 @@ class ExerciseResult |
|
|
|
$column++; |
|
|
|
$column++; |
|
|
|
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('Duration').' ('.get_lang('MinMinutes').')'); |
|
|
|
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('Duration').' ('.get_lang('MinMinutes').')'); |
|
|
|
$column++; |
|
|
|
$column++; |
|
|
|
|
|
|
|
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('WeightNecessary')); |
|
|
|
|
|
|
|
$column++; |
|
|
|
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('Score')); |
|
|
|
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('Score')); |
|
|
|
$column++; |
|
|
|
$column++; |
|
|
|
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('Total')); |
|
|
|
$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('Total')); |
|
|
|
@ -711,6 +721,8 @@ class ExerciseResult |
|
|
|
$duration = !empty($row['duration']) ? round($row['duration'] / 60) : 0; |
|
|
|
$duration = !empty($row['duration']) ? round($row['duration'] / 60) : 0; |
|
|
|
$worksheet->setCellValueByColumnAndRow($column, $line, $duration); |
|
|
|
$worksheet->setCellValueByColumnAndRow($column, $line, $duration); |
|
|
|
$column++; |
|
|
|
$column++; |
|
|
|
|
|
|
|
$worksheet->setCellValueByColumnAndRow($column, $line, $row['minimun']); |
|
|
|
|
|
|
|
$column++; |
|
|
|
$worksheet->setCellValueByColumnAndRow($column, $line, $row['result']); |
|
|
|
$worksheet->setCellValueByColumnAndRow($column, $line, $row['result']); |
|
|
|
$column++; |
|
|
|
$column++; |
|
|
|
$worksheet->setCellValueByColumnAndRow($column, $line, $row['max']); |
|
|
|
$worksheet->setCellValueByColumnAndRow($column, $line, $row['max']); |
|
|
|
|