Lots of work on site display, over many files. Improved front page

and display of site modules.
This commit is contained in:
martin
2002-08-03 08:16:31 +00:00
parent 3f63fdfbfb
commit 94361e021e
23 changed files with 194 additions and 136 deletions
+3 -20
View File
@@ -4,11 +4,11 @@
include("../mod/forum/lib.php");
if (! $sections = get_all_sections($course->id, $course->numsections) ) {
if (! $sections = get_all_sections($course->id)) {
$section->course = $course->id; // Create a default section.
$section->section = 0;
$section->id = insert_record("course_sections", $section);
if (! $sections = get_all_sections($course->id, $course->numsections) ) {
if (! $sections = get_all_sections($course->id) ) {
error("Error finding or creating section structures for this course");
}
}
@@ -141,24 +141,7 @@
echo text_to_html($thisweek->summary);
echo "<P>";
if ($thisweek->sequence) {
$thisweekmods = explode(",", $thisweek->sequence);
foreach ($thisweekmods as $modnumber) {
$mod = $mods[$modnumber];
$instancename = get_field("$mod->modname", "name", "id", "$mod->instance");
echo "<IMG SRC=\"../mod/$mod->modname/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"$mod->modfullname\">";
echo " <A TITLE=\"$mod->modfullname\"";
echo " HREF=\"../mod/$mod->modname/view.php?id=$mod->id\">$instancename</A>";
if (isediting($course->id)) {
echo make_editing_buttons($mod->id);
}
echo "<BR>\n";
}
}
echo "</UL></P>\n";
print_section($course->id, $thisweek, $mods, $modnamesused);
if (isediting($course->id)) {
echo "<DIV ALIGN=right>";