From f136e4c5ae866f0389d67470a7577d7053127cbb Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 14 Feb 2005 16:50:02 +0000 Subject: [PATCH] Removed THEAD and TBODY from calendar HTML because these tables are not really data tables in the sense that W3C talks about them --- calendar/lib.php | 6 +++--- calendar/view.php | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/calendar/lib.php b/calendar/lib.php index f3b5038d005..62b982e015e 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -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 .= ''; // Begin table - $content .= ''; // Header row: day names + $content .= ''; // 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 .= ''; } - $content .= ''; // End of day names; prepare for day numbers + $content .= ''; // 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 .= ''; // Last row ends - $content .= '
'.get_string($days[$i % 7], 'calendar').'
'; // Tabular display of days ends + $content .= ''; // Tabular display of days ends return $content; } diff --git a/calendar/view.php b/calendar/view.php index ba20e1f68fd..6a9f63225ff 100644 --- a/calendar/view.php +++ b/calendar/view.php @@ -344,7 +344,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users) { echo ''; // Start calendar display - echo ''; // Begin table. First row: day names + echo '
'; // 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 ''; } - echo ''; // End of day names; prepare for day numbers + echo ''; // 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 ''; } - echo "\n\n"; // Last row ends + echo "\n"; // Last row ends echo "
'.get_string($days[$i % 7], 'calendar').'
 
\n"; // Tabular display of days ends // OK, now for the filtering display - echo '
'; + echo '
'; // Global events if($SESSION->cal_show_global) { @@ -511,7 +511,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users) { echo "\n"; } - echo '
'; + echo ''; } function calendar_show_upcoming_events($courses, $groups, $users, $futuredays, $maxevents) {