3 Created on : 04.08.2015, 10:55:10
7 <%--<%@page errorPage="errorHandler.jsp" %>--%>
8 <%@page import="java.util.Iterator"%>
9 <%@page import="java.util.Map"%>
10 <%@page import="org.mxchange.jcore.contact.Gender"%>
11 <%@page import="org.mxchange.pizzaapplication.product.Product"%>
12 <%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
13 <%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
14 <%@page import="org.mxchange.pizzaapplication.beans.CustomerBean" %>
15 <%@page contentType="text/html" pageEncoding="UTF-8"%>
17 <jsp:useBean id="customer" scope="session" class="org.mxchange.pizzaapplication.customer.bean.PizzaServiceCustomerBean" type="CustomerBean" />
18 <jsp:setProperty name="customer" property="*" />
21 // Init application instance
22 PizzaApplication app = PizzaServiceApplication.getInstance(application);
24 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
25 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
27 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
28 <link rel="stylesheet" href="<%=request.getContextPath()%>/style.css" type="text/css"/>
29 <title><%=PizzaServiceApplication.MAIN_TITLE%> - Bestellung anzeigen</title>
34 <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Bestellung anzeigen</h1>
37 <jsp:include page="/static/menu.jsp" flush="true" />
39 <div id="content_outer">
40 <div id="content_title">
41 <h2>Folgendes möchten Sie bestellen:</h2>
45 <form action="<%=request.getContextPath()%>/form_handler/do_order.jsp" accept-charset="utf-8" id="form" method="post">
47 <thead class="table_header">
49 <th class="table_header_column">
52 <th class="table_header_column">
55 <th class="table_header_column">
58 <th class="table_header_column">
61 <th class="table_header_column">
66 <tbody class="table_body">
68 // "Walk" through all products and unmark them as ordered
69 for (final Product product : app.getUnmarkedProducts(session)) {
73 <%=app.getPrintableChoosenFromRequestSession(product, request, session)%>
76 <%=app.handleAmountFromRequestSession(product, request, session)%>
79 <%=product.getTitle()%>
82 <%=product.getPrice()%>
85 <%=app.getTotalPositionPriceFromRequestSession(product, request, session)%>
89 // Is it choosen and amount set?
90 if (app.isProductChoosen(product, request, session)) {
91 // Then mark it as choosen
92 app.markProductAsChoosen(product, session);
97 <td id="table_total_amount_left">
100 <td id="table_total_amount_right">
101 <%=app.calculateTotalAmount(request, session)%>
106 <td id="table_total_sum_left">
109 <td id="table_total_sum_right">
110 <%=app.calculateTotalPrice(request, session)%>
116 <fieldset id="personal_data">
117 <legend title="Bitte geben Sie Ihre Daten ein.">Bitte Ihre Daten eingeben:</legend>
119 <div class="data_row">
120 <div class="data_left">
121 <label for="gender">Anrede</label>
124 <div class="data_right">
125 <jsp:include page="/static/gender_selection_box.jsp" flush="true" />
128 <div class="clear"></div>
131 <div class="data_row">
132 <div class="data_left">
133 <label for="companyname">Firmenname:</label>
136 <div class="data_right">
137 <input type="text" id="companyname" name="companyName" size="15" maxlength="255" value="${customer.companyName}" <%=app.getDisabledHtmlFromSession(request, session)%> />
140 <div class="clear"></div>
143 <div class="data_row">
144 <div class="data_left">
145 <label for="surname">Vorname:</label>
148 <div class="data_right">
149 <input type="text" id="surname" name="surname" size="10" maxlength="255" value="${customer.surname}" <%=app.getDisabledHtmlFromSession(request, session)%> />
152 <div class="clear"></div>
155 <div class="data_row">
156 <div class="data_left">
157 <label for="familyName">Nachname:</label>
160 <div class="data_right">
161 <input type="text" id="familyName" name="familyName" size="10" maxlength="255" value="${customer.familyName}" <%=app.getDisabledHtmlFromSession(request, session)%> />
164 <div class="clear"></div>
167 <div class="data_row">
168 <div class="data_left">
169 <label for="street">Straße:</label>
172 <div class="data_right">
173 <input type="text" id="street" name="street" size="20" maxlength="255" value="${customer.street}" <%=app.getDisabledHtmlFromSession(request, session)%> />
176 <div class="clear"></div>
179 <div class="data_row">
180 <div class="data_left">
181 <label for="houseNumber">Hausnummer:</label>
184 <div class="data_right">
185 <input type="text" id="houseNumber" name="houseNumber" size="3" maxlength="5" value="${customer.houseNumber}" <%=app.getDisabledHtmlFromSession(request, session)%> />
188 <div class="clear"></div>
191 <div class="data_row">
192 <div class="data_left">
193 <label for="zipCode">Postleitzahl:</label>
196 <div class="data_right">
197 <input type="text" id="zipCode" name="zipCode" size="5" maxlength="6" value="${customer.zipCode}" <%=app.getDisabledHtmlFromSession(request, session)%> />
200 <div class="clear"></div>
203 <div class="data_row">
204 <div class="data_left">
205 <label for="city">Ort:</label>
208 <div class="data_right">
209 <input type="text" id="city" name="city" size="10" maxlength="255" value="${customer.city}" <%=app.getDisabledHtmlFromSession(request, session)%> />
212 <div class="clear"></div>
215 <div class="data_row">
216 <div class="data_left">
217 <label for="phoneNumber">Telefon:</label>
220 <div class="data_right">
221 <input type="text" id="phoneNumber" name="phoneNumber" size="20" maxlength="255" value="${customer.phoneNumber}" <%=app.getDisabledHtmlFromSession(request, session)%> />
224 <div class="clear"></div>
227 <div class="data_row">
228 <div class="data_left">
229 <label for="faxNumber">Faxnummer:</label>
232 <div class="data_right">
233 <input type="text" id="faxNumber" name="faxNumber" size="20" maxlength="255" value="${customer.faxNumber}" <%=app.getDisabledHtmlFromSession(request, session)%> />
236 <div class="clear"></div>
239 <div class="data_row">
240 <div class="data_left">
241 <label for="cellphoneNumber">Handy:</label>
244 <div class="data_right">
245 <input type="text" id="cellphoneNumber" name="cellphoneNumber" size="20" maxlength="255" value="${customer.cellphoneNumber}" <%=app.getDisabledHtmlFromSession(request, session)%> />
248 <div class="clear"></div>
255 <td colspan="5" class="table_footer">
256 <input type="reset" value="Formular zurücksetzen" />
257 <input type="submit" name="send" value="Bestellung abschliessen" <%=app.getDisabledHtmlFromSession(request, session)%> />