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