Better dividers in the table

This commit is contained in:
moodler 2004-01-26 12:07:34 +00:00
parent a1a6750357
commit 858c8a05e8
3 changed files with 37 additions and 19 deletions

View file

@ -45,12 +45,15 @@
$currentsection = "";
foreach ($resources as $resource) {
if ($course->format == "weeks" or $course->format == "topics") {
if ($resource->section != $currentsection and $resource->section) {
$printsection = $resource->section;
$printsection = "";
if ($resource->section !== $currentsection) {
if ($resource->section) {
$printsection = $resource->section;
}
if ($currentsection !== "") {
$table->data[] = 'hr';
}
$currentsection = $resource->section;
$table->data[] = 'hr';
} else {
$printsection = "";
}
} else {
$printsection = '<span class="smallinfo">'.userdate($resource->timemodified)."</span>";