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:
+3
-3
@@ -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
@@ -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> </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) {
|
||||
|
||||
Reference in New Issue
Block a user