]> git.mxchange.org Git - jfinancials-war.git/commitdiff
imported more files from project "pizzaservice-web" and removed some language strings...
authorRoland Haeder <roland@mxchange.org>
Mon, 5 Oct 2015 10:48:19 +0000 (12:48 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 5 Oct 2015 10:49:02 +0000 (12:49 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

26 files changed:
src/java/log4j2.xml [new file with mode: 0644]
src/java/org/mxchange/localization/bundle_de_DE.properties [new file with mode: 0644]
src/java/org/mxchange/localization/bundle_en_US.properties [new file with mode: 0644]
web/WEB-INF/templates.dist/admin_page.xhtml [new file with mode: 0644]
web/WEB-INF/templates.dist/guest_page.xhtml [new file with mode: 0644]
web/WEB-INF/templates.dist/template.tpl [new file with mode: 0644]
web/WEB-INF/templates/admin/admin_base.tpl [new file with mode: 0644]
web/WEB-INF/templates/admin/admin_footer.tpl [new file with mode: 0644]
web/WEB-INF/templates/admin/admin_menu.tpl [new file with mode: 0644]
web/WEB-INF/templates/base.tpl [new file with mode: 0644]
web/WEB-INF/templates/generic/gender_selection_box.tpl [new file with mode: 0644]
web/WEB-INF/templates/guest/guest_base.tpl [new file with mode: 0644]
web/WEB-INF/templates/guest/guest_footer.tpl [new file with mode: 0644]
web/WEB-INF/templates/guest/guest_login_form.tpl [new file with mode: 0644]
web/WEB-INF/templates/guest/guest_menu.tpl [new file with mode: 0644]
web/WEB-INF/templates/guest/guest_personal_data.tpl [new file with mode: 0644]
web/WEB-INF/templates/guest/guest_privacy_terms.tpl [new file with mode: 0644]
web/WEB-INF/templates/guest/guest_registration_form.tpl [new file with mode: 0644]
web/admin/admin_logout.xhtml [new file with mode: 0644]
web/admin/index.xhtml [new file with mode: 0644]
web/imprint.xhtml [new file with mode: 0644]
web/index.xhtml
web/privacy.xhtml [new file with mode: 0644]
web/resources/css/cssLayout.css [new file with mode: 0644]
web/resources/css/default.css [new file with mode: 0644]
web/terms.xhtml [new file with mode: 0644]

diff --git a/src/java/log4j2.xml b/src/java/log4j2.xml
new file mode 100644 (file)
index 0000000..1ebbd9f
--- /dev/null
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (C) 2015 Roland Haeder
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program 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 General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+-->
+<Configuration status="INFO">
+       <Appenders>
+               <Console name="STDOUT" target="SYSTEM_OUT">
+                       <PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/>
+               </Console>
+       </Appenders>
+       <Loggers>
+               <Root level="trace">
+                       <AppenderRef ref="STDOUT" level="TRACE"/>
+               </Root>
+       </Loggers>
+</Configuration>
diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties
new file mode 100644 (file)
index 0000000..076fb18
--- /dev/null
@@ -0,0 +1,107 @@
+# Copyright (C) 2015 Roland Haeder
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+# Unknown gender
+GENDER_UNKNOWN=Unbekannt
+GENDER_MALE=Herr
+GENDER_FEMALE=Frau
+YES=Ja
+NO=Nein
+PAGE_TITLE_INDEX_WELCOME=Willkommen!
+SUB_TITLE_INDEX_WELCOME=Willkommen zum Pizza-Service:
+LINK_TO_BASKET_TITLE=Weiter zum Warenkorb.
+PAGE_TITLE_ADMIN_WELCOME=Willkommen zum Administrationsbereich
+SUB_TITLE_ADMIN_WELCOME=Willkommen zur Administration:
+PAGE_TITLE_ADMIN_LOGOUT=Ausloggen
+SUB_TITLE_ADMIN_LOGOUT=Aus dem Adminbereich ausloggen:
+SELECT_ENTRY=Ausw\u00e4hlen:
+BUTTON_RESET_FORM=Formular zur\u00fccksetzen
+ADMIN_BUTTON_EDIT_ENTRIES=\u00c4ndern
+ADMIN_BUTTON_DELETE_ENTRIES=L\u00f6schen
+PLEASE_FILL_ALL_FIELDS=Bitte alle Felder ausf\u00fcllen:
+GUEST_ENTER_LOGIN_DATA_TITLE=Bitte geben Sie Ihre Kundennummer und Passwort ein:
+GUEST_ENTER_LOGIN_DATA_LEGEND_TITLE=Bitte geben Sie die Ihnen vergebene Kundennummer und das dazugeh\u00f6rige Passwort ein.
+GUEST_ENTER_LOGIN_DATA_LEGEND=Bitte Zugangsdaten eingeben:
+ENTER_PASSWORD=Passwort:
+LINK_GUEST_HOME_TITLE=Eingangsseite
+LINK_GUEST_HOME=Home
+LINK_CLOSE_SESSION_TITLE=Sitzung beennden
+LINK_CLOSE_SESSION=Sitzung beenden
+MENU_HOME_TITLE=Shop
+LINK_GUEST_LOGIN_TITLE=Login f\u00fcr bestehende Kunden
+LINK_GUEST_LOGIN=Einloggen
+LINK_GUEST_REGISTER_TITLE=Anmeldung als neuer Kunde
+LINK_GUEST_REGISTER=Neuer Kunde
+LINK_GUEST_PASSWORD_TITLE=Neues Passwort erstellen
+LINK_GUEST_PASSWORD=Passwort vergessen?
+LINK_TO_BASKET=Zum Warenkorb
+PAGE_TITLE_INDEX_IMPRINT=Impressum
+SUB_TITLE_INDEX_IMPRINT=Impressum:
+GUEST_REGISTRATION_TITLE=Anmelden als Neukunde
+GUEST_REGISTRATION_EMAIL_LEGEND_TITLE=Zum Best\u00e4tigen wird Ihre Email-Adresse ben\u00f6tigt, f\u00fcr den Login Kundennummer und Passwort.
+GUEST_REGISTRATION_EMAIL_LEGEND=Email-Adresse und Passwort:
+GUEST_REGISTRATION_ENTER_EMAIL1=Email-Adresse eingeben:
+GUEST_REGISTRATION_ENTER_EMAIL2=Email-Adresse wiederholen:
+GUEST_REGISTRATION_ENTER_PASSWORD1=Passwort eingeben:
+GUEST_REGISTRATION_ENTER_PASSWORD2=Passwort wiederholen:
+BUTTON_FINISH_REGISTRATION=Anmelden
+PRIVACY_TERMS_LEGEND_TITLE=Bitte die AGBs und Datenschutzbestimmungen lesen und akzeptieren.
+PRIVACY_TERMS_LEGEND=Rechtliches:
+PRIVACY_POLICY_NOT_ACCEPTED_MESSAGE=Bitte den Datenschutzbestimmungen zustimmen.
+TERMS_NOT_ACCEPTED_MESSAGE=Bitte den AGBs zustimmen.
+PERSONAL_DATA_MINIMUM_NOTICE=Bitte geben Sie mindestens Name, Anschrift und Telefonnummer an.
+PERSONAL_DATA_GENDER=Anrede:
+PERSONAL_DATA_COMPANY_NAME=Firmenname:
+PERSONAL_DATA_FIRST_NAME=Vorname:
+PERSONAL_DATA_FAMILY_NAME=Nachname:
+PERSONAL_DATA_STREET=Stra\u00dfe:
+PERSONAL_DATA_HOUSE_NUMBER=Hausnummer:
+PERSONAL_DATA_ZIP_CODE=Postleitzahl:
+PERSONAL_DATA_PHONE_NUMBER=Telefon:
+PERSONAL_DATA_FAX_NUMBER=Faxnummer:
+PERSONAL_DATA_CELLPHONE_NUMBER=Mobil:
+PERSONAL_DATA_CITY=Ort:
+PERSONAL_DATA_LEGEND_TITLE=Bitte geben Sie Ihre Daten ein.
+PERSONAL_DATA_LEGEND=Bitte Ihre Daten eingeben:
+PAGE_TITLE_USER_LOGIN=Einloggen
+SUB_TITLE_USER_LOGIN=Zum Kundenbereich einloggen:
+PAGE_TITLE_USER_LOST_PASSWORD=Passwort vergessen
+SUB_TITLE_USER_LOST_PASSWORD=Stellen Sie Ihr Passwort wieder her:
+GUEST_LOST_PASSWORD_TITLE=Sie haben Ihr Passwort vergessen?
+GUEST_LOST_PASSWORD_LEGEND_TITLE=Bitte Daten eingeben:
+GUEST_LOST_PASSWORD_LEGEND=Bitte Daten eingeben:
+ENTER_EMAIL_ADDRESS=Email-Adresse:
+GUEST_LOST_PASSWORD_NUMBER_OR_EMAIL=... oder ...
+PAGE_TITLE_USER_REGISTER=Neukunde
+SUB_TITLE_USER_REGISTER=Anmelden zum Pizza-Service:
+PAGE_TITLE_INDEX_TERMS=Allgemeine Gesch\u00e4ftsbedingungen
+SUB_TITLE_INDEX_TERMS=Allgemeine Gesch\u00e4ftsbedingungen
+PAGE_TITLE_INDEX_PRIVACY=Datenschutzbestimmungen
+SUB_TITLE_INDEX_PRIVACY=Datenschutzbestimmungen:
+ADMIN_MENU_MAIN_TITLE=Hauptauswahl
+ADMIN_MENU_LOGOUT_TITLE=Ausloggen
+LINK_ADMIN_INDEX_TITLE=Zur Willkommensseite
+LINK_ADMIN_LOGOUT_TITLE=Ausloggen
+LINK_ADMIN_TO_WEBPAGE_TITLE=Zur Webseite, aber eingeloggt bleiben
+LINK_ADMIN_INDEX=Home
+LINK_ADMIN_LOGOUT=Ausloggen
+LINK_ADMIN_TO_WEBPAGE=Webseite aufrufen
+LINK_ADMIN_FOOTER_TO_WEBPAGE=Zur Webseite
+LINK_GUEST_IMPRINT=Impressum
+LINK_GUEST_TERMS=AGBs
+LINK_GUEST_PRIVACY=Datenschutz
+LINK_GUEST_IMPRINT_TITLE=Impressum
+LINK_GUEST_TERMS_TITLE=Allgemeine Gesch\u00e4ftsbedingungen
+LINK_GUEST_PRIVACY_TITLE=Datenschutzbestimmungen
diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties
new file mode 100644 (file)
index 0000000..e2614ee
--- /dev/null
@@ -0,0 +1,107 @@
+# Copyright (C) 2015 Roland Haeder
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program 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 General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+# Unknown gender
+GENDER_UNKNOWN=Unknown
+GENDER_MALE=Mr.
+GENDER_FEMALE=Mrs.
+YES=Yes
+NO=No
+PAGE_TITLE_INDEX_WELCOME=Welcome!
+SUB_TITLE_INDEX_WELCOME=Welcome to Pizza-Service
+LINK_TO_BASKET_TITLE=Continued to basket page.
+PAGE_TITLE_ADMIN_WELCOME=Welcome to administration area
+SUB_TITLE_ADMIN_WELCOME=Welcome to website administration:
+PAGE_TITLE_ADMIN_LOGOUT=Logout
+SUB_TITLE_ADMIN_LOGOUT=Logout from administration area:
+SELECT_ENTRY=Select:
+BUTTON_RESET_FORM=Reset form
+ADMIN_BUTTON_EDIT_ENTRIES=Edit
+ADMIN_BUTTON_DELETE_ENTRIES=Delete
+PLEASE_FILL_ALL_FIELDS=Please fill out all fields:
+GUEST_ENTER_LOGIN_DATA_TITLE=Please enter your customer number and password:
+GUEST_ENTER_LOGIN_DATA_LEGEND_TITLE=Please enter your assigned customer number and password.
+GUEST_ENTER_LOGIN_DATA_LEGEND=Please enter your login data:
+ENTER_PASSWORD=Password:
+LINK_GUEST_HOME_TITLE=Home page
+LINK_GUEST_HOME=Home
+LINK_CLOSE_SESSION_TITLE=Close session
+LINK_CLOSE_SESSION=Close session
+MENU_HOME_TITLE=Shop
+LINK_GUEST_LOGIN_TITLE=Login for existing customers
+LINK_GUEST_LOGIN=Login
+LINK_GUEST_REGISTER_TITLE=Registration for new customer
+LINK_GUEST_REGISTER=Registration
+LINK_GUEST_PASSWORD_TITLE=Create new password
+LINK_GUEST_PASSWORD=Lost password?
+LINK_TO_BASKET=To basket
+PAGE_TITLE_INDEX_IMPRINT=Imprint
+SUB_TITLE_INDEX_IMPRINT=Imprint:
+GUEST_REGISTRATION_TITLE=Register a new customer account
+GUEST_REGISTRATION_EMAIL_LEGEND_TITLE=For account confirmation your email address is required. For logins your customer number and password are required.
+GUEST_REGISTRATION_EMAIL_LEGEND=Email address and password:
+GUEST_REGISTRATION_ENTER_EMAIL1=Enter your email address:
+GUEST_REGISTRATION_ENTER_EMAIL2=Repeat your email address:
+GUEST_REGISTRATION_ENTER_PASSWORD1=Enter a password:
+GUEST_REGISTRATION_ENTER_PASSWORD2=Repeat your password:
+BUTTON_FINISH_REGISTRATION=Register
+PRIVACY_TERMS_LEGEND_TITLE=Please read and accept terms and privacy policy.
+PRIVACY_TERMS_LEGEND=Terms & privacy policy:
+PRIVACY_POLICY_NOT_ACCEPTED_MESSAGE=Please accept our privacy policy.
+TERMS_NOT_ACCEPTED_MESSAGE=Please accept Terms&Conditions.
+PERSONAL_DATA_MINIMUM_NOTICE=Please enter at least your name, address and phone number.
+PERSONAL_DATA_GENDER=Salutation:
+PERSONAL_DATA_COMPANY_NAME=Company name:
+PERSONAL_DATA_FIRST_NAME=First name:
+PERSONAL_DATA_FAMILY_NAME=Family name:
+PERSONAL_DATA_STREET=Street:
+PERSONAL_DATA_HOUSE_NUMBER=House number:
+PERSONAL_DATA_ZIP_CODE=ZIP code:
+PERSONAL_DATA_PHONE_NUMBER=Phone:
+PERSONAL_DATA_FAX_NUMBER=Fax:
+PERSONAL_DATA_CELLPHONE_NUMBER=Mobile:
+PERSONAL_DATA_CITY=City:
+PERSONAL_DATA_LEGEND_TITLE=Please enter your data.
+PERSONAL_DATA_LEGEND=Please enter your data:
+PAGE_TITLE_USER_LOGIN=Login
+SUB_TITLE_USER_LOGIN=Login to customer area:
+PAGE_TITLE_USER_LOST_PASSWORD=Lost password
+SUB_TITLE_USER_LOST_PASSWORD=Recover your password:
+GUEST_LOST_PASSWORD_TITLE=Have you forgotten your password?
+GUEST_LOST_PASSWORD_LEGEND_TITLE=Please enter your data:
+GUEST_LOST_PASSWORD_LEGEND=Please enter your data:
+ENTER_EMAIL_ADDRESS=Email address:
+GUEST_LOST_PASSWORD_NUMBER_OR_EMAIL=... or ...
+PAGE_TITLE_USER_REGISTER=Register
+SUB_TITLE_USER_REGISTER=Register at Pizza-Service:
+PAGE_TITLE_INDEX_TERMS=Terms & Conditions
+SUB_TITLE_INDEX_TERMS=Terms & Conditions
+PAGE_TITLE_INDEX_PRIVACY=Privacy
+SUB_TITLE_INDEX_PRIVACY=Privacy:
+ADMIN_MENU_MAIN_TITLE=Main
+ADMIN_MENU_LOGOUT_TITLE=Logout
+LINK_ADMIN_INDEX_TITLE=To welcome page
+LINK_ADMIN_LOGOUT_TITLE=Ausloggen
+LINK_ADMIN_TO_WEBPAGE_TITLE=Zur Webseite, aber eingeloggt bleiben
+LINK_ADMIN_INDEX=Home
+LINK_ADMIN_LOGOUT=Ausloggen
+LINK_ADMIN_TO_WEBPAGE=Webseite aufrufen
+LINK_ADMIN_FOOTER_TO_WEBPAGE=Zur Webseite
+LINK_GUEST_IMPRINT=Impressum
+LINK_GUEST_TERMS=AGBs
+LINK_GUEST_PRIVACY=Datenschutz
+LINK_GUEST_IMPRINT_TITLE=Impressum
+LINK_GUEST_TERMS_TITLE=Allgemeine Gesch\u00e4ftsbedingungen
+LINK_GUEST_PRIVACY_TITLE=Datenschutzbestimmungen
diff --git a/web/WEB-INF/templates.dist/admin_page.xhtml b/web/WEB-INF/templates.dist/admin_page.xhtml
new file mode 100644 (file)
index 0000000..23940e0
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+         xmlns:ui="http://java.sun.com/jsf/facelets"
+         xmlns:h="http://xmlns.jcp.org/jsf/html"
+         xmlns:f="http://xmlns.jcp.org/jsf/core"
+         >
+
+       <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
+               <ui:define name="admin_title">Your page's title here</ui:define>
+
+               <ui:define name="menu">
+                       <ui:include id="menu" class="admin_menu" src="/WEB-INF/templates/admin/admin_menu.tpl" />
+               </ui:define>
+
+               <ui:define name="content_header">
+                       Your header above content here
+               </ui:define>
+
+               <ui:define name="content">
+                       Here goes your content.
+               </ui:define>
+
+               <ui:define name="footer">
+                       <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/admin/admin_footer.tpl" />
+               </ui:define>
+       </ui:composition>
+</html>
diff --git a/web/WEB-INF/templates.dist/guest_page.xhtml b/web/WEB-INF/templates.dist/guest_page.xhtml
new file mode 100644 (file)
index 0000000..a90306b
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+         xmlns:ui="http://java.sun.com/jsf/facelets"
+         xmlns:h="http://xmlns.jcp.org/jsf/html"
+         xmlns:f="http://xmlns.jcp.org/jsf/core"
+         >
+
+       <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
+               <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_FOO}</ui:define>
+
+               <ui:define name="menu">
+                       <ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
+               </ui:define>
+
+               <ui:define name="content_header">
+                       #{msg.SUB_TITLE_INDEX_FOO}
+               </ui:define>
+
+               <ui:define name="content">
+                       Here goes your content.
+               </ui:define>
+
+               <ui:define name="footer">
+                       <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/guest/guest_footer.tpl" />
+               </ui:define>
+       </ui:composition>
+</html>
diff --git a/web/WEB-INF/templates.dist/template.tpl b/web/WEB-INF/templates.dist/template.tpl
new file mode 100644 (file)
index 0000000..ed0a433
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:f="http://java.sun.com/jsf/core"
+       xmlns:h="http://java.sun.com/jsf/html"
+       xmlns:ui="http://java.sun.com/jsf/facelets">
+
+       <!-- Put your stuff here //-->
+</ui:composition>
diff --git a/web/WEB-INF/templates/admin/admin_base.tpl b/web/WEB-INF/templates/admin/admin_base.tpl
new file mode 100644 (file)
index 0000000..0305ff9
--- /dev/null
@@ -0,0 +1,11 @@
+<ui:composition
+       template="/WEB-INF/templates/base.tpl"
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:ui="http://java.sun.com/jsf/facelets">
+
+       <ui:define name="title">Administration - <ui:insert name="admin_title" class="admin_title" /></ui:define>
+
+       <!--
+       TODO: Add something here that should be displayed on all admin pages
+       //-->
+</ui:composition>
diff --git a/web/WEB-INF/templates/admin/admin_footer.tpl b/web/WEB-INF/templates/admin/admin_footer.tpl
new file mode 100644 (file)
index 0000000..2a8e743
--- /dev/null
@@ -0,0 +1,13 @@
+<ui:composition
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:f="http://java.sun.com/jsf/core"
+       xmlns:h="http://java.sun.com/jsf/html"
+       xmlns:ui="http://java.sun.com/jsf/facelets">
+       <div class="footer">
+               <ul class="footer_nav">
+                       <li><h:link outcome="index" value="#{msg.LINK_ADMIN_FOOTER_TO_WEBPAGE}" /></li>
+               </ul>
+       </div>
+
+       <div class="clear"></div>
+</ui:composition>
diff --git a/web/WEB-INF/templates/admin/admin_menu.tpl b/web/WEB-INF/templates/admin/admin_menu.tpl
new file mode 100644 (file)
index 0000000..6a56172
--- /dev/null
@@ -0,0 +1,29 @@
+<ui:composition
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:f="http://java.sun.com/jsf/core"
+       xmlns:h="http://java.sun.com/jsf/html"
+       xmlns:ui="http://java.sun.com/jsf/facelets">
+
+       <div class="menu_outer">
+               <div class="menu">
+                       <div class="menu_header">
+                               #{msg.ADMIN_MENU_MAIN_TITLE}
+                       </div>
+
+                       <ul>
+                               <li><h:link title="#{msg.LINK_ADMIN_INDEX_TITLE}" outcome="admin_index" value="#{msg.LINK_ADMIN_INDEX}" /></li>
+                               <li><h:link title="#{msg.LINK_ADMIN_CATEGORY_TITLE}" outcome="admin_category" value="#{msg.LINK_ADMIN_CATEGORY}" /></li>
+                               <li><h:link title="#{msg.LINK_ADMIN_PRODUCT_TITLE}" outcome="admin_product" value="#{msg.LINK_ADMIN_PRODUCT}" /></li>
+                       </ul>
+
+                       <div class="menu_header">
+                               #{msg.ADMIN_MENU_LOGOUT_TITLE}
+                       </div>
+
+                       <ul>
+                               <li><h:link title="#{msg.LINK_ADMIN_LOGOUT_TITLE}" outcome="admin_logout" value="#{msg.LINK_ADMIN_LOGOUT}" /></li>
+                               <li><h:link title="#{msg.LINK_ADMIN_TO_WEBPAGE_TITLE}" outcome="index" value="#{msg.LINK_ADMIN_TO_WEBPAGE}" /></li>
+                       </ul>
+               </div>
+       </div>
+</ui:composition>
diff --git a/web/WEB-INF/templates/base.tpl b/web/WEB-INF/templates/base.tpl
new file mode 100644 (file)
index 0000000..e95a770
--- /dev/null
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<html
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:h="http://java.sun.com/jsf/html"
+       xmlns:ui="http://java.sun.com/jsf/facelets"
+       xmlns:f="http://xmlns.jcp.org/jsf/core">
+
+       <h:head>
+               <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+               <f:loadBundle var="msg" basename="org.mxchange.localization.bundle" />
+
+               <h:outputStylesheet name="./css/default.css" />
+               <h:outputStylesheet name="./css/cssLayout.css" />
+
+               <title>Addressbook - <ui:insert name="title">Default title</ui:insert></title>
+       </h:head>
+
+       <h:body>
+               <div id="top">
+                       <div id="header"> 
+                               <div id="title">
+                                       <h1>Pizza-Service - <ui:insert name="title">Default title</ui:insert></h1>
+                               </div>
+                       </div>
+               </div>
+
+               <!--
+               Mini basket on left side
+               //-->
+               <div id="mini_basket">
+                       <ui:insert name="basket" />
+               </div>
+
+               <div id="menu_content">
+                       <div id="left">
+                               <ui:insert name="menu">Default menu</ui:insert>
+                       </div>
+
+                       <div id="content_outer" class="left_content">
+                               <div id="content_header">
+                                       <ui:insert name="content_header">Default content header</ui:insert>
+                               </div>
+
+                               <div id="content">
+                                       <ui:insert name="content">Default content</ui:insert>
+                               </div>
+                       </div>
+
+                       <div class="clear"></div>
+               </div>
+
+               <div id="footer">
+                       <ui:insert name="footer">Default footer</ui:insert>
+               </div>
+       </h:body>
+</html>
diff --git a/web/WEB-INF/templates/generic/gender_selection_box.tpl b/web/WEB-INF/templates/generic/gender_selection_box.tpl
new file mode 100644 (file)
index 0000000..422ace8
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:f="http://java.sun.com/jsf/core"
+       xmlns:h="http://java.sun.com/jsf/html"
+       xmlns:ui="http://java.sun.com/jsf/facelets">
+
+       <h:selectOneMenu class="select" id="gender" value="#{customerController.gender}">
+               <f:selectItems value="#{gender.selectableGenders}" var="g" itemValue="#{g}" itemLabel="#{msg[g.messageKey]}" />
+       </h:selectOneMenu>
+</ui:composition>
diff --git a/web/WEB-INF/templates/guest/guest_base.tpl b/web/WEB-INF/templates/guest/guest_base.tpl
new file mode 100644 (file)
index 0000000..7b8ebca
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+       template="/WEB-INF/templates/base.tpl"
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:ui="http://java.sun.com/jsf/facelets">
+
+       <ui:define name="title"><ui:insert name="guest_title" class="guest_title" /></ui:define>
+
+       <!--
+       Show basket if it contains items, else show an empty basket.
+       //-->
+       <ui:define name="basket">
+               <ui:fragment rendered="#{basketController.isEmpty()}">
+                       <!-- Empty basket //-->
+                       <ui:include src="/WEB-INF/templates/basket/mini_basket_empty.tpl" />
+               </ui:fragment>
+
+               <ui:fragment rendered="#{basketController.hasItems()}">
+                       <!-- At least one item is there //-->
+                       <ui:include src="/WEB-INF/templates/basket/mini_basket.tpl" />
+               </ui:fragment>
+       </ui:define>
+</ui:composition>
diff --git a/web/WEB-INF/templates/guest/guest_footer.tpl b/web/WEB-INF/templates/guest/guest_footer.tpl
new file mode 100644 (file)
index 0000000..e327def
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:f="http://java.sun.com/jsf/core"
+       xmlns:h="http://java.sun.com/jsf/html"
+       xmlns:ui="http://java.sun.com/jsf/facelets">
+       <div class="footer">
+               <ul class="footer_nav">
+                       <li class="footer_link"><h:link outcome="index" title="#{msg.LINK_GUEST_HOME_TITLE}" value="#{msg.LINK_GUEST_HOME}" /></li>
+                       <li class="footer_link"><h:link outcome="imprint" title="#{msg.LINK_GUEST_IMPRINT_TITLE}" value="#{msg.LINK_GUEST_IMPRINT}" /></li>
+                       <li class="footer_link"><h:link outcome="terms" title="#{msg.LINK_GUEST_TERMS_TITLE}" value="#{msg.LINK_GUEST_TERMS}" /></li>
+                       <li class="footer_link"><h:link outcome="privacy" title="#{msg.LINK_GUEST_PRIVACY_TITLE}" value="#{msg.LINK_GUEST_PRIVACY}" /></li>
+                       <li class="footer_copyright">Copyright (c) 2015 by Roland Häder</li>
+               </ul>
+       </div>
+
+       <div class="clear"></div>
+</ui:composition>
diff --git a/web/WEB-INF/templates/guest/guest_login_form.tpl b/web/WEB-INF/templates/guest/guest_login_form.tpl
new file mode 100644 (file)
index 0000000..4cdd1ca
--- /dev/null
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:f="http://java.sun.com/jsf/core"
+       xmlns:h="http://java.sun.com/jsf/html"
+       xmlns:ui="http://java.sun.com/jsf/facelets">
+       <div id="user_login_content">
+               <h:form acceptcharset="utf-8" id="login_form">
+                       <div class="table">
+                               <div class="table_header">
+                                       #{msg.GUEST_ENTER_LOGIN_DATA_TITLE}
+                               </div>
+
+                               <fieldset id="login_data">
+                                       <legend title="#{msg.GUEST_ENTER_LOGIN_DATA_LEGEND_TITLE}">#{msg.GUEST_ENTER_LOGIN_DATA_LEGEND}</legend>
+
+                                       <div class="table_row">
+                                               <div class="table_left">
+                                                       <h:outputLabel for="id" value="#{msg.ENTER_USER_NUMBER}" />
+                                               </div>
+
+                                               <div class="table_right">
+                                                       <h:inputText class="input" id="id" size="10" maxlength="20" required="true" requiredMessage="#{msg.LOGIN_NO_USER_NUMBER_MESSAGE}" />
+                                               </div>
+                                       </div>
+
+                                       <div class="clear"></div>
+
+                                       <div class="table_row">
+                                               <div class="table_left">
+                                                       <h:outputLabel for="password" value="#{msg.ENTER_PASSWORD}" />
+                                               </div>
+
+                                               <div class="table_right">
+                                                       <h:inputSecret class="input" id="password" size="10" maxlength="255" required="true" requiredMessage="#{msg.LOGIN_NO_PASSWORD_MESSAGE}" />
+                                               </div>
+                                       </div>
+
+                                       <div class="clear"></div>
+                               </fieldset>
+
+                               <div class="table_footer">
+                                       <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
+                                       <h:commandButton class="submit" type="submit" action="#{controller.doLogin()}" value="#{msg.BUTTON_USER_LOGIN}" />
+                               </div>
+                       </div>
+               </h:form>
+       </div>
+</ui:composition>
diff --git a/web/WEB-INF/templates/guest/guest_menu.tpl b/web/WEB-INF/templates/guest/guest_menu.tpl
new file mode 100644 (file)
index 0000000..e9369cc
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:f="http://java.sun.com/jsf/core"
+       xmlns:h="http://java.sun.com/jsf/html"
+       xmlns:ui="http://java.sun.com/jsf/facelets">
+
+       <div class="menu_outer">
+               <div class="menu">
+                       <div class="menu_header">
+                               #{msg.MENU_HOME_TITLE}
+                       </div>
+
+                       <ul>
+                               <li><h:link title="#{msg.LINK_GUEST_HOME_TITLE}" outcome="index" value="#{msg.LINK_GUEST_HOME}" /></li>
+                               <li><h:link title="#{msg.LINK_CLOSE_SESSION_TITLE}" outcome="logout" value="#{msg.LINK_CLOSE_SESSION}" /></li>
+                       </ul>
+
+                       <div class="menu_header">
+                               #{msg.MENU_USER_TITLE}
+                       </div>
+
+                       <ul>
+                               <li><h:link title="#{msg.LINK_GUEST_LOGIN_TITLE}" outcome="user_login" value="#{msg.LINK_GUEST_LOGIN}" /></li>
+                               <li><h:link title="#{msg.LINK_GUEST_REGISTER_TITLE}" outcome="user_register" value="#{msg.LINK_GUEST_REGISTER}" /></li>
+                               <li><h:link title="#{msg.LINK_GUEST_PASSWORD_TITLE}" outcome="user_lost_passwd" value="#{msg.LINK_GUEST_PASSWORD}" /></li>
+                       </ul>
+               </div>
+       </div>
+</ui:composition>
diff --git a/web/WEB-INF/templates/guest/guest_personal_data.tpl b/web/WEB-INF/templates/guest/guest_personal_data.tpl
new file mode 100644 (file)
index 0000000..7c780dd
--- /dev/null
@@ -0,0 +1,159 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:f="http://java.sun.com/jsf/core"
+       xmlns:h="http://java.sun.com/jsf/html"
+       xmlns:ui="http://java.sun.com/jsf/facelets">
+
+       <div class="para notice">
+               #{msg.PERSONAL_DATA_MINIMUM_NOTICE}
+       </div>
+
+       <div class="para">
+               <fieldset id="personal_data">
+                       <legend title="#{msg.PERSONAL_DATA_LEGEND_TITLE}">#{msg.PERSONAL_DATA_LEGEND}</legend>
+
+                       <div class="table_row">
+                               <div class="table_left">
+                                       <h:outputLabel for="gender" value="#{msg.PERSONAL_DATA_GENDER}" />
+                               </div>
+
+                               <div class="table_right">
+                                       <ui:include src="/WEB-INF/templates/generic/gender_selection_box.tpl" />
+                               </div>
+
+                               <div class="clear"></div>
+                       </div>
+
+                       <div class="table_row">
+                               <div class="table_left">
+                                       <h:outputLabel for="companyname" value="#{msg.PERSONAL_DATA_COMPANY_NAME}" />
+                               </div>
+
+                               <div class="table_right">
+                                       <h:inputText class="input" id="companyname" size="15" maxlength="255" value="#{customerController.companyName}" />
+                               </div>
+
+                               <div class="clear"></div>
+                       </div>
+
+                       <div class="table_row">
+                               <div class="table_left">
+                                       <h:outputLabel for="firstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
+                               </div>
+
+                               <div class="table_right">
+                                       <h:inputText class="input" id="firstName" size="10" maxlength="255" value="#{customerController.firstName}" required="true">
+                                               <f:validator validatorId="NameValidator" />
+                                       </h:inputText>
+                               </div>
+
+                               <div class="clear"></div>
+                       </div>
+
+                       <div class="table_row">
+                               <div class="table_left">
+                                       <h:outputLabel for="familyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
+                               </div>
+
+                               <div class="table_right">
+                                       <h:inputText class="input" id="familyName" size="10" maxlength="255" value="#{customerController.familyName}" required="true">
+                                               <f:validator validatorId="NameValidator" />
+                                       </h:inputText>
+                               </div>
+
+                               <div class="clear"></div>
+                       </div>
+
+                       <div class="table_row">
+                               <div class="table_left">
+                                       <h:outputLabel for="street" value="#{msg.PERSONAL_DATA_STREET}" />
+                               </div>
+
+                               <div class="table_right">
+                                       <h:inputText class="input" id="street" size="20" maxlength="255" value="#{customerController.street}" required="true">
+                                               <f:validator validatorId="NameValidator" />
+                                       </h:inputText>
+                               </div>
+
+                               <div class="clear"></div>
+                       </div>
+
+                       <div class="table_row">
+                               <div class="table_left">
+                                       <h:outputLabel for="houseNumber" value="#{msg.PERSONAL_DATA_HOUSE_NUMBER}" />
+                               </div>
+
+                               <div class="table_right">
+                                       <h:inputText class="input" id="houseNumber" size="3" maxlength="5" value="#{customerController.houseNumber}" required="true">
+                                               <f:validateLongRange minimum="1" maximum="500" />
+                                       </h:inputText>
+                               </div>
+
+                               <div class="clear"></div>
+                       </div>
+
+                       <div class="table_row">
+                               <div class="table_left">
+                                       <h:outputLabel for="zipCode" value="#{msg.PERSONAL_DATA_ZIP_CODE}" />
+                               </div>
+
+                               <div class="table_right">
+                                       <h:inputText class="input" id="zipCode" size="5" maxlength="6" value="#{customerController.zipCode}" required="true" />
+                               </div>
+
+                               <div class="clear"></div>
+                       </div>
+
+                       <div class="table_row">
+                               <div class="table_left">
+                                       <h:outputLabel for="city" value="#{msg.PERSONAL_DATA_CITY}" />
+                               </div>
+
+                               <div class="table_right">
+                                       <h:inputText class="input" id="city" size="10" maxlength="255" value="#{customerController.city}" required="true">
+                                               <f:validator validatorId="NameValidator" />
+                                       </h:inputText>
+                               </div>
+
+                               <div class="clear"></div>
+                       </div>
+
+                       <div class="table_row">
+                               <div class="table_left">
+                                       <h:outputLabel for="phoneNumber" value="#{msg.PERSONAL_DATA_PHONE_NUMBER}" />
+                               </div>
+
+                               <div class="table_right">
+                                       <h:inputText class="input" id="phoneNumber" size="20" maxlength="255" value="#{customerController.phoneNumber}" />
+                               </div>
+
+                               <div class="clear"></div>
+                       </div>
+
+                       <div class="table_row">
+                               <div class="table_left">
+                                       <h:outputLabel for="faxNumber" value="#{msg.PERSONAL_DATA_FAX_NUMBER}" />
+                               </div>
+
+                               <div class="table_right">
+                                       <h:inputText class="input" id="faxNumber" size="20" maxlength="255" value="#{customerController.faxNumber}" />
+                               </div>
+
+                               <div class="clear"></div>
+                       </div>
+
+                       <div class="table_row">
+                               <div class="table_left">
+                                       <h:outputLabel for="cellphoneNumber" value="#{msg.PERSONAL_DATA_CELLPHONE_NUMBER}" />
+                               </div>
+
+                               <div class="table_right">
+                                       <h:inputText class="input" id="cellphoneNumber" size="20" maxlength="255" value="#{customerController.cellphoneNumber}" />
+                               </div>
+
+                               <div class="clear"></div>
+                       </div>
+               </fieldset>
+       </div>
+</ui:composition>
diff --git a/web/WEB-INF/templates/guest/guest_privacy_terms.tpl b/web/WEB-INF/templates/guest/guest_privacy_terms.tpl
new file mode 100644 (file)
index 0000000..b9e8cd7
--- /dev/null
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:f="http://java.sun.com/jsf/core"
+       xmlns:h="http://java.sun.com/jsf/html"
+       xmlns:ui="http://java.sun.com/jsf/facelets">
+
+       <div class="para">
+               <fieldset id="terms_privacy">
+                       <legend title="#{msg.PRIVACY_TERMS_LEGEND_TITLE}">#{msg.PRIVACY_TERMS_LEGEND}</legend>
+
+                       <div class="table_row">
+                               <div class="table_left25">
+                                       <h:selectBooleanCheckbox class="input" id="privacy" required="true" requiredMessage="#{msg.PRIVACY_POLICY_NOT_ACCEPTED_MESSAGE}">
+                                               <f:validator validatorId="PrivacyTermsCheckboxValidator" />
+                                       </h:selectBooleanCheckbox>
+                               </div>
+
+                               <div class="table_right75">
+                                       <!-- TODO Need to internationalize: //-->
+                                       Ja, ich habe die <h:link outcome="privacy" target="_blank" value="Datenschutzbestimmungen" /> gelesen und
+                                       auch verstanden.
+                               </div>
+
+                               <div class="clear"></div>
+                       </div>
+
+                       <div class="table_row">
+                               <div class="table_left25">
+                                       <h:selectBooleanCheckbox class="input" id="terms" required="true" requiredMessage="#{msg.TERMS_NOT_ACCEPTED_MESSAGE}">
+                                               <f:validator validatorId="PrivacyTermsCheckboxValidator" />
+                                       </h:selectBooleanCheckbox>
+                               </div>
+
+                               <div class="table_right75">
+                                       <!-- TODO Need to internationalize: //-->
+                                       Ja, ich habe die <h:link outcome="terms" target="_blank" value="Allgemeinen Geschäftsbedingungen" /> gelesen und
+                                       auch verstanden.
+                               </div>
+
+                               <div class="clear"></div>
+                       </div>
+               </fieldset>
+       </div>
+</ui:composition>
diff --git a/web/WEB-INF/templates/guest/guest_registration_form.tpl b/web/WEB-INF/templates/guest/guest_registration_form.tpl
new file mode 100644 (file)
index 0000000..56a5232
--- /dev/null
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition
+       xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:f="http://java.sun.com/jsf/core"
+       xmlns:h="http://java.sun.com/jsf/html"
+       xmlns:ui="http://java.sun.com/jsf/facelets">
+
+
+       <h:form acceptcharset="utf-8" id="register_form">
+               <div class="table">
+                       <div class="table_header">
+                               #{msg.GUEST_REGISTRATION_TITLE}
+                       </div>
+
+                       <ui:include src="/WEB-INF/templates/guest/guest_personal_data.tpl" />
+
+                       <div class="para">
+                               <fieldset id="login_data">
+                                       <legend title="#{msg.GUEST_REGISTRATION_EMAIL_LEGEND_TITLE}">#{msg.GUEST_REGISTRATION_EMAIL_LEGEND}</legend>
+
+                                       <div class="table_row">
+                                               <div class="table_left">
+                                                       <h:outputLabel for="emailAddress1" value="#{msg.GUEST_REGISTRATION_ENTER_EMAIL1}" />
+                                               </div>
+
+                                               <div class="table_right">
+                                                       <h:inputText class="input" id="emailAddress1" size="20" maxlength="255" value="#{customerController.emailAddress}" required="true" />
+                                               </div>
+
+                                               <div class="clear"></div>
+                                       </div>
+
+                                       <div class="table_row">
+                                               <div class="table_left">
+                                                       <h:outputLabel for="emailAddress2" value="#{msg.GUEST_REGISTRATION_ENTER_EMAIL2}" />
+                                               </div>
+
+                                               <div class="table_right">
+                                                       <h:inputText class="input" id="emailAddress2" size="20" maxlength="255" value="#{customerController.emailAddress}" required="true" />
+                                               </div>
+
+                                               <div class="clear"></div>
+                                       </div>
+
+                                       <div class="para"></div>
+
+                                       <div class="table_row">
+                                               <div class="table_left">
+                                                       <h:outputLabel for="password1" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD1}" />
+                                               </div>
+
+                                               <div class="table_right">
+                                                       <h:inputSecret class="input" id="password1" size="10" maxlength="255" required="true" />
+                                               </div>
+
+                                               <div class="clear"></div>
+                                       </div>
+
+                                       <div class="table_row">
+                                               <div class="table_left">
+                                                       <h:outputLabel for="password2" value="#{msg.GUEST_REGISTRATION_ENTER_PASSWORD2}" />
+                                               </div>
+
+                                               <div class="table_right">
+                                                       <h:inputSecret class="input" id="password2" size="10" maxlength="255" required="true" />
+                                               </div>
+
+                                               <div class="clear"></div>
+                                       </div>
+
+                                       <div class="para notice">
+                                               #{msg.GUEST_REGISTRATION_USER_NUMBER_NOTICE}
+                                       </div>
+                               </fieldset>
+                       </div>
+
+                       <ui:include src="/WEB-INF/templates/guest/guest_privacy_terms.tpl" />
+
+                       <div class="table_footer">
+                               <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
+                               <h:commandButton class="submit" type="submit" id="register" value="#{msg.BUTTON_FINISH_REGISTRATION}" action="#{registerController.doRegister()}" />
+                       </div>
+               </div>
+       </h:form>
+</ui:composition>
diff --git a/web/admin/admin_logout.xhtml b/web/admin/admin_logout.xhtml
new file mode 100644 (file)
index 0000000..dac346d
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+         xmlns:ui="http://java.sun.com/jsf/facelets"
+         xmlns:h="http://xmlns.jcp.org/jsf/html"
+         xmlns:f="http://xmlns.jcp.org/jsf/core"
+         >
+
+       <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
+               <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_LOGOUT}</ui:define>
+
+               <ui:define name="menu">
+                       <ui:include id="menu" class="admin_menu" src="/WEB-INF/templates/admin/admin_menu.tpl" />
+               </ui:define>
+
+               <ui:define name="content_header">
+                       #{msg.SUB_TITLE_ADMIN_LOGOUT}
+               </ui:define>
+
+               <ui:define name="content">
+                       Offenes TODO.
+               </ui:define>
+
+               <ui:define name="footer">
+                       <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/admin/admin_footer.tpl" />
+               </ui:define>
+       </ui:composition>
+</html>
diff --git a/web/admin/index.xhtml b/web/admin/index.xhtml
new file mode 100644 (file)
index 0000000..d1f2e75
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+         xmlns:ui="http://java.sun.com/jsf/facelets"
+         xmlns:h="http://xmlns.jcp.org/jsf/html"
+         xmlns:f="http://xmlns.jcp.org/jsf/core"
+         >
+
+       <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
+               <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_WELCOME}</ui:define>
+
+               <ui:define name="menu">
+                       <ui:include id="menu" class="admin_menu" src="/WEB-INF/templates/admin/admin_menu.tpl" />
+               </ui:define>
+
+               <ui:define name="content_header">
+                       #{msg.SUB_TITLE_ADMIN_WELCOME}
+               </ui:define>
+
+               <ui:define name="content">
+                       <!--
+                       TODO: Replace this dummy
+                       //-->
+                       Einiges kann hier eingestellt werden.
+               </ui:define>
+
+               <ui:define name="footer">
+                       <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/admin/admin_footer.tpl" />
+               </ui:define>
+       </ui:composition>
+</html>
diff --git a/web/imprint.xhtml b/web/imprint.xhtml
new file mode 100644 (file)
index 0000000..1a47978
--- /dev/null
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+         xmlns:ui="http://java.sun.com/jsf/facelets"
+         xmlns:h="http://xmlns.jcp.org/jsf/html"
+         xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
+         xmlns:f="http://xmlns.jcp.org/jsf/core"
+         >
+
+       <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
+               <ui:define name="title">#{msg.PAGE_TITLE_INDEX_IMPRINT}</ui:define>
+
+               <ui:define name="menu">
+                       <ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
+               </ui:define>
+
+               <ui:define name="content_header">
+                       #{msg.SUB_TITLE_INDEX_IMPRINT}
+               </ui:define>
+
+               <ui:define name="content">
+                       TODO: Hier kommt das Impressum hin!
+               </ui:define>
+
+               <ui:define name="footer">
+                       <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/guest/guest_footer.tpl" />
+               </ui:define>
+       </ui:composition>
+</html>
index c1544ab1803993e9292e78356df0ca265f32bcff..d459ebfbdc86bcec725f022e6b927ca50dd709b5 100644 (file)
@@ -1,12 +1,33 @@
-<?xml version='1.0' encoding='UTF-8' ?>
+<?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml"
-      xmlns:h="http://xmlns.jcp.org/jsf/html">
-    <h:head>
-        <title>Facelet Title</title>
-    </h:head>
-    <h:body>
-               Hello from Facelets
-    </h:body>
-</html>
+         xmlns:ui="http://java.sun.com/jsf/facelets"
+         xmlns:h="http://xmlns.jcp.org/jsf/html"
+         xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
+         xmlns:f="http://xmlns.jcp.org/jsf/core"
+         >
+
+       <!--
+       TODO: Not used:
+       xmlns:basket="http://mxchange.org/jshop/tags/basket"
+       //-->
+
+       <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
+               <ui:define name="title">#{msg.PAGE_TITLE_INDEX_WELCOME}</ui:define>
+
+               <ui:define name="menu">
+                       <ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
+               </ui:define>
 
+               <ui:define name="content_header">
+                       #{msg.SUB_TITLE_INDEX_WELCOME}
+               </ui:define>
+
+               <ui:define name="content">
+               </ui:define>
+
+               <ui:define name="footer">
+                       <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/guest/guest_footer.tpl" />
+               </ui:define>
+       </ui:composition>
+</html>
diff --git a/web/privacy.xhtml b/web/privacy.xhtml
new file mode 100644 (file)
index 0000000..77ef917
--- /dev/null
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+         xmlns:ui="http://java.sun.com/jsf/facelets"
+         xmlns:h="http://xmlns.jcp.org/jsf/html"
+         xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
+         xmlns:f="http://xmlns.jcp.org/jsf/core"
+         >
+
+       <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
+               <ui:define name="title">#{msg.PAGE_TITLE_INDEX_PRIVACY}</ui:define>
+
+               <ui:define name="menu">
+                       <ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
+               </ui:define>
+
+               <ui:define name="content_header">
+                       #{msg.SUB_TITLE_INDEX_PRIVACY}
+               </ui:define>
+
+               <ui:define name="content">
+                       Hier kommen die Datenschutzbestimmungen hin.
+               </ui:define>
+
+               <ui:define name="footer">
+                       <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/guest/guest_footer.tpl" />
+               </ui:define>
+       </ui:composition>
+</html>
diff --git a/web/resources/css/cssLayout.css b/web/resources/css/cssLayout.css
new file mode 100644 (file)
index 0000000..321cf64
--- /dev/null
@@ -0,0 +1,159 @@
+/**
+div, table {
+       border: 1px solid #ff0000;
+}
+/**/
+
+#top {
+       position: relative;
+       background-color: #036fab;
+       color: #ffffff;
+       padding: 5px;
+       margin: 0px 0px 10px 0px;
+}
+
+#footer {
+       position: relative;
+       background-color: #c2dfef;
+       padding: 5px;
+       margin: 10px 0px 0px 0px;
+}
+
+#left {
+       float: left;
+       background-color: #ece3a5;
+       padding: 5px;
+       width: 150px;
+}
+
+#right {
+       float: right;
+       background-color: #ece3a5;
+       padding: 5px;
+       width: 150px;
+}
+
+.center_content {
+       position: relative;
+       background-color: #dddddd;
+       padding: 5px;
+}
+
+.left_content {
+       background-color: #dddddd;
+       padding: 5px;
+       margin-left: 170px;
+}
+
+.right_content {
+       background-color: #dddddd;
+       padding: 5px;
+       margin: 0px 170px 0px 170px;
+}
+
+#top a:link, #top a:visited {
+       color: #ffffff;
+       font-weight : bold;
+       text-decoration: none;
+}
+
+#top a:link:hover, #top a:visited:hover  {
+       color: #000000;
+       font-weight : bold;
+       text-decoration : underline;
+}
+
+table, .table {
+       margin: 0px;
+       padding: 0px;
+}
+
+.table {
+       width: 500px;
+}
+
+.basket_item_table {
+       width: 600px;
+}
+
+.table_row {
+       width: 100%;
+       min-height: 20px;
+}
+
+.table_left {
+       width: 250px;
+       min-height: 20px;
+       float: left;
+}
+
+.table_right {
+       width: 200px;
+       min-height: 20px;
+       float: right;
+}
+
+.table_left25 {
+       width: 20px;
+       min-height: 20px;
+       float: left;
+}
+
+.table_right75 {
+       width: 430px;
+       min-height: 20px;
+       float: right;
+}
+
+.para {
+       padding: 5px 5px 5px 5px;
+}
+
+.clear {
+       clear: both;
+}
+
+ul.footer_nav {
+       text-align: center;
+       /*width : 95%;*/
+       list-style: none;
+       margin: 0px;
+}
+
+ul.footer_nav li.footer_link {
+       float: left;
+       width: 100px;
+}
+
+ul.footer_nav li.footer_copyright {
+       float: right;
+       width: 300px;
+       margin-right: 10px;
+}
+
+.menu ul {
+       list-style: none;
+       padding-left: 5px;
+}
+
+.table_header {
+       text-align: center;
+       font-weight: bold;
+}
+
+#content_header {
+       font-weight: bold;
+       font-size: 18px;
+}
+
+.table_header_column {
+       width: 100px;
+}
+
+.table_data_column {
+       width: 100px;
+}
+
+.item_price, .item_total_price {
+       text-align: right;
+}
diff --git a/web/resources/css/default.css b/web/resources/css/default.css
new file mode 100644 (file)
index 0000000..1df064a
--- /dev/null
@@ -0,0 +1,31 @@
+body {
+       background-color: #ffffff;
+       font-size: 12px;
+       font-family: lucida;
+       color: #000000;  
+       margin: 10px;
+}
+
+h1 {
+       border-bottom: 1px solid #AFAFAF;
+       font-size:  16px;
+       font-weight: bold;
+       margin: 0px;
+       padding: 0px;
+}
+
+a:link, a:visited {
+       color: #045491;
+       font-weight : bold;
+       text-decoration: none;
+}
+
+a:link:hover, a:visited:hover {
+       color: #045491;
+       font-weight : bold;
+       text-decoration : underline;
+}
+
+label {
+       vertical-align: middle;
+}
diff --git a/web/terms.xhtml b/web/terms.xhtml
new file mode 100644 (file)
index 0000000..f4aa41c
--- /dev/null
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+         xmlns:ui="http://java.sun.com/jsf/facelets"
+         xmlns:h="http://xmlns.jcp.org/jsf/html"
+         xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
+         xmlns:f="http://xmlns.jcp.org/jsf/core"
+         >
+
+       <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
+               <ui:define name="title">#{msg.PAGE_TITLE_INDEX_TERMS}</ui:define>
+
+               <ui:define name="menu">
+                       <ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
+               </ui:define>
+
+               <ui:define name="content_header">
+                       #{msg.SUB_TITLE_INDEX_TERMS}
+               </ui:define>
+
+               <ui:define name="content">
+                       Hier kommen die allgemeinen Geschäftsbedingungen hin.
+               </ui:define>
+
+               <ui:define name="footer">
+                       <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/guest/guest_footer.tpl" />
+               </ui:define>
+       </ui:composition>
+</html>