From: rkingdon Date: Thu, 13 Nov 2003 11:39:09 +0000 (+0000) Subject: New style Tabs in Management page. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=939a906ec8a6c862d298d5892ad880afef285bf7;p=moodle.git New style Tabs in Management page. --- diff --git a/mod/exercise/lib.php b/mod/exercise/lib.php index 7d3e373193..1e516d824b 100644 --- a/mod/exercise/lib.php +++ b/mod/exercise/lib.php @@ -831,7 +831,7 @@ function exercise_count_unassessed_student_submissions($exercise) { /////////////////////////////////////////////////////////////////////////////////////////////// function exercise_count_ungraded_assessments_student($exercise) { // function returns the number of ungraded assessments by students of STUDENT submissions - $n = 0; + $n = 0; if ($submissions = exercise_get_student_submissions($exercise)) { foreach ($submissions as $submission) { if ($assessments = exercise_get_assessments($submission)) { @@ -1857,7 +1857,7 @@ function exercise_list_unassessed_student_submissions($exercise, $user) { if (isset($table->data)) { print_table($table); } - } + } } @@ -3679,16 +3679,16 @@ function exercise_print_submission_title($exercise, $submission) { } -/////////////////////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////////////// function exercise_print_tabbed_heading($tabs) { // Prints a tabbed heading where one of the tabs highlighted. // $tabs is an object with several properties. -// $tabs->names is an array of tab names -// $tabs->urls is an array of links +// $tabs->names is an array of tab names +// $tabs->urls is an array of links // $tabs->align is an array of column alignments (defaults to "center") // $tabs->size is an array of column sizes // $tabs->wrap is an array of "nowrap"s or nothing -// $tabs->highlight is an index (zero based) of "active" heading . +// $tabs->highlight is an index (zero based) of "active" heading . // $tabs->width is an percentage of the page (defualts to 80%) // $tabs->cellpadding padding on each cell (defaults to 5) @@ -3742,9 +3742,9 @@ function exercise_print_tabbed_heading($tabs) { $wrapping = ""; } if ($key == $tabs->highlight) { - echo "cellheading2\">$tab\n"; + echo "cellheading2\">$tab\n"; } else { - echo "body\">$tab\n"; + echo "cellheading\">$tab\n"; } echo "". "wwwroot/pix/spacer.gif\" alt=\"\">\n";