1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 09:55:33 +02:00

replacing fieldset in small forms with divs

This commit is contained in:
toyomoyo 2007-03-01 05:10:58 +00:00
parent 7a4a9005c5
commit 2aab6488a6
2 changed files with 7 additions and 7 deletions

@ -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) {

@ -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');