| @@ 1069-1073 (lines=5) @@ | ||
| 1066 | } else { |
|
| 1067 | $last_login_date = '-'; |
|
| 1068 | } |
|
| 1069 | if ($total_score_possible > 0) { |
|
| 1070 | $total_score_percentage = round($total_score_obtained / $total_score_possible * 100, 2); |
|
| 1071 | } else { |
|
| 1072 | $total_score_percentage = 0; |
|
| 1073 | } |
|
| 1074 | if ($total_score_percentage > 0) { |
|
| 1075 | $total_score = $total_score_obtained.'/'.$total_score_possible.' ('.$total_score_percentage.' %)'; |
|
| 1076 | } else { |
|
| @@ 1254-1258 (lines=5) @@ | ||
| 1251 | } else { |
|
| 1252 | $last_login_date = '-'; |
|
| 1253 | } |
|
| 1254 | if ($total_score_possible > 0) { |
|
| 1255 | $total_score_percentage = round($total_score_obtained / $total_score_possible * 100, 2); |
|
| 1256 | } else { |
|
| 1257 | $total_score_percentage = 0; |
|
| 1258 | } |
|
| 1259 | // time spent in the course |
|
| 1260 | $csv_row[] = api_time_to_hms($time_spent); |
|
| 1261 | // student progress in course |
|
| @@ 1464-1468 (lines=5) @@ | ||
| 1461 | } else { |
|
| 1462 | $last_login_date = '-'; |
|
| 1463 | } |
|
| 1464 | if ($total_score_possible > 0) { |
|
| 1465 | $total_score_percentage = round($total_score_obtained / $total_score_possible * 100, 2); |
|
| 1466 | } else { |
|
| 1467 | $total_score_percentage = 0; |
|
| 1468 | } |
|
| 1469 | if ($total_score_percentage > 0) { |
|
| 1470 | $total_score = $total_score_obtained.'/'.$total_score_possible.' ('.$total_score_percentage.' %)'; |
|
| 1471 | } else { |
|
| @@ 1638-1642 (lines=5) @@ | ||
| 1635 | } else { |
|
| 1636 | $last_login_date = '-'; |
|
| 1637 | } |
|
| 1638 | if ($total_score_possible > 0) { |
|
| 1639 | $total_score_percentage = round($total_score_obtained / $total_score_possible * 100, 2); |
|
| 1640 | } else { |
|
| 1641 | $total_score_percentage = 0; |
|
| 1642 | } |
|
| 1643 | if ($total_score_percentage > 0) { |
|
| 1644 | $total_score = $total_score_obtained.'/'.$total_score_possible.' ('.$total_score_percentage.' %)'; |
|
| 1645 | } else { |
|