diff --git a/user/edit.html b/user/edit.html index 7c9fa9b5bcd..3e4e0a9040e 100644 --- a/user/edit.html +++ b/user/edit.html @@ -127,7 +127,7 @@ if (isadmin()) { $choices["0"] = get_string("textformat"); $choices["1"] = get_string("htmlformat"); choose_from_menu ($choices, "mailformat", $user->mailformat, "") ?> - + : @@ -137,7 +137,7 @@ if (isadmin()) { $choices['1'] = get_string('emaildigestcomplete'); $choices['2'] = get_string('emaildigestsubjects'); choose_from_menu ($choices, 'maildigest', $user->maildigest, "") ?> - + : @@ -146,7 +146,7 @@ if (isadmin()) { $choices["1"] = get_string("autosubscribeyes"); $choices["0"] = get_string("autosubscribeno"); choose_from_menu ($choices, "autosubscribe", $user->autosubscribe, "") ?> - + htmleditor) { ?> @@ -156,7 +156,7 @@ if (isadmin()) { $choices["0"] = get_string("texteditor"); $choices["1"] = get_string("htmleditor"); choose_from_menu ($choices, "htmleditor", $user->htmleditor, "") ?> - + @@ -178,7 +178,7 @@ if (isadmin()) { choose_from_menu(get_list_of_countries(), "country", $user->country, get_string("selectacountry")."...", "", ""); ?> - + : @@ -231,6 +231,27 @@ if (isadmin()) { ?> + + : + + calendar_dstforusers)) { + $presets = get_records('dst_preset'); + $presetarray = array('0' => get_string('notusingdst', 'calendar')); + if(!empty($presets)) { + foreach($presets as $preset) { + $presetarray[$preset->id] = $preset->name; + } + } + choose_from_menu ($presetarray, 'dstpreset', $user->dstpreset, ''); + } + else { + $preset = get_record('dst_preset', 'id', $CFG->calendar_dstforusers); + echo ''.$preset->name.' ('.get_string('dstpresetforced', 'admin').')'; + } + ?> + + :