Layout tweak
[moodle.git] / course / index.php
CommitLineData
f9903ed0 1<?PHP // $Id$
2
3 require("../config.php");
4 require("lib.php");
5
6 print_header("Courses", "Courses", "Courses", "");
7
8 optional_variable($cat, 1);
9
10 if ($courses = get_records("course", "category", $cat, "fullname ASC")) {
11
da5c172a 12 foreach ($courses as $course) {
f9903ed0 13 print_course($course);
14 echo "<BR>\n";
15 }
16
17 } else {
18 echo "<H3>No courses have been defined yet</H3>";
19 }
20
21 print_footer();
22
23?>
24
25