]> git.mjollnir.org Git - moodle.git/commitdiff
replacing fieldset in small forms with divs
authortoyomoyo <toyomoyo>
Thu, 1 Mar 2007 05:10:58 +0000 (05:10 +0000)
committertoyomoyo <toyomoyo>
Thu, 1 Mar 2007 05:10:58 +0000 (05:10 +0000)
calendar/lib.php
calendar/view.php

index b3abd872ce54cea1d507047b8c045c542be67045..af5e5c50ed4d616eb200a159f3984d6d31506b97 100644 (file)
@@ -1267,7 +1267,7 @@ function calendar_preferences_button() {
 
     return "<form $CFG->frametarget method=\"get\" ".
            " action=\"$CFG->wwwroot/calendar/preferences.php\">".
-           "<fieldset class=\"invisiblefieldset\"><input type=\"submit\" value=\"".get_string("preferences", "calendar")." ...\" /></fieldset></form>";
+           "<div><input type=\"submit\" value=\"".get_string("preferences", "calendar")." ...\" /></div></form>";
 }
 
 function calendar_format_event_time($event, $now, $morehref, $usecommonwords = true) {
index 42a4e7983a64fca7fbdb045b9462cd4b9e6a8a31..090a370c27ee9a8cb84fea9e397fd9d4bbfc9576 100644 (file)
@@ -227,13 +227,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.= '<div>';
         $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.= '</fieldset></form></div>';
+        $text.= '</div></form></div>';
     }
 
     $text .= get_string('dayview', 'calendar').': '.calendar_course_filter_selector($getvars);
@@ -357,12 +357,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.= '<div>';
         $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.= '</fieldset></form></div>';
+        $text.= '</div></form></div>';
     }
 
     $text .= get_string('detailedmonthview', 'calendar').': '.calendar_course_filter_selector($getvars);
@@ -553,14 +553,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.= '<div>';
         $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.= '</fieldset></form></div>';
+        $text.= '</div></form></div>';
     }
 
     $text .= get_string('upcomingevents', 'calendar').': '.calendar_course_filter_selector('from=upcoming');