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 <basket:mini_basket basket="${basket}" />
53 <th colspan="4" class="table_header">
54 Folgendes kann bestellt werden:
61 <th class="table_header_column">
64 <th class="table_header_column">
67 <th class="table_header_column">
70 <th class="table_header_column">
77 <c:forEach var="product" items="${controller.availableProducts}">
79 <c:when test="${controller.basket.isAdded(product)}">
80 <c:set var="item" value="${controller.basket.item}" />
84 <td class="table_data_column">
85 <a href="${basePath}/basket.jsp" title="Zum Warenkorb">Warenkorb</a>
87 <td class="table_data_column">
90 <td class="table_data_column">
93 <td class="table_data_column" align="right">
94 <fmt:formatNumber type="currency" minFractionDigits="2" maxFractionDigits="2" value="${product.price}" />
101 <form action="${basePath}/form_handler/add_item.jsp" accept-charset="utf-8" id="form" method="post">
102 <table class="table">
105 <td class="table_data_column">
106 <input class="submit" type="submit" name="add" value="Hinzufügen" />
107 <input type="hidden" name="itemId" value="${product.itemId}" />
108 <input type="hidden" name="itemType" value="Product" />
110 <td class="table_data_column">
111 <input class="input" type="text" name="amount" size="3" maxlength="20" />
113 <td class="table_data_column">
116 <td class="table_data_column" align="right">
117 <fmt:formatNumber type="currency" minFractionDigits="2" maxFractionDigits="2" value="${product.price}" />
129 <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />