-<?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"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:f="http://xmlns.jcp.org/jsf/core">
- <ui:param name="path" value="#{request.contextPath}" />
- <h:head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <link rel="stylesheet" href="#{path}/style.css" type="text/css"/>
- <title>Willkommen</title>
- </h:head>
- <h:body>
- <div id="header">
- <div id="title">
- <h1>Willkommen</h1>
- </div>
- </div>
-
- <ui:include src="/static/guest/guest_menu.xhtml" id="menu" />
-
- <div id="content_outer">
- <div id="content_title">
- <h2>Folgendes kann bestellt werden:</h2>
- </div>
-
- <div id="content">
- <h:panelGrid class="table" columns="4">
- <h:column class="table_header_column">Bestellen?</h:column>
- <h:column class="table_header_column">Anzahl:</h:column>
- <h:column class="table_header_column">Produkt:</h:column>
- <h:column class="table_header_column">Einzelpreis:</h:column>
- </h:panelGrid>
-
- <%
- // Get app instance
- PizzaApplication app = PizzaServiceApplication.getInstance(application);
-
- // Get Iterator
- Iterator<Product> iterator = app.getAvailableProducts();
-
- // "Walk" through all products and unmark them as ordered
- while (iterator.hasNext()) {
- // Get product instance
- Product product = iterator.next();
-
- // Get basket instance
- Basket<AddableBasketItem> basket = ItemBasket.getInstance(session);
-
- // Create an item instance form this product
- AddableBasketItem item = basket.getItem(product);
-
- // Has it been already added to the basket?
- if (item != null) {
- // Some nice output ...
- %>
- <h:panelGrid class="table" columns="4">
- <h:column class="table_header_column"><a href="#{path}/basket.jsp" title="Zum Warenkorb">Warenkorb</a></h:column>
- <h:column class="table_header_column"><%=item.getAmount()%></h:column>
- <h:column class="table_header_column"><%=product.getTitle()%></h:column>
- <h:column class="table_header_column"><f:convertNumber type="currency"><%=product.getPrice()%></f:convertNumber></h:column>
- </h:panelGrid>
- <%
- // Then skip this item
- continue;
- }
-
- // Unmark as ordered
- app.unmarkProductAsOrdered(product, session);
- %>
- <h:form>
- <h:panelGrid class="table" columns="4">
- <h:column class="table_header_column">
- <h:commandButton action="#{path}/form_handler/add_item.jsp" class="submit" value="Hinzufügen" />
- <input class="input" type="hidden" name="<%=PizzaApplication.HTTP_PARAM_ITEM_ID%>" value="<%=product.getId()%>" />
- <input class="input" type="hidden" name="<%=PizzaApplication.HTTP_PARAM_ITEM_TYPE%>" value="Product" />
- </h:column>
- <h:column class="table_header_column">
- <!--<h:inputText class="input" size="3" maxlength="20" />-->
- <input class="input" type="text" name="<%=PizzaApplication.HTTP_PARAM_AMOUNT%>" size="3" maxlength="20" />
- </h:column>
- <h:column class="table_header_column">
- <%=product.getTitle()%>
- </h:column>
- <h:column class="table_header_column right">
- <f:convertNumber type="currency"><%=product.getPrice()%></f:convertNumber>
- </h:column>
- </h:panelGrid>
- </h:form>
- <%
- }
- %>
- </div>
- </div>
-
- <ui:include src="/static/guest/guest_footer.xhtml" id="footer" />
-
- </h:body>
-</html>
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition template="/WEB-INF/templates/guest/guest_base.tpl"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+ xmlns:h="http://xmlns.jcp.org/jsf/html"
+ xmlns:f="http://xmlns.jcp.org/jsf/core">
+
+ <!--
+ TODO: Not used:
+ xmlns:basket="http://mxchange.org/jshop/tags/basket"
+ //-->
+
+ <ui:define name="guest_title">
+ <h:outputText value="#{msg.PAGE_TITLE_INDEX_WELCOME}" />
+ </ui:define>
+
+ <ui:define name="content_header">
+ <h:outputText value="#{msg.CONTENT_TITLE_INDEX_WELCOME}" />
+ </ui:define>
+
+ <ui:define name="content">
+ <ui:fragment rendered="#{featureController.isFeatureEnabled('user_registration_in_index')}">
+ <h:panelGroup layout="block" styleClass="registration_form">
+ <ui:fragment rendered="#{featureController.isFeatureEnabled('user_register_multiple_page')}">
+ <ui:include src="/WEB-INF/templates/guest/user/register/guest_form_register_page1.tpl" />
+ </ui:fragment>
+ </h:panelGroup>
+
+ <h:panelGroup styleClass="para" layout="block">
+ <h:outputText value="#{msg.CONTENT_PAGE_INDEX_PARA3}" />
+ </h:panelGroup>
+ </ui:fragment>
+
+ <ui:fragment rendered="#{not featureController.isFeatureEnabled('user_registration_in_index')}">
+ <ui:include src="/WEB-INF/templates/guest/guest_index.tpl" />
+ </ui:fragment>
+ </ui:define>
+</ui:composition>