From: vyshane Date: Fri, 22 Dec 2006 02:23:52 +0000 (+0000) Subject: xhtml fixes in grade_display_grade_weights() for MDL-7861. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0ca5abd67d331465885c4c61b751c44961008b06;p=moodle.git xhtml fixes in grade_display_grade_weights() for MDL-7861. --- diff --git a/grade/lib.php b/grade/lib.php index 030a378bc0..ce9de04294 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -2376,15 +2376,21 @@ function grade_display_grade_weights() { $categories = get_records('grade_category', 'courseid', $course->id); if ($categories) { - echo '
'.get_string('setweights','grades'); + echo '
'; + echo ''; + echo ''; - echo ''; - echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; echo ''; echo ''; echo ''; - + $sum = 0; foreach($categories as $category) { @@ -2404,9 +2410,11 @@ function grade_display_grade_weights() { if ($category->hidden == 1) { echo ' checked="checked"'; } - echo ' />'; + echo ' />'; } - echo ''; + echo ''; if ($sum != 100) { echo ''; } @@ -2419,6 +2427,7 @@ function grade_display_grade_weights() { echo ''.get_string('setcategorieserror','grades').''; } echo '
'.get_string('setweights','grades'); helpbutton('weight', get_string('gradeweighthelp','grades'), 'grade'); echo '
'.get_string('category','grades').''.get_string('weight','grades').''.get_string('dropxlowest','grades').''.get_string('bonuspoints','grades').''.get_string('hidecategory','grades').'
'.get_string('category','grades').''.get_string('weight','grades').''.get_string('dropxlowest','grades').''.get_string('bonuspoints','grades').''.get_string('hidecategory','grades').'
'; + echo ''; + echo '
'.get_string('totalweightnot100','grades').'
'; + echo ''; echo '
'.get_string('dropxlowestwarning','grades').'

'; }