]> git.mjollnir.org Git - moodle.git/commitdiff
Merge XHTML fixes for MDL-9589
authormoodler <moodler>
Thu, 26 Apr 2007 08:49:21 +0000 (08:49 +0000)
committermoodler <moodler>
Thu, 26 Apr 2007 08:49:21 +0000 (08:49 +0000)
course/category.php
theme/standard/styles_layout.css

index ce7cdff9ab6a53d9bd8fac5d78687cb2afe93451..4a47f4071bdcdc2bfed39a6c9d12db626bd9abfd 100644 (file)
 /// Print link to roles
 
     if (has_capability('moodle/role:assign', $context)) { 
-        echo '<div class="rolelink" align="right"><a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.
+        echo '<div class="rolelink"><a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.
          $context->id.'">'.get_string('assignroles','role').'</a></div>';
     }
 /// Print the category selector
         $strrequireskey     = get_string("requireskey");
 
 
-        echo '<form id="movecourses" action="category.php" method="post">';
+        echo '<form id="movecourses" action="category.php" method="post"><div>';
         echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
-        echo '<table align="center" border="0" cellspacing="2" cellpadding="4" class="generalbox"><tr>';
-        echo '<th scope="col">'.$strcourses.'</th>';
+        echo '<table border="0" cellspacing="2" cellpadding="4" class="generalbox boxaligncenter"><tr>';
+        echo '<th class="header" scope="col">'.$strcourses.'</th>';
         if ($creatorediting) {
-            echo '<th scope="col">'.$stredit.'</th>';
+            echo '<th class="header" scope="col">'.$stredit.'</th>';
             if ($adminediting) {
-                echo '<th scope="col">'.$strselect.'</th>';
+                echo '<th class="header" scope="col">'.$strselect.'</th>';
             }
         } else {
-            echo '<th scope="col">&nbsp;</th>';
+            echo '<th class="header" scope="col">&nbsp;</th>';
         }
         echo '</tr>';
 
         }
 
         echo '</table>';
-        echo '</form>';
+        echo '</div></form>';
         echo '<br />';
     }
     
 
     if (has_capability('moodle/category:update', $context)) {           /// Print form to rename the category
         $strrename= get_string('rename');
-        echo '<form id="renameform" action="category.php" method="post">';
+        echo '<form id="renameform" action="category.php" method="post"><div>';
         echo '<input type="hidden" name="id" value="'.$category->id.'" />';
         echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
         echo '<input type="text" size="30" name="rename" value="'.format_string($category->name).'" alt="'.$strrename.'" />';
         echo '<input type="submit" value="'.$strrename.'" />';
-        echo "</form>";
-        echo "<br />";
+        echo '</div></form>';
+        echo '<br />';
     }
     
     print_course_search();
index 7a3a01392b8c941a4fc9f43fc0b0224873f0fea9..301396627bb6f5d1bad5db0220bb69875002eca1 100644 (file)
@@ -1766,6 +1766,11 @@ body#course-index .courseboxes {
   padding:20px;
 }
 
+body#course-category .rolelink {
+  text-align:right;
+  padding:10px;
+}
+
 body#course-index #middle-column .editcourse {
   margin-left:auto;
   margin-right:auto;