1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
4 xmlns="http://www.w3.org/1999/xhtml"
5 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
6 xmlns:h="http://xmlns.jcp.org/jsf/html"
7 xmlns:f="http://xmlns.jcp.org/jsf/core"
8 xmlns:p="http://primefaces.org/ui">
10 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
11 <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_EXPORT_USER}</ui:define>
13 <ui:define name="content_header">
14 #{msg.CONTENT_TITLE_ADMIN_EXPORT_USER}
17 <ui:define name="content">
18 <h:form id="form_export_users">
19 <p:dataTable id="table_export_users" var="user" value="#{userController.allUsers()}" tableStyleClass="table_full" paginator="true" rows="10" summary="#{msg.TABLE_SUMMARY_ADMIN_EXPORT_USER}" rendered="#{not userController.allUsers().isEmpty()}">
20 <p:column exportable="false">
21 <f:facet name="header">
22 <h:outputText value="#{msg.ADMIN_EXPORT_USER_ID}" />
25 <h:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}" value="#{user.userId}">
26 <f:param name="userId" value="#{user.userId}" />
30 <ui:fragment rendered="#{featureController.isFeatureEnabled('user_name_required')}">
32 <f:facet name="header">
33 <h:outputText value="#{msg.ADMIN_EXPORT_USER_NAME_TITLE}" />
36 <h:outputText value="#{user.userName}" />
41 <f:facet name="header">
42 <h:outputText value="#{msg.ADMIN_EXPORT_USER_ACCOUNT_STATUS}" />
45 <h:outputText styleClass="#{user.userAccountStatus.styleClass}" value="#{msg[user.userAccountStatus.messageKey]}" />
49 <f:facet name="header">
50 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_GENDER}" />
53 <h:outputText value="#{msg[user.userContact.contactGender.messageKey]}" />
57 <f:facet name="header">
58 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_TITLE}" />
61 <h:outputText value="#{user.userContact.contactTitle}" />
65 <f:facet name="header">
66 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FIRST_NAME}" />
69 <h:outputText value="#{user.userContact.contactFirstName}" />
73 <f:facet name="header">
74 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FAMILY_NAME}" />
77 <h:outputText value="#{user.userContact.contactFamilyName}" />
81 <f:facet name="header">
82 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_STREET}" />
85 <h:outputText value="#{user.userContact.contactStreet}" />
89 <f:facet name="header">
90 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_HOUSE_NUMBER}" />
93 <h:outputText value="#{user.userContact.contactHouseNumber}#{user.userContact.contactHouseNumberExtension}" />
97 <f:facet name="header">
98 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_COUNTRY_CODE}" />
101 <h:outputText value="#{user.userContact.contactCountry.countryCode}" />
105 <f:facet name="header">
106 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ZIP_CODE}" />
109 <h:outputText value="#{user.userContact.contactZipCode}" />
113 <f:facet name="header">
114 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_CITY}" />
117 <h:outputText value="#{user.userContact.contactCity}" />
121 <f:facet name="header">
122 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_EMAIL_ADDRESS}" />
125 <h:outputText value="#{user.userContact.contactEmailAddress}" />
129 <f:facet name="header">
130 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_BIRTHDAY}" />
133 <h:outputText id="contactBirthday" value="#{user.userContact.contactBirthday}">
134 <f:convertDateTime for="contactBirthday" type="date" dateStyle="medium" />
139 <f:facet name="header">
140 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_MOBILE_NUMBER}" />
143 <h:outputText value="#{adminContactController.generateMobileNumber(user.userContact.contactMobileNumber)}" />
147 <f:facet name="header">
148 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_LANDLINE_NUMBER}" />
151 <h:outputText value="#{adminContactController.generatePhoneNumber(user.userContact.contactLandLineNumber)}" />
155 <f:facet name="header">
156 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FAX_NUMBER}" />
159 <h:outputText value="#{adminContactController.generatePhoneNumber(user.userContact.contactFaxNumber)}" />
163 <f:facet name="header">
164 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_CREATED}" />
167 <h:outputText id="contactCreated" value="#{user.userContact.contactCreated.time}">
168 <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" locale="#{localizationController.locale}" />
173 <h:panelGroup styleClass="table_medium" layout="block">
174 <div class="table_header">
175 <h:outputText value="#{msg.ADMIN_EXPORT_USERS_TITLE}" />
179 <h:outputText value="#{msg.ADMIN_EXPORT_USERS_TIMEOUT_WARNING}" />
182 <div class="table_footer">
183 <h:commandButton styleClass="submit" type="submit" id="export_users_xls" value="#{msg.BUTTON_ADMIN_EXPORT_USERS_XLS}">
184 <p:dataExporter type="xls" target="table_export_users" fileName="all_users" />