Permalink
Browse files

Different styles for content when week is highlighted

  • Loading branch information...
1 parent 541b602 commit bfca4cffdc4c9aa0131ae7b288a456868589a05e moodler committed Dec 13, 2002
Showing with 8 additions and 6 deletions.
  1. +8 −6 course/weeks.php
View
@@ -110,7 +110,7 @@
echo "</TD>";
echo "<TD NOWRAP BGCOLOR=\"$THEME->cellheading\" class=\"weeklyoutlineside\" VALIGN=top ALIGN=CENTER WIDTH=10>";
- echo "</TD>";
+ echo "&nbsp;</TD>";
echo "</TR>";
echo "<TR><TD COLSPAN=3><IMG SRC=\"../pix/spacer.gif\" WIDTH=1 HEIGHT=1></TD></TR>";
}
@@ -141,17 +141,19 @@
$endweekday = userdate($weekdate+518400, " %d %B");
if ($thisweek) {
- $highlightcolor = "bgcolor=\"$THEME->cellheading2\" class=\"weeklyoutlinesidehighlight\"";
+ $colorsides = "bgcolor=\"$THEME->cellheading2\" class=\"weeklyoutlinesidehighlight\"";
+ $colormain = "bgcolor=\"$THEME->cellcontent\" class=\"weeklyoutlinecontenthighlight\"";
} else {
- $highlightcolor = "bgcolor=\"$THEME->cellheading\" class=\"weeklyoutlineside\"";
+ $colorsides = "bgcolor=\"$THEME->cellheading\" class=\"weeklyoutlineside\"";
+ $colormain = "bgcolor=\"$THEME->cellcontent\" class=\"weeklyoutlinecontent\"";
}
echo "<TR>";
- echo "<TD NOWRAP $highlightcolor VALIGN=top WIDTH=20>";
+ echo "<TD NOWRAP $colorsides VALIGN=top WIDTH=20>";
echo "<P ALIGN=CENTER><FONT SIZE=3><B>$week</B></FONT></P>";
echo "</TD>";
- echo "<TD VALIGN=top BGCOLOR=\"$THEME->cellcontent\" class=\"weeklyoutlinecontent\" WIDTH=\"100%\">";
+ echo "<TD $colormain VALIGN=top WIDTH=\"100%\">";
echo "<P><FONT SIZE=3 COLOR=\"$THEME->cellheading2\">$weekday - $endweekday</FONT></P>";
if (! $thisweek = $sections[$week]) {
@@ -179,7 +181,7 @@
}
echo "</TD>";
- echo "<TD NOWRAP $highlightcolor VALIGN=top ALIGN=CENTER WIDTH=10>";
+ echo "<TD NOWRAP $colorsides VALIGN=top ALIGN=CENTER WIDTH=10>";
echo "<FONT SIZE=1>";
if (isset($USER->section)) {
$strshowallweeks = get_string("showallweeks");

0 comments on commit bfca4cf

Please sign in to comment.