/// Layout the whole page as three big columns.
- echo '<div id="layout-table" class="weekscss">';
+ echo '<div id="layout-table">';
/// The left column ...
print_heading_block(get_string('weeklyoutline'), 'outline');
- echo '<table class="weeks" width="100%">';
+ //--echo '<table class="weeks" width="100%">';
+ echo "<ul class='weekscss'>\n"; //'weeks'
/// If currently moving a file then show the current clipboard
if (ismoving($course->id)) {
$stractivityclipboard = strip_tags(get_string('activityclipboard', '', addslashes($USER->activitycopyname)));
$strcancel= get_string('cancel');
- echo '<tr class="clipboard">';
- echo '<td colspan="3">';
+ //--echo '<tr class="clipboard">';
+ //echo '<td colspan="3">';
+ echo '<li class="clipboard">';
echo $stractivityclipboard.' (<a href="mod.php?cancelcopy=true&sesskey='.$USER->sesskey.'">'.$strcancel.'</a>)';
- echo '</td>';
- echo '</tr>';
+ echo "</li>\n";
+ //echo '</td>';
+ //--echo '</tr>';
}
/// Print Section 0 with general activities
$thissection = $sections[$section];
if ($thissection->summary or $thissection->sequence or isediting($course->id)) {
- echo '<tr id="section-0" class="section main">';
+ /*--echo '<tr id="section-0" class="section main">';
echo '<td class="left side"> </td>';
echo '<td class="content">';
+ */
+ echo '<li id="section-0" class="section main" >'; //'<div class="left side"> </div>
+ echo '<div class="content">';
echo '<div class="summary">';
$summaryformatoptions->noclean = true;
print_section_add_menus($course, $section, $modnames);
}
- echo '</td>';
+ /*--echo '</td>';
echo '<td class="right side"> </td>';
echo '</tr>';
- //TODO (nfreear): Accessibility: how to get rid of the 'separator' row??
echo '<tr class="section separator"><td colspan="3" class="spacer"></td></tr>';
-
+ */
+ echo '</div><div class="right side" > </div><div class="clearer"></div>';
+ echo "</li>\n";
}
$sectionstyle = '';
}
- echo '<tr id="section-'.$section.'" class="section main'.$sectionstyle.'">';
+ /*--echo '<tr id="section-'.$section.'" class="section main'.$sectionstyle.'">';
echo '<td class="left side"> </td>';
echo '<td class="content">';
+ */
+ echo '<li id="section-'.$section.'" class="section main'.$sectionstyle.'" >'; //'<div class="left side"> </div>';
+
+ echo '<div class="content">';
if (!isteacher($course->id) and !$thissection->visible) { // Hidden for students
echo '<div class="weekdates">'.$weekday.' - '.$endweekday.' ('.get_string('notavailable').')</div>';
print_section_add_menus($course, $section, $modnames);
}
}
- echo '</td>';
+ /*--echo '</td>';
echo '<td class="right side">';
-
+ */
+ echo '</div><div class="right side">';
+
if ($displaysection == $section) {
echo '<a href="view.php?id='.$course->id.'&week=all#section-'.$section.'" title="'.$strshowallweeks.'">'.
'<img src="'.$CFG->pixpath.'/i/all.gif" class="icon wkall" alt="'.$strshowallweeks.'" /></a><br />';
}
}
- echo '</td></tr>';
- //TODO (nfreear): Accessibility: how to get rid of the 'separator' row??
+ /*--echo '</td></tr>';
echo '<tr class="section separator"><td colspan="3" class="spacer"></td></tr>';
+ */
+ echo '</div><div class="clearer"></div>';
+ echo "</li>\n";
}
$section++;
$weekdate = $nextweekdate;
}
- echo '</table>';
+ //--echo '</table>';
+ echo "</ul>\n";
if (!empty($sectionmenu)) {
echo '<div align="center" class="jumpmenu">';
vertical-align:top;
}
-#course-view .section .content {
+#course-view .weeks .section .content {
padding:5px;
border-style:solid;
border-width:1px;
clear: both;
}
-#course-view .section .side {
+#course-view .weeks .section .side {
padding:5px;
border-style:solid;
border-width:1px;
}
-#course-view .section .left {
+#course-view .weeks .section .left {
border-right:0px;
text-align:center;
width: 1.5em;
}
-#course-view .section .right {
+#course-view .weeks .section .right {
border-left:0px;
text-align:center;
width: 1.5em;
#course-view .section .weekdates {
}
+
+/*Accessibility: No-tables course format. */
+#course-view ul.weekscss, .weekscss li {
+ margin: 0;
+ padding: 0;
+ text-indent: 0;
+ list-style: none;
+}
+.weekscss li.section {
+ margin-bottom: 0.5em;
+ width: 100%;
+ border-style:solid;
+ border-width:1px;
+}
+.weekscss .content, .weekscss .side {
+ padding: 5px;
+}
+.weekscss .content {
+ margin-left: 4%; /* Why? Firefox 8%; IE 4% */
+ width: 80%;
+ float: left;
+}
+.weekscss .side {
+ width: 8%;
+ float: left;
+}
+.weekscss .clearer {
+ height: 0;
+}
+
.section .activity img.activityicon {
vertical-align:middle;
height:16px;