From cb29b02006a899a50be537d5e5bded7314b71e68 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 3 Sep 2003 15:25:08 +0000 Subject: [PATCH] Some tweaks in the category/course display (styles mostly) --- course/index.php | 2 +- course/lib.php | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/course/index.php b/course/index.php index 30e30927ca..24f877f7fc 100644 --- a/course/index.php +++ b/course/index.php @@ -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(); diff --git a/course/lib.php b/course/lib.php index 0ecc806aa4..520d32e9bc 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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 "$catimage"; - echo ""; + echo ""; echo "wwwroot/course/category.php?id=$category->id\">$category->name"; - echo ""; - echo " "; + echo ""; + echo " "; echo "\n"; if ($courses) { foreach ($courses as $course) { $linkcss = $course->visible ? "" : " class=\"dimmed\" "; echo " "; - echo "\n"; + echo "\n"; echo "wwwroot/course/view.php?id=$course->id\">$course->fullname"; - echo "\n"; + echo "\n"; if ($course->guest ) { echo "wwwroot/course/view.php?id=$course->id\">"; echo "\"\""; @@ -1011,10 +1011,10 @@ function print_category_info($category, $depth) { echo ""; } - echo ""; + echo ""; echo "wwwroot/course/category.php?id=$category->id\">$category->name"; - echo ""; - echo "$category->coursecount"; + echo ""; + echo "$category->coursecount"; } echo "\n\n"; } @@ -1191,7 +1191,7 @@ function print_my_moodle() { echo "\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 { -- 2.39.5