| @@ 1001-1005 (lines=5) @@ | ||
| 998 | } else { |
|
| 999 | $total_score_percentage = 0; |
|
| 1000 | } |
|
| 1001 | if ($total_score_percentage > 0) { |
|
| 1002 | $total_score = $total_score_obtained.'/'.$total_score_possible.' ('.$total_score_percentage.' %)'; |
|
| 1003 | } else { |
|
| 1004 | $total_score = '-'; |
|
| 1005 | } |
|
| 1006 | $return .= '<tr>'; |
|
| 1007 | // time spent in the course |
|
| 1008 | $return .= ' <td style="width:164px;">'.api_time_to_hms($time_spent).'</td>'; |
|
| @@ 1357-1361 (lines=5) @@ | ||
| 1354 | } else { |
|
| 1355 | $total_score_percentage = 0; |
|
| 1356 | } |
|
| 1357 | if ($total_score_percentage > 0) { |
|
| 1358 | $total_score = $total_score_obtained.'/'.$total_score_possible.' ('.$total_score_percentage.' %)'; |
|
| 1359 | } else { |
|
| 1360 | $total_score = '-'; |
|
| 1361 | } |
|
| 1362 | // time spent in the course |
|
| 1363 | $return .= ' <td><div>'.api_time_to_hms($time_spent).'</div></td>'; |
|
| 1364 | // student progress in course |
|
| @@ 1531-1535 (lines=5) @@ | ||
| 1528 | } else { |
|
| 1529 | $total_score_percentage = 0; |
|
| 1530 | } |
|
| 1531 | if($total_score_percentage > 0) { |
|
| 1532 | $total_score = $total_score_obtained.'/'.$total_score_possible.' ('.$total_score_percentage.' %)'; |
|
| 1533 | } else { |
|
| 1534 | $total_score = '-'; |
|
| 1535 | } |
|
| 1536 | // time spent in the course |
|
| 1537 | $csv_row[] = api_time_to_hms($time_spent); |
|
| 1538 | // student progress in course |
|