]> git.mjollnir.org Git - moodle.git/commitdiff
Minor forms fixes for Strict MDL-7861
authormoodler <moodler>
Sat, 6 Jan 2007 05:14:51 +0000 (05:14 +0000)
committermoodler <moodler>
Sat, 6 Jan 2007 05:14:51 +0000 (05:14 +0000)
calendar/lib.php
calendar/view.php

index bb5a64ac898e2e7f5e7cd811915bdb3f606eb6c5..4522bef8fc5b533b35895d54f5f802f95ff9b8d5 100644 (file)
@@ -1267,7 +1267,7 @@ function calendar_preferences_button() {
 
     return "<form $CFG->frametarget method=\"get\" ".
            " action=\"$CFG->wwwroot/calendar/preferences.php\">".
-           "<input type=\"submit\" value=\"".get_string("preferences", "calendar")." ...\" /></form>";
+           "<fieldset class=\"invisiblefieldset\"><input type=\"submit\" value=\"".get_string("preferences", "calendar")." ...\" /></fieldset></form>";
 }
 
 function calendar_format_event_time($event, $now, $morehref, $usecommonwords = true) {
@@ -1377,4 +1377,4 @@ function calendar_set_filters_status($packed_bitfield) {
     return true;
 }
 
-?>
\ No newline at end of file
+?>
index 0ead12a7929272dd806e5606d404e0c08ae43258..82cb148c00b49a90eafa16680176c3ab68892e90 100644 (file)
@@ -223,12 +223,13 @@ function calendar_show_day($d, $m, $y, $courses, $groups, $users) {
     if (!isguest() && !empty($USER->id)) {
         $text.= '<div class="buttons">';
         $text.= '<form action="'.CALENDAR_URL.'event.php" method="get">';
+        $text.= '<fieldset class="invisiblefieldset">';
         $text.= '<input type="hidden" name="action" value="new" />';
         $text.= '<input type="hidden" name="cal_d" value="'.$d.'" />';
         $text.= '<input type="hidden" name="cal_m" value="'.$m.'" />';
         $text.= '<input type="hidden" name="cal_y" value="'.$y.'" />';
         $text.= '<input type="submit" value="'.get_string('newevent', 'calendar').'" />';
-        $text.= '</form></div>';
+        $text.= '</fieldset></form></div>';
     }
 
     $text .= get_string('dayview', 'calendar').': '.calendar_course_filter_selector($getvars);
@@ -346,11 +347,12 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users) {
     $text = '';
     if(!isguest() && !empty($USER->id)) {
         $text.= '<div class="buttons"><form action="'.CALENDAR_URL.'event.php" method="get">';
+        $text.= '<fieldset class="invisiblefieldset">';
         $text.= '<input type="hidden" name="action" value="new" />';
         $text.= '<input type="hidden" name="cal_m" value="'.$m.'" />';
         $text.= '<input type="hidden" name="cal_y" value="'.$y.'" />';
         $text.= '<input type="submit" value="'.get_string('newevent', 'calendar').'" />';
-        $text.= '</form></div>';
+        $text.= '</fieldset></form></div>';
     }
 
     $text .= get_string('detailedmonthview', 'calendar').': '.calendar_course_filter_selector($getvars);
@@ -541,13 +543,14 @@ function calendar_show_upcoming_events($courses, $groups, $users, $futuredays, $
     if(!isguest() && !empty($USER->id)) {
         $text.= '<div class="buttons">';
         $text.= '<form action="'.CALENDAR_URL.'event.php" method="get">';
+        $text.= '<fieldset class="invisiblefieldset">';
         $text.= '<input type="hidden" name="action" value="new" />';
         /*
         $text.= '<input type="hidden" name="cal_m" value="'.$m.'" />';
         $text.= '<input type="hidden" name="cal_y" value="'.$y.'" />';
         */
         $text.= '<input type="submit" value="'.get_string('newevent', 'calendar').'" />';
-        $text.= '</form></div>';
+        $text.= '</fieldset></form></div>';
     }
 
     $text .= get_string('upcomingevents', 'calendar').': '.calendar_course_filter_selector('from=upcoming');