From deaa88423404e81b8331143a806b80d660126698 Mon Sep 17 00:00:00 2001 From: defacer Date: Thu, 9 Sep 2004 10:41:23 +0000 Subject: [PATCH] Full XHTML 1.0 compliance. I hope I didn't miss anything. --- calendar/event.php | 8 ++--- calendar/event_edit.html | 4 +-- calendar/event_new.html | 26 ++++++++-------- calendar/event_select.html | 64 ++++++++++++++++++++------------------ calendar/lib.php | 12 +++---- calendar/preferences.html | 24 +++++++------- calendar/view.php | 12 +++---- 7 files changed, 76 insertions(+), 74 deletions(-) diff --git a/calendar/event.php b/calendar/event.php index ec1af92eed..1df0b46c90 100644 --- a/calendar/event.php +++ b/calendar/event.php @@ -452,16 +452,16 @@ list($nextmon, $nextyr) = calendar_add_month($mon, $yr); echo calendar_filter_controls('event', 'action='.$_REQUEST['action'].'&type='.$_REQUEST['type'].'&id='.$_REQUEST['id']); - echo '

'; + echo '

'; echo calendar_top_controls('display', array('m' => $prevmon, 'y' => $prevyr)); echo calendar_get_mini($courses, $groups, $users, $prevmon, $prevyr); - echo '

'; + echo '

'; echo calendar_top_controls('display', array('m' => $mon, 'y' => $yr)); echo calendar_get_mini($courses, $groups, $users, $mon, $yr); - echo '

'; + echo '

'; echo calendar_top_controls('display', array('m' => $nextmon, 'y' => $nextyr)); echo calendar_get_mini($courses, $groups, $users, $nextmon, $nextyr); - echo '

'; + echo '
'; print_side_block_end(); print_spacer(1, 180); echo ''; diff --git a/calendar/event_edit.html b/calendar/event_edit.html index 359b2cff9b..e8408567b0 100644 --- a/calendar/event_edit.html +++ b/calendar/event_edit.html @@ -1,5 +1,5 @@
- +
- +
: @@ -59,7 +59,7 @@

diff --git a/calendar/event_new.html b/calendar/event_new.html index ec22db8ceb..3c036bec4e 100644 --- a/calendar/event_new.html +++ b/calendar/event_new.html @@ -3,13 +3,13 @@ $course = get_record('course', 'id', ($form->courseid) ? $form->courseid : $site->id); ?> - +
@@ -18,9 +18,9 @@ : @@ -29,9 +29,9 @@ : @@ -47,15 +47,15 @@
duration == 1) echo 'checked="checked"'; ?>/> - timestart + $form->timeduration);?> - - timestart + $form->timeduration) ?> + timestart + $form->timeduration);?> + + timestart + $form->timeduration) ?>
duration == 2) echo 'checked="checked"'; ?>/> - +
@@ -77,7 +77,7 @@ - + @@ -85,7 +85,7 @@ - +
: - +
- description); - if (isset($err['description'])) formerr($err['description']); + if (isset($err['description'])) formerr($err['description']); ?>
- timestart);?> - - timestart) ?> + timestart);?> + + timestart) ?>

diff --git a/calendar/event_select.html b/calendar/event_select.html index 872c9d5122..e3c521c12a 100644 --- a/calendar/event_select.html +++ b/calendar/event_select.html @@ -1,37 +1,39 @@ + - -

- - -

- - + + - - + + -
: - user)) { ?>

- - groups)) { ?>

- - - courses)) { ?> -

- - site)) { ?> -

- -
: + user)) { ?>
+ + groups)) { ?>
+ +
+ + courses)) { ?> +
+ + site)) { ?> +
+ +
  -

- -

-
  +
+ + +
+
+

+ + +

+ \ No newline at end of file diff --git a/calendar/lib.php b/calendar/lib.php index 96a3e2e9c0..3b4b9b1211 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -223,7 +223,7 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y else if(isset($typesbyday[$day]['startuser'])) { $class .= ' cal_event_user'; } - $cell = ''.$day.''; + $cell = ''.$day.''; } else { $cell = $day; @@ -348,7 +348,7 @@ function calendar_get_upcoming($courses, $groups, $users, $daysinfuture, $maxeve $eventtype = get_string($event->eventtype, $event->modulename); $icon = $CFG->modpixpath.'/'.$event->modulename.'/icon.gif'; - $output[$outkey]->icon = ''; + $output[$outkey]->icon = ''; $output[$outkey]->referer = ''.$event->name.''; $output[$outkey]->time = $eventtime; $output[$outkey]->courselink = ''.$coursecache[$event->courseid]->fullname.''; @@ -357,7 +357,7 @@ function calendar_get_upcoming($courses, $groups, $users, $daysinfuture, $maxeve } else if($event->courseid == 1) { // Site event - $output[$outkey]->icon = ''; + $output[$outkey]->icon = ''; $output[$outkey]->time = $eventtime; @@ -365,20 +365,20 @@ function calendar_get_upcoming($courses, $groups, $users, $daysinfuture, $maxeve } else if($event->courseid > 1 and !$event->groupid) { // Course event calendar_get_course_cached($coursecache, $event->courseid); - $output[$outkey]->icon = ''; + $output[$outkey]->icon = ''; $output[$outkey]->time = $eventtime; $output[$outkey]->courselink = ''.$coursecache[$event->courseid]->fullname.''; } else if ($event->groupid) { // Group event - $output[$outkey]->icon = ''; + $output[$outkey]->icon = ''; $output[$outkey]->time = $eventtime; } else if($event->userid) { // User event - $output[$outkey]->icon = ''; + $output[$outkey]->icon = ''; $output[$outkey]->time = $eventtime; } ++$processed; diff --git a/calendar/preferences.html b/calendar/preferences.html index 35abd8b5c8..1dfc6c0389 100644 --- a/calendar/preferences.html +++ b/calendar/preferences.html @@ -2,14 +2,14 @@ - + - + - + - + + " />

:

: - timeformat, "", "", ""); + choose_from_menu ($options, "timeformat", $prefs->timeformat, "", "", ""); ?> @@ -18,9 +18,9 @@

:

: -

:

: - maxevents, "", "", ""); + choose_from_menu ($options, "maxevents", $prefs->maxevents, "", "", ""); ?> @@ -54,14 +54,14 @@

:

: - lookahead, "", "", ""); + choose_from_menu ($options, "lookahead", $prefs->lookahead, "", "", ""); ?> @@ -71,7 +71,7 @@
- ">
diff --git a/calendar/view.php b/calendar/view.php index a46a5b6765..e57d524d20 100644 --- a/calendar/view.php +++ b/calendar/view.php @@ -162,16 +162,16 @@ list($nextmon, $nextyr) = calendar_add_month($mon, $yr); $getvars = 'cal_d='.$day.'&cal_m='.$mon.'&cal_y='.$yr; // For filtering echo calendar_filter_controls($_GET['view'], $getvars); - echo '

'; + echo '

'; echo calendar_top_controls('display', array('m' => $prevmon, 'y' => $prevyr)); echo calendar_get_mini($courses, $groups, $users, $prevmon, $prevyr); - echo '

'; + echo '

'; echo calendar_top_controls('display', array('m' => $mon, 'y' => $yr)); echo calendar_get_mini($courses, $groups, $users, $mon, $yr); - echo '

'; + echo '

'; echo calendar_top_controls('display', array('m' => $nextmon, 'y' => $nextyr)); echo calendar_get_mini($courses, $groups, $users, $nextmon, $nextyr); - echo '

'; + echo '
'; print_side_block_end(); print_spacer(1, 180); echo ''; @@ -213,7 +213,7 @@ function calendar_show_day($d, $m, $y, $courses, $groups, $users) { } print_side_block_start($text, array('class' => 'mycalendar')); - echo '

'.calendar_top_controls('day', array('d' => $d, 'm' => $m, 'y' => $y)).'

'; + echo '
'.calendar_top_controls('day', array('d' => $d, 'm' => $m, 'y' => $y)).'
'; if (empty($events)) { // There is nothing to display today. @@ -505,7 +505,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users) { echo "\n"; } - echo '
'; + echo '
'; print_side_block_end(); } -- 2.39.5