Changed to show the hidden surveys dimmed (bug #364)

This commit is contained in:
stronk7 2003-04-24 18:28:30 +00:00
parent e6c136e1bf
commit c37053ea2f

View File

@ -54,13 +54,19 @@
} else {
$section = "";
}
if ($course->format == "weeks" or $course->format == "topics") {
$table->data[] = array ($section,
"<A HREF=\"view.php?id=$survey->coursemodule\">$survey->name</A>",
"<A HREF=\"view.php?id=$survey->coursemodule\">$ss</A>");
//Calculate the href
if (!$survey->visible) {
//Show dimmed if the mod is hidden
$tt_href = "<A class=\"dimmed\" HREF=\"view.php?id=$survey->coursemodule\">$survey->name</A>";
} else {
$table->data[] = array ("<A HREF=\"view.php?id=$survey->coursemodule\">$survey->name</A>",
"<A HREF=\"view.php?id=$survey->coursemodule\">$ss</A>");
//Show normal if the mod is visible
$tt_href = "<A HREF=\"view.php?id=$survey->coursemodule\">$survey->name</A>";
}
if ($course->format == "weeks" or $course->format == "topics") {
$table->data[] = array ($section, $tt_href, "<A HREF=\"view.php?id=$survey->coursemodule\">$ss</A>");
} else {
$table->data[] = array ($tt_href, "<A HREF=\"view.php?id=$survey->coursemodule\">$ss</A>");
}
}