| @@ 1328-1332 (lines=5) @@ | ||
| 1325 | } else { |
|
| 1326 | $last_login_date = '-'; |
|
| 1327 | } |
|
| 1328 | if($total_score_possible > 0) { |
|
| 1329 | $total_score_percentage = round($total_score_obtained / $total_score_possible * 100, 2); |
|
| 1330 | } else { |
|
| 1331 | $total_score_percentage = 0; |
|
| 1332 | } |
|
| 1333 | if($total_score_percentage > 0) { |
|
| 1334 | $total_score = $total_score_obtained.'/'.$total_score_possible.' ('.$total_score_percentage.' %)'; |
|
| 1335 | } else { |
|
| @@ 1478-1482 (lines=5) @@ | ||
| 1475 | } else { |
|
| 1476 | $last_login_date = '-'; |
|
| 1477 | } |
|
| 1478 | if($total_score_possible > 0) { |
|
| 1479 | $total_score_percentage = round($total_score_obtained / $total_score_possible * 100, 2); |
|
| 1480 | } else { |
|
| 1481 | $total_score_percentage = 0; |
|
| 1482 | } |
|
| 1483 | // time spent in the course |
|
| 1484 | $csv_row[] = api_time_to_hms($time_spent); |
|
| 1485 | // student progress in course |
|
| @@ 1688-1692 (lines=5) @@ | ||
| 1685 | } else { |
|
| 1686 | $last_login_date = '-'; |
|
| 1687 | } |
|
| 1688 | if($total_score_possible > 0) { |
|
| 1689 | $total_score_percentage = round($total_score_obtained / $total_score_possible * 100, 2); |
|
| 1690 | } else { |
|
| 1691 | $total_score_percentage = 0; |
|
| 1692 | } |
|
| 1693 | if($total_score_percentage > 0) { |
|
| 1694 | $total_score = $total_score_obtained.'/'.$total_score_possible.' ('.$total_score_percentage.' %)'; |
|
| 1695 | } else { |
|
| @@ 1862-1866 (lines=5) @@ | ||
| 1859 | } else { |
|
| 1860 | $last_login_date = '-'; |
|
| 1861 | } |
|
| 1862 | if($total_score_possible > 0) { |
|
| 1863 | $total_score_percentage = round($total_score_obtained / $total_score_possible * 100, 2); |
|
| 1864 | } else { |
|
| 1865 | $total_score_percentage = 0; |
|
| 1866 | } |
|
| 1867 | if($total_score_percentage > 0) { |
|
| 1868 | $total_score = $total_score_obtained.'/'.$total_score_possible.' ('.$total_score_percentage.' %)'; |
|
| 1869 | } else { |
|