3 Created on : 04.08.2015, 10:33:10
7 <%--<%@page errorPage="errorHandler.jsp" %>--%>
8 <%@page import="java.util.Map"%>
9 <%@page import="java.util.Iterator"%>
10 <%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
11 <%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
12 <%@page import="org.mxchange.pizzaapplication.product.Product"%>
13 <%@page contentType="text/html" pageEncoding="UTF-8"%>
16 // Init application instance
17 PizzaApplication app = PizzaServiceApplication.getInstance(application);
19 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
20 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
22 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
23 <link rel="stylesheet" href="<%=request.getContextPath()%>/style.css" type="text/css"/>
24 <title><%=PizzaServiceApplication.MAIN_TITLE%> - Eingangsseite</title>
29 <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Eingangsseite</h1>
32 <jsp:include page="/static/menu.jsp" flush="true" />
34 <div id="content_outer">
35 <div id="content_title">
36 <h2>Folgendes kann bestellt werden:</h2>
40 <form action="<%=request.getContextPath()%>/form_handler/do_preview.jsp" accept-charset="utf-8" id="form" method="post">
42 <thead class="table_header">
44 <th class="table_header_column">
47 <th class="table_header_column">
50 <th class="table_header_column">
53 <th class="table_header_column">
59 <tbody class="table_body">
61 // "Walk" through all products and unmark them as ordered
62 for (final Product product : app.getUnmarkedProducts(session)) {
66 <input type="checkbox" name="<%=String.format(PizzaApplication.HTTP_PARAM_MASK, PizzaApplication.HTTP_PARAM_CHOOSE, product.getName())%>" value="1" <%=app.getCheckedHtmlFromProduct(product, request, session)%> />
69 <input type="text" name="<%=String.format(PizzaApplication.HTTP_PARAM_MASK, PizzaApplication.HTTP_PARAM_AMOUNT, product.getName())%>" value="<%=app.getAmountFromSession(product, session)%>" size="3" maxlength="20" />
72 <%=product.getTitle()%>
75 <%=product.getPrice()%>
83 <td colspan="4" class="table_footer">
84 <input type="reset" value="Formular zurücksetzen" />
85 <input type="submit" name="send" value="Bestellung ansehen" />