]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8697 Moved inline text-align:right to stylesheet, and removed table and td text...
authornicolasconnault <nicolasconnault>
Thu, 1 Mar 2007 04:42:41 +0000 (04:42 +0000)
committernicolasconnault <nicolasconnault>
Thu, 1 Mar 2007 04:42:41 +0000 (04:42 +0000)
course/search.php
theme/standard/styles_layout.css

index 416dab59181291e432d5d225465fe30940e0387c..18ce9c275548bcd324fcb5ee98b227b3af407328 100644 (file)
             foreach ($courses as $course) {
                 $course->fullname = highlight("$search", $course->fullname);
                 $course->summary = highlight("$search", $course->summary);
-                $course->summary .= "<br /><p style=\"text-align:right\">";
+                $course->summary .= "<br /><p class=\"category\">";
                 $course->summary .= "$strcategory: <a href=\"category.php?id=$course->category\">";
                 $course->summary .= $displaylist[$course->category];
                 $course->summary .= "</a></p>";
             echo "<input type=\"hidden\" name=\"search\" value=\"".s($search, true)."\" />";
             echo "<input type=\"hidden\" name=\"page\" value=\"$page\" />";
             echo "<input type=\"hidden\" name=\"perpage\" value=\"$perpage\" />";
-            echo "<table style=\"text-align:center\" border=0 cellspacing=2 cellpadding=4 class=\"generalbox\"><tr>";
+            echo "<table border=0 cellspacing=2 cellpadding=4 class=\"generalbox\"><tr>";
             echo "<th scope=\"col\">$strcourses</th>";
             echo "<th scope=\"col\">$strcategory</th>";
             echo "<th scope=\"col\">$strselect</th>";
                 echo "<tr>";
                 echo "<td><a $linkcss href=\"view.php?id=$course->id\">" . format_string($course->fullname) . "</a></td>";
                 echo "<td>".$displaylist[$course->category]."</td>";
-                echo "<td style=\"text-align:center\">";
+                echo "<td>";
                 
                 // this is ok since this will get inherited from course category context
                 // if it is set
index e2a0dd6895d1ce9848f40b18e99f9bfbf8d8df6f..e1c50bbf137702672acb882c1e2e1605c2ed8e61 100644 (file)
@@ -1726,6 +1726,9 @@ body#course-index .addcategory {
   margin:10px;
 }
 
+#content .coursebox .summary .category {
+  text-align:right;
+}
 
 /***
  *** Group