Removed THEAD and TBODY from calendar HTML because these tables are

not really data tables in the sense that W3C talks about them
This commit is contained in:
moodler
2005-02-14 16:50:02 +00:00
parent 3538a79693
commit f136e4c5ae
2 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -143,7 +143,7 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
calendar_events_by_day($events, $m, $y, $eventsbyday, $durationbyday, $typesbyday);
$content .= '<table class="minicalendar">'; // Begin table
$content .= '<thead><tr>'; // Header row: day names
$content .= '<tr class="weekdays">'; // Header row: day names
// Print out the names of the weekdays
$days = array('sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat');
@@ -153,7 +153,7 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
$content .= '<th>'.get_string($days[$i % 7], 'calendar').'</th>';
}
$content .= '</tr></thead><tbody><tr>'; // End of day names; prepare for day numbers
$content .= '</tr><tr>'; // End of day names; prepare for day numbers
// For the table display. $week is the row; $dayweek is the column.
$dayweek = $startwday;
@@ -269,7 +269,7 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
}
$content .= '</tr>'; // Last row ends
$content .= '</tbody></table>'; // Tabular display of days ends
$content .= '</table>'; // Tabular display of days ends
return $content;
}
+5 -5
View File
@@ -344,7 +344,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users) {
echo '</div>';
// Start calendar display
echo '<table class="calendarmonth"><thead><tr>'; // Begin table. First row: day names
echo '<table class="calendarmonth"><tr class="weekdays">'; // Begin table. First row: day names
// Print out the names of the weekdays
$days = array('sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday');
@@ -354,7 +354,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users) {
echo '<th>'.get_string($days[$i % 7], 'calendar').'</th>';
}
echo '</tr></thead><tbody><tr>'; // End of day names; prepare for day numbers
echo '</tr><tr>'; // End of day names; prepare for day numbers
// For the table display. $week is the row; $dayweek is the column.
$week = 1;
@@ -459,12 +459,12 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users) {
for($i = $dayweek; $i <= $display->maxwday; ++$i) {
echo '<td>&nbsp;</td>';
}
echo "</tr>\n</tbody>\n"; // Last row ends
echo "</tr>\n"; // Last row ends
echo "</table>\n"; // Tabular display of days ends
// OK, now for the filtering display
echo '<div class="filters"><table><tbody><tr>';
echo '<div class="filters"><table><tr>';
// Global events
if($SESSION->cal_show_global) {
@@ -511,7 +511,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users) {
echo "</tr>\n";
}
echo '</tbody></table></div>';
echo '</table></div>';
}
function calendar_show_upcoming_events($courses, $groups, $users, $futuredays, $maxevents) {