]> git.mjollnir.org Git - moodle.git/commitdiff
Some tweaks in the category/course display (styles mostly)
authormoodler <moodler>
Wed, 3 Sep 2003 15:25:08 +0000 (15:25 +0000)
committermoodler <moodler>
Wed, 3 Sep 2003 15:25:08 +0000 (15:25 +0000)
course/index.php
course/lib.php

index 30e30927cac0ec4e68268663cbb038646280d944..24f877f7fcde32f04d9974d31709bb53e3c811b6 100644 (file)
@@ -32,7 +32,7 @@
             $strcourses = get_string("courses");
             print_header($strcourses, $strcourses, $strcourses, "", "", true, update_categories_button());
             print_heading(get_string("categories"));
-            print_simple_box_start("center", "50%");
+            print_simple_box_start("center", "50%", "#FFFFFF", 5, "categorybox");
             print_whole_category_list();
             print_simple_box_end();
             print_course_search();
index 0ecc806aa46361df0ace433115bb7f13b574082b..520d32e9bcf7253ac50200a3b4514e234f96411e 100644 (file)
@@ -6,15 +6,15 @@ if (defined('COURSE_MAX_LOG_DISPLAY')) {  // Being included again - should never
     return;
 }
 
-define('COURSE_MAX_SUMMARIES_PER_PAGE', 8);    // records
-
 define('COURSE_MAX_LOG_DISPLAY', 150);       // days
 
 define('COURSE_MAX_LOGS_PER_PAGE', 1000);    // records
 
 define('COURSE_LIVELOG_REFRESH', 60);        // Seconds
 
-define('COURSE_MAX_RECENT_PERIOD', 604800);   // A week, in seconds
+define('COURSE_MAX_RECENT_PERIOD', 604800);  // A week, in seconds
+
+define('COURSE_MAX_SUMMARIES_PER_PAGE', 10); // courses
 
 define("FRONTPAGENEWS",           0);
 define("FRONTPAGECOURSELIST",     1);
@@ -973,19 +973,19 @@ function print_category_info($category, $depth) {
         }
     
         echo "<td valign=\"top\">$catimage</td>";
-        echo "<td valign=\"top\" width=\"100%\" class=\"categoryname\"><font size=+1>";
+        echo "<td valign=\"top\" width=\"100%\" class=\"categoryname\">";
         echo "<a $catlinkcss href=\"$CFG->wwwroot/course/category.php?id=$category->id\">$category->name</a>";
-        echo "</font></td>";
-        echo "<td>&nbsp;</td>";
+        echo "</td>";
+        echo "<td class=\"categoryname\">&nbsp;</td>";
         echo "</tr>\n";
 
         if ($courses) {
             foreach ($courses as $course) {
                 $linkcss = $course->visible ? "" : " class=\"dimmed\" ";
                 echo "<tr><td valign=\"top\" width=\"30\">&nbsp;";
-                echo "</td>\n<td valign=\"top\" class=\"coursename\" width=\"100%\">";
+                echo "</td>\n<td valign=\"top\" width=\"100%\" class=\"coursename\">";
                 echo "<a $linkcss href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname</a>";
-                echo "</td>\n<td align=\"right\" valign=\"top\" nowrap>";
+                echo "</td>\n<td align=\"right\" valign=\"top\" nowrap class=\"coursename\">";
                 if ($course->guest ) {
                     echo "<a title=\"$strallowguests\" href=\"$CFG->wwwroot/course/view.php?id=$course->id\">";
                     echo "<img hspace=2 alt=\"\" height=16 width=16 border=0 src=\"$pixpath/i/user.gif\"></a>";
@@ -1011,10 +1011,10 @@ function print_category_info($category, $depth) {
             echo "</td>";
         }
     
-        echo "<td valign=\"top\" width=\"100%\" class=\"categoryname\"><font size=+1>";
+        echo "<td valign=\"top\" width=\"100%\" class=\"categoryname\">";
         echo "<a $catlinkcss href=\"$CFG->wwwroot/course/category.php?id=$category->id\">$category->name</a>";
-        echo "</font></td>";
-        echo "<td valign=\"top\">$category->coursecount</td></tr>";
+        echo "</td>";
+        echo "<td valign=\"top\" class=\"categoryname\">$category->coursecount</td></tr>";
     }
     echo "\n</table>\n";
 }
@@ -1191,7 +1191,7 @@ function print_my_moodle() {
         echo "</td></tr></table>\n";
     } else {
         if (count_records("course_categories") > 1) {
-            print_simple_box_start("center", "100%");
+            print_simple_box_start("center", "100%", "#FFFFFF", 5, "categorybox");
             print_whole_category_list();
             print_simple_box_end();
         } else {