3 Created on : 04.08.2015, 10:33:10
7 <%--<%@page errorPage="errorHandler.jsp" %>--%>
8 <%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%>
9 <%@page contentType="text/html" pageEncoding="UTF-8"%>
10 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
11 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
12 <%@taglib prefix="basket" uri="http://mxchange.org/jshop/tags/basket" %>
14 <jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean" type="PizzaBean" />
16 <jsp:setProperty name="controller" property="application" value="${pageContext.servletContext}" />
17 <jsp:setProperty name="controller" property="basket" value="${basket}" />
19 // TODO: Can be removed later
23 <c:set var="basePath" value="${pageContext.request.contextPath}" />
25 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
26 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
28 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
29 <link rel="stylesheet" href="${basePath}/style.css" type="text/css" />
30 <title>Pizza-Service - Willkommen</title>
36 <h1>Pizza-Service - Willkommen</h1>
40 <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
42 <div id="content_outer">
43 <div id="content_title">
44 <h2>Eingangsseite (dummy):</h2>
48 <!-- TODO: Missing in xhtml: //-->
49 <basket:mini_basket basket="${basket}" />
54 <th colspan="4" class="table_header">
55 Folgendes kann bestellt werden:
62 <th class="table_header_column">
65 <th class="table_header_column">
68 <th class="table_header_column">
71 <th class="table_header_column">
78 <c:forEach var="product" items="${controller.availableProductsIterator}">
80 <c:when test="${controller.basket.isAdded(product)}">
81 <c:set var="item" value="${controller.basket.item}" />
85 <td class="table_data_column">
86 <a href="${basePath}/basket.jsp" title="Zum Warenkorb">Warenkorb</a>
88 <td class="table_data_column">
91 <td class="table_data_column">
94 <td class="table_data_column" align="right">
95 <fmt:formatNumber type="currency" minFractionDigits="2" maxFractionDigits="2" value="${product.price}" />
102 <form action="${basePath}/form_handler/add_item.jsp" accept-charset="utf-8" id="form" method="post">
103 <table class="table">
106 <td class="table_data_column">
107 <input class="submit" type="submit" name="add" value="Hinzufügen" />
108 <input type="hidden" name="itemId" value="${product.itemId}" />
109 <input type="hidden" name="itemType" value="Product" />
111 <td class="table_data_column">
112 <input class="input" type="text" name="amount" size="3" maxlength="20" />
114 <td class="table_data_column">
117 <td class="table_data_column" align="right">
118 <fmt:formatNumber type="currency" minFractionDigits="2" maxFractionDigits="2" value="${product.price}" />
130 <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />