From: moodler Date: Mon, 11 Aug 2003 13:02:45 +0000 (+0000) Subject: Added a box to display subcategories X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8210692dc3e6ebfa1c631a0d4e1803affdfd2744;p=moodle.git Added a box to display subcategories --- diff --git a/course/category.php b/course/category.php index b48c05f39e..39ea3ca9a9 100644 --- a/course/category.php +++ b/course/category.php @@ -195,7 +195,20 @@ } // End of editing stuff +/// Print out all the sub-categories + + if ($subcategories = get_records("course_categories", "parent", $category->id)) { + echo ""; + echo ""; + echo "
".get_string("subcategories")."
"; + foreach ($subcategories as $subcategory) { + echo "id\">$subcategory->name
"; + } + echo "
"; + echo "
"; + } + /// Print out all the courses if (!$courses = get_courses($category->id)) {