Index: lams_admin/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_admin/conf/language/lams/ApplicationResources.properties,v diff -u -r1.72 -r1.73 --- lams_admin/conf/language/lams/ApplicationResources.properties 1 Oct 2010 20:30:49 -0000 1.72 +++ lams_admin/conf/language/lams/ApplicationResources.properties 1 Oct 2010 21:01:25 -0000 1.73 @@ -459,6 +459,8 @@ admin.servertimezone.dst.offset =DST offset: {0} admin.servertimezone.name =Name: {0} admin.servertimezone.select =Select +admin.user.enable.flash.for.learner.window =Enable Flash for Learner Window +admin.user.time.zone =Time Zone #======= End labels: Exported 437 labels for en AU ===== Index: lams_admin/conf/xdoclet/struts-forms.xml =================================================================== RCS file: /usr/local/cvsroot/lams_admin/conf/xdoclet/struts-forms.xml,v diff -u -r1.36 -r1.37 --- lams_admin/conf/xdoclet/struts-forms.xml 1 Oct 2010 20:30:49 -0000 1.36 +++ lams_admin/conf/xdoclet/struts-forms.xml 1 Oct 2010 21:01:26 -0000 1.37 @@ -46,6 +46,8 @@ + + Index: lams_admin/src/java/org/lamsfoundation/lams/admin/web/UserAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_admin/src/java/org/lamsfoundation/lams/admin/web/UserAction.java,v diff -u -r1.51 -r1.52 --- lams_admin/src/java/org/lamsfoundation/lams/admin/web/UserAction.java 1 Oct 2010 20:30:49 -0000 1.51 +++ lams_admin/src/java/org/lamsfoundation/lams/admin/web/UserAction.java 1 Oct 2010 21:01:25 -0000 1.52 @@ -85,6 +85,7 @@ private IUserManagementService service; private MessageService messageService; private static IThemeService themeService; + private static ITimezoneService timezoneService; private static List locales; private static List authenticationMethods; @@ -98,6 +99,9 @@ if (themeService == null) { themeService = AdminServiceProxy.getThemeService(getServlet().getServletContext()); } + if (timezoneService == null) { + timezoneService = AdminServiceProxy.getTimezoneService(getServlet().getServletContext()); + } } public ActionForward edit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { @@ -217,6 +221,18 @@ } } userForm.set("orgId", (org == null ? null : org.getOrganisationId())); + + // Get all available time zones + List availableTimeZones = timezoneService.getDefaultTimezones(); + TreeSet timezoneDtos = new TreeSet(new TimezoneDTOComparator()); + for (Timezone availableTimeZone : availableTimeZones) { + String timezoneId = availableTimeZone.getTimezoneId(); + TimezoneDTO timezoneDto = new TimezoneDTO(); + timezoneDto.setTimeZoneId(timezoneId); + timezoneDto.setDisplayName(TimeZone.getTimeZone(timezoneId).getDisplayName()); + timezoneDtos.add(timezoneDto); + } + request.setAttribute("timezoneDtos", timezoneDtos); // for breadcrumb links if (org != null) { Index: lams_admin/web/user.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_admin/web/user.jsp,v diff -u -r1.27 -r1.28 --- lams_admin/web/user.jsp 20 Aug 2009 06:40:01 -0000 1.27 +++ lams_admin/web/user.jsp 1 Oct 2010 21:01:25 -0000 1.28 @@ -1,4 +1,5 @@ <%@ include file="/taglibs.jsp"%> +<%@ page import="org.lamsfoundation.lams.util.Configuration" import="org.lamsfoundation.lams.util.ConfigurationKeys" %> @@ -118,6 +119,24 @@ : + + <%=Configuration.get(ConfigurationKeys.FLASH_ENABLE)%> + + + + : + + + + + + + + + + + + : @@ -130,7 +149,21 @@ + + : + + + + + ${timezoneDto.timeZoneId} - ${timezoneDto.displayName} + + + + + + + : Index: lams_admin/web/WEB-INF/struts/struts-config.xml =================================================================== RCS file: /usr/local/cvsroot/lams_admin/web/WEB-INF/struts/Attic/struts-config.xml,v diff -u -r1.31 -r1.32 --- lams_admin/web/WEB-INF/struts/struts-config.xml 1 Oct 2010 20:30:49 -0000 1.31 +++ lams_admin/web/WEB-INF/struts/struts-config.xml 1 Oct 2010 21:01:26 -0000 1.32 @@ -102,6 +102,8 @@ + +