-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
- lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+ template="/WEB-INF/templates/admin/admin_base.tpl"
xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:core="http://mxchange.org/jsf/core/widgets"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
- xmlns:p="http://primefaces.org/ui">
-
- <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
- <ui:define name="admin_title">
- <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EXPORT_USER}" />
- </ui:define>
-
- <ui:define name="content_header">
- <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EXPORT_USER}" />
- </ui:define>
-
- <ui:define name="content">
- <ui:fragment rendered="#{userController.allUsers().isEmpty()}">
- <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
- <ui:param name="message" value="#{msg.ADMIN_USER_LIST_EMPTY}" />
- <ui:param name="styleClass" value="errors" />
- </ui:include>
- </ui:fragment>
-
- <h:form id="form_export_users" rendered="#{not userController.allUsers().isEmpty()}">
- <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}">
- <p:column exportable="false">
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_USER_ID}" />
- </f:facet>
-
- <h:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}" value="#{user.userId}">
- <f:param name="userId" value="#{user.userId}" />
- </h:link>
- </p:column>
-
- <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name')}">
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_USER_NAME_TITLE}" />
- </f:facet>
-
- <h:outputText value="#{user.userName}" />
- </p:column>
- </ui:fragment>
-
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_USER_ACCOUNT_STATUS}" />
- </f:facet>
-
- <h:outputText styleClass="#{user.userAccountStatus.styleClass}" value="#{msg[user.userAccountStatus.messageKey]}" />
- </p:column>
-
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_PERSONAL_TITLE}" />
- </f:facet>
-
- <h:outputText value="#{msg[user.userContact.contactPersonalTitle.messageKey]}" />
- </p:column>
-
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ACADEMIC_TITLE}" />
- </f:facet>
-
- <h:outputText value="#{user.userContact.contactTitle}" />
- </p:column>
-
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FIRST_NAME}" />
- </f:facet>
-
- <h:outputText value="#{user.userContact.contactFirstName}" />
- </p:column>
-
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FAMILY_NAME}" />
- </f:facet>
-
- <h:outputText value="#{user.userContact.contactFamilyName}" />
- </p:column>
-
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_STREET}" />
- </f:facet>
-
- <h:outputText value="#{user.userContact.contactStreet}" />
- </p:column>
-
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_HOUSE_NUMBER}" />
- </f:facet>
-
- <h:outputText value="#{user.userContact.contactHouseNumber}#{user.userContact.contactHouseNumberExtension}" />
- </p:column>
+ xmlns:p="http://primefaces.org/ui"
+ >
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_COUNTRY_CODE}" />
- </f:facet>
-
- <h:outputText value="#{user.userContact.contactCountry.countryCode}" />
- </p:column>
-
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ZIP_CODE}" />
- </f:facet>
-
- <h:outputText value="#{user.userContact.contactZipCode}" />
- </p:column>
-
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_CITY}" />
- </f:facet>
-
- <h:outputText value="#{user.userContact.contactCity}" />
- </p:column>
-
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_EMAIL_ADDRESS}" />
- </f:facet>
-
- <h:outputText value="#{user.userContact.contactEmailAddress}" />
- </p:column>
-
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_BIRTHDAY}" />
- </f:facet>
-
- <h:outputText id="contactBirthday" value="#{user.userContact.contactBirthday}">
- <f:convertDateTime for="contactBirthday" type="date" dateStyle="medium" />
- </h:outputText>
- </p:column>
-
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_MOBILE_NUMBER}" />
- </f:facet>
-
- <h:outputText value="#{adminContactController.generateMobileNumber(user.userContact.contactMobileNumber)}" />
- </p:column>
-
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_LANDLINE_NUMBER}" />
- </f:facet>
+ <ui:define name="document_admin_title">
+ <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EXPORT_USER}" />
+ </ui:define>
- <h:outputText value="#{adminContactController.generatePhoneNumber(user.userContact.contactLandLineNumber)}" />
- </p:column>
-
- <p:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FAX_NUMBER}" />
- </f:facet>
+ <ui:define name="content_header">
+ <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EXPORT_USER}" />
+ </ui:define>
- <h:outputText value="#{adminContactController.generatePhoneNumber(user.userContact.contactFaxNumber)}" />
- </p:column>
+ <ui:define name="content">
+ <h:form id="form-export-users">
+ <p:dataTable
+ id="table-export-users"
+ var="user"
+ value="#{userController.allUsers()}"
+ paginator="true"
+ rows="10"
+ summary="#{msg.TABLE_SUMMARY_ADMIN_EXPORT_USER}"
+ emptyMessage="#{msg.ADMIN_EMPTY_LIST_USER}"
+ >
+ <p:column exportable="false">
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_USER_ID}" />
+ </f:facet>
- <p:column>
+ <p:link
+ outcome="admin_show_user"
+ value="#{user.userId}"
+ title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}"
+ >
+ <f:param name="userId" value="#{user.userId}" />
+ </p:link>
+ </p:column>
+
+ <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name')}">
+ <p:column>
<f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_CREATED}" />
- </f:facet>
+ <h:outputText value="#{msg.ADMIN_EXPORT_USER_NAME_TITLE}" />
+ </f:facet>
+
+ <h:outputText value="#{user.userName}" />
+ </p:column>
+ </ui:fragment>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_USER_ACCOUNT_STATUS}" />
+ </f:facet>
+
+ <h:outputText styleClass="#{user.userAccountStatus.styleClass}" value="#{msg[user.userAccountStatus.messageKey]}" />
+ </p:column>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_PERSONAL_TITLE}" />
+ </f:facet>
+
+ <h:outputText value="#{msg[user.userContact.contactPersonalTitle.messageKey]}" />
+ </p:column>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ACADEMIC_TITLE}" />
+ </f:facet>
+
+ <h:outputText value="#{user.userContact.contactTitle}" />
+ </p:column>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FIRST_NAME}" />
+ </f:facet>
+
+ <h:outputText value="#{user.userContact.contactFirstName}" />
+ </p:column>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FAMILY_NAME}" />
+ </f:facet>
+
+ <h:outputText value="#{user.userContact.contactFamilyName}" />
+ </p:column>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_STREET}" />
+ </f:facet>
+
+ <h:outputText value="#{user.userContact.contactStreet}" />
+ </p:column>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_HOUSE_NUMBER}" />
+ </f:facet>
+
+ <h:outputText value="#{user.userContact.contactHouseNumber}#{user.userContact.contactHouseNumberExtension}" />
+ </p:column>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_COUNTRY_CODE}" />
+ </f:facet>
+
+ <h:outputText value="#{user.userContact.contactCountry.countryCode}" />
+ </p:column>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ZIP_CODE}" />
+ </f:facet>
+
+ <h:outputText value="#{user.userContact.contactZipCode}" />
+ </p:column>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_CITY}" />
+ </f:facet>
+
+ <h:outputText value="#{user.userContact.contactCity}" />
+ </p:column>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_EMAIL_ADDRESS}" />
+ </f:facet>
+
+ <h:outputText value="#{user.userContact.contactEmailAddress}" />
+ </p:column>
- <h:outputText id="contactCreated" value="#{user.userContact.contactCreated.time}">
- <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" locale="#{localizationController.locale}" />
- </h:outputText>
- </p:column>
- </p:dataTable>
-
- <h:panelGroup styleClass="table_medium" layout="block">
- <div class="table_header">
- <h:outputText value="#{msg.ADMIN_EXPORT_USERS_TITLE}" />
- </div>
-
- <div class="para">
- <h:outputText value="#{msg.ADMIN_EXPORT_USERS_TIMEOUT_WARNING}" />
- </div>
-
- <div class="table_footer">
- <h:commandButton styleClass="submit" type="submit" id="export_users_xls" value="#{msg.BUTTON_ADMIN_EXPORT_USERS_XLS}">
- <p:dataExporter type="xls" target="table_export_users" fileName="all_users" />
- </h:commandButton>
- </div>
- </h:panelGroup>
- </h:form>
- </ui:define>
- </ui:composition>
-</html>
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_BIRTHDAY}" />
+ </f:facet>
+
+ <h:outputText id="contactBirthday" value="#{user.userContact.contactBirthday}">
+ <f:convertDateTime type="date" dateStyle="medium" />
+ </h:outputText>
+ </p:column>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_MOBILE_NUMBER}" />
+ </f:facet>
+
+ <h:outputText value="#{adminContactController.generateMobileNumber(user.userContact.contactMobileNumber)}" />
+ </p:column>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_LANDLINE_NUMBER}" />
+ </f:facet>
+
+ <h:outputText value="#{adminContactController.generatePhoneNumber(user.userContact.contactLandLineNumber)}" />
+ </p:column>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FAX_NUMBER}" />
+ </f:facet>
+
+ <h:outputText value="#{adminContactController.generatePhoneNumber(user.userContact.contactFaxNumber)}" />
+ </p:column>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_CREATED}" />
+ </f:facet>
+
+ <h:outputText id="contactCreated" value="#{user.userContact.contactCreated}">
+ <f:convertDateTime type="both" timeStyle="short" dateStyle="short" locale="#{localizationController.locale}" />
+ </h:outputText>
+ </p:column>
+ </p:dataTable>
+
+ <h:panelGroup layout="block">
+ <div class="table-header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_USERS_TITLE}" />
+ </div>
+
+ <div class="para">
+ <h:outputText value="#{msg.ADMIN_EXPORT_USERS_TIMEOUT_WARNING}" />
+ </div>
+
+ <p:commandButton
+ ajax="false"
+ type="submit"
+ value="#{msg.BUTTON_ADMIN_EXPORT_USERS_XLS}"
+ >
+
+ <p:dataExporter
+ type="xls"
+ target="table-export-users"
+ fileName="all_users"
+ />
+ </p:commandButton>
+ </h:panelGroup>
+ </h:form>
+ </ui:define>
+</ui:composition>