]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-7861, fixing xhtml
authortoyomoyo <toyomoyo>
Thu, 4 Jan 2007 05:32:23 +0000 (05:32 +0000)
committertoyomoyo <toyomoyo>
Thu, 4 Jan 2007 05:32:23 +0000 (05:32 +0000)
mod/workshop/assessments.php
mod/workshop/submissions.php
mod/workshop/view.php

index 59302841d89432e8eac42848fb760bef80c2cc50..3bc78c23403609948e86747ec5c055738fc5a257 100644 (file)
 
         // show grade if grading strategy is not zero
         if ($workshop->gradingstrategy) {
+            echo "</div>"; // MDL-7861, this is from <div id=page>
             redirect($returnto, get_string("thegradeis", "workshop").": ".
                     number_format($grade * $workshop->grade / 100, 2).
                     " (".get_string("maximumgrade")." ".number_format($workshop->grade).")");
         else {
             redirect($returnto);
         }
+        
     }
 
 
     else {
         error("Fatal Error: Unknown Action: ".$action."\n");
     }
-
     print_footer($course);
 
 ?>
index 9e6ccc1aa435bdd2671f3bf109baa5553102ba48..d1fb73604683a4477bc2cde18222e8a08f403f34 100644 (file)
             }
             print_continue("view.php?id=$cm->id");
         } else {
+            echo '</div>'; // close <div id='page'>
             redirect("view.php?id=$cm->id#sid=$submission->id");
         }
     }
index d39bb6b477434bfab3c0e3889cbad77ae1dbd81f..bd4721b5b2d8e60ff0e410c06b07c2a23bb140fe 100644 (file)
                 echo "<td align=\"center\">$grade</td>";
                 echo "<td align=\"center\">".number_format($gradinggrade + $grade, 1)."</td></tr>\n";
             }
-            echo "</table><br clear=\"all\" />\n";
+            echo "</table></center><br clear=\"all\" />\n";
             workshop_print_key($workshop);
         } else {
             print_heading(get_string('nowork', 'workshop'));