diff --git a/src/main/webapp/custom_jsps/html/portlet/users_admin/user/details.jsp b/src/main/webapp/custom_jsps/html/portlet/users_admin/user/details.jsp new file mode 100644 index 0000000..43b586c --- /dev/null +++ b/src/main/webapp/custom_jsps/html/portlet/users_admin/user/details.jsp @@ -0,0 +1,186 @@ +<%-- +/** + * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ +--%> + +<%@ include file="/html/portlet/users_admin/init.jsp" %> + +<% +User selUser = (User)request.getAttribute("user.selUser"); +Contact selContact = (Contact)request.getAttribute("user.selContact"); + +Calendar birthday = CalendarFactoryUtil.getCalendar(); + +birthday.set(Calendar.MONTH, Calendar.JANUARY); +birthday.set(Calendar.DATE, 1); +birthday.set(Calendar.YEAR, 1970); + +if (selContact != null) { + birthday.setTime(selContact.getBirthday()); +} +%> + + + + + +

+ +
+ + + + + + + + <% + GroupFriendlyURLException gfurle = (GroupFriendlyURLException)errorException; + %> + + + + + + + + + + + <% + UserFieldException ufe = (UserFieldException)errorException; + + StringBundler sb = new StringBundler(); + + List fields = ufe.getFields(); + + for (int i = 0; i < fields.size(); i++) { + String field = fields.get(i); + + sb.append(LanguageUtil.get(pageContext, TextFormatter.format(field, TextFormatter.K))); + + if ((i + 1) < fields.size()) { + sb.append(StringPool.COMMA_AND_SPACE); + } + } + + + %> + + + + + + + + + + + + + <% boolean isAdministrator = RoleLocalServiceUtil.hasUserRole(user.getUserId(), user.getCompanyId(), RoleConstants.ADMINISTRATOR, true); %> + + + + + + + + + + + + + + + + <% + User displayEmailAddressUser = null; + + if (selUser != null) { + displayEmailAddressUser = (User)selUser.clone(); + + displayEmailAddressUser.setEmailAddress(displayEmailAddressUser.getDisplayEmailAddress()); + } + %> + + + + + + + + + + <%@ include file="/html/portlet/users_admin/user/details_user_name.jspf" %> + + + +
+ + + + + + + + + + + + + + <liferay-ui:message key=" src="<%= selUser.getPortraitURL(themeDisplay) %>" /> + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
\ No newline at end of file diff --git a/src/main/webapp/custom_jsps/html/portlet/users_admin/user/details_user_name.jspf b/src/main/webapp/custom_jsps/html/portlet/users_admin/user/details_user_name.jspf new file mode 100644 index 0000000..4c7592d --- /dev/null +++ b/src/main/webapp/custom_jsps/html/portlet/users_admin/user/details_user_name.jspf @@ -0,0 +1,34 @@ +<%-- +/** + * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. + * + * This library is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + */ +--%> + +<%-- --%> + + + + + + + + + + + + + + + + +<%-- --%>