diff --git a/mod/quiz/report.php b/mod/quiz/report.php index 848d85cda8a..7bd4556e1d9 100644 --- a/mod/quiz/report.php +++ b/mod/quiz/report.php @@ -69,16 +69,20 @@ } } - echo ""; + $tabs = array(); + $row = array(); + $currenttab = ''; foreach ($reportlist as $report) { - $strreport = get_string("report$report", "quiz"); + $row[] = new tabobject($report, "report.php?id=$cm->id&mode=$report", + get_string("report$report", "quiz")); if ($report == $mode) { - echo ""; - } else { - echo ""; + $currenttab = $report; } } - echo "
$strreportid&mode=$report\">$strreport

"; + $tabs[] = $row; + + print_tabs($tabs, $currenttab); + }