<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <link rel="stylesheet" href="style.css" type="text/css"/>
+ <link rel="stylesheet" href="<%=request.getContextPath()%>/style.css" type="text/css"/>
<title><%=PizzaServiceApplication.MAIN_TITLE%> - Vielen Dank!</title>
</head>
<body>
- <div id="title">
- <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Vielen Dank!</h1>
+ <div id="header">
+ <div id="title">
+ <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Vielen Dank!</h1>
+ </div>
</div>
- <div id="menu">
- <jsp:include page="/static/menu.jsp" flush="true" />
- </div>
+ <jsp:include page="/static/menu.jsp" flush="true" />
<div id="content_outer">
<div id="content_title">
<div id="content">
<table class="table">
- <thead class="table_header">
+ <thead>
<tr>
<th class="table_header_column">
Bestellen?
</th>
</tr>
</thead>
- <tbody class="table_body">
+ <tbody>
<%
- // Get iterator from products
- Iterator<Map.Entry<String, Product>> iterator = app.getProductsIterator();
+ // Get Iterator
+ Iterator<Product> iterator = app.getAvailableProducts();
- // Iterate over all
+ // "Walk" through all products and unmark them as ordered
while (iterator.hasNext()) {
- // Get entry
- Map.Entry<String, Product> entry = iterator.next();
-
- // Get product
- Product product = entry.getValue();
-
- // Mark product as ordered
- app.markProductAsOrdered(product, session);
+ // Get product instance
+ Product product = iterator.next();
%>
<tr>
<td>
<td>
<%=product.getPrice()%>
</td>
- <td>
+ <td align="right">
<%=app.getTotalPositionPriceFromRequestSession(product, request, session)%>
</td>
</tr>
<%
}
- float totalPrice = app.calculateTotalPrice(request, session);
%>
<tr>
<td id="table_total_amount_left">
<td id="table_total_amount_right">
<%=app.calculateTotalAmount(request, session)%>
</td>
- <td class="spacer">
+ <td>
</td>
<td id="table_total_sum_left">
Gesamtpreis:
</td>
- <td id="table_total_sum_right">
- <%=totalPrice%>
+ <td id="table_total_sum_right" align="right">
+ <%=app.calculateTotalPrice(request, session)%>
</td>
</tr>
<tr>
<td colspan="5" class="table_row">
<%
+ // Debug message
+ app.getLogger().debug("customer=" + customer);
+
+ // Get iterator on all fields/attributes
Iterator<Map.Entry<Field, Object>> fieldIterator = customer.iterator();
%>
<ul>
</table>
</div>
</div>
+
+ <jsp:include page="/static/footer.jsp" flush="true" />
</body>
</html>