--- /dev/null
+<%--
+ Document : products
+ Created on : 04.08.2015, 10:55:10
+ Author : Roland Haeder
+--%>
+
+<%--<%@page errorPage="errorHandler.jsp" %>--%>
+<%@page import="java.util.Iterator"%>
+<%@page import="java.util.Map"%>
+<%@page import="org.mxchange.jcore.contact.Gender"%>
+<%@page import="org.mxchange.pizzaapplication.product.Product"%>
+<%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
+<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
+<%@page import="org.mxchange.pizzaapplication.beans.CustomerBean" %>
+<%@page contentType="text/html" pageEncoding="UTF-8"%>
+
+<jsp:useBean id="customer" scope="session" class="org.mxchange.pizzaapplication.customer.bean.PizzaServiceCustomerBean" type="CustomerBean" />
+<jsp:setProperty name="customer" property="*" />
+
+<%
+ // Init application instance
+ PizzaApplication app = PizzaServiceApplication.getInstance(application);
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<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="<%=request.getContextPath()%>/style.css" type="text/css"/>
+ <title><%=PizzaServiceApplication.MAIN_TITLE%> - Bestellung anzeigen</title>
+ </head>
+
+ <body>
+ <div id="title">
+ <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Bestellung anzeigen</h1>
+ </div>
+
+ <jsp:include page="/static/admin/menu.jsp" flush="true" />
+
+ <div id="content_outer">
+ <div id="content_title">
+ <h2>Diese Produkte wurden eingestellt:</h2>
+ </div>
+
+ <div id="content">
+ <div class="para">
+ <form action="<%=request.getContextPath()%>/form_handler/admin/do_products.jsp" accept-charset="utf-8" id="form" method="post">
+ <table class="table">
+ <thead class="table_header">
+ <tr>
+ <th class="table_header_column">
+ Produktname: (Schlüssel)
+ </th>
+ <th class="table_header_column">
+ Produktbezeichnung:
+ </th>
+ <th class="table_header_column">
+ Einzelpreis:
+ </th>
+ <th class="table_header_column">
+ Verfügbarkeit:
+ </th>
+ </tr>
+ </thead>
+
+ <tbody class="table_body">
+ <%
+ // "Walk" through all products and unmark them as ordered
+ for (final Product product : app.getUnmarkedProducts(session)) {
+ %>
+ <tr>
+ <td>
+ <%=product.getName()%>
+ </td>
+ <td>
+ <%=product.getTitle()%>
+ </td>
+ <td>
+ <%=product.getPrice()%>
+ </td>
+ <td>
+ <%=app.getPrintableProduktAvailability(product)%>
+ </td>
+ </tr>
+ <%
+ }
+ %>
+
+ <tr>
+ <td colspan="3" class="table_footer">
+ <input type="reset" value="Formular zurücksetzen" />
+ <input type="submit" name="edit" value="Ändern" />
+ <input type="submit" name="delete" value="Löschen" />
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </form>
+ </div>
+
+ <div class="para">
+ <form action="<%=request.getContextPath()%>/form_handler/admin/do_products.jsp" accept-charset="utf-8" id="add" method="post">
+ <div class="table">
+ <div class="table_header">
+ Neues Produkt hinzufügen:
+ </div>
+
+ <fieldset id="product_data">
+ <legend>Bitte alle Felder ausfüllen:</legend>
+
+ <div class="data_row">
+ <div class="table_left">
+ Produktname:
+ <div class="tiny">(z.B. <em>italia</em>)</div>
+ </div>
+
+ <div class="table_right">
+ <input type="text" name="name" size="10" maxlength="255" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="data_row">
+ <div class="table_left">
+ Produktbezeichnung:
+ <div class="tiny">(z.B. <em>Pizza Italia</em>)</div>
+ </div>
+
+ <div class="table_right">
+ <input type="text" name="title" size="10" maxlength="255" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="data_row">
+ <div class="table_left">
+ Einzelpreis:
+ <div class="tiny">(z.B. <em>50.0</em>)</div>
+ </div>
+
+ <div class="table_right">
+ <input type="text" name="price" size="10" maxlength="255" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+ </fieldset>
+
+ <div class="table_footer">
+ <input type="reset" value="Formular zurücksetzen" />
+ <input type="submit" name="add" value="Hinzufügen" />
+ </div>
+ </div>
+ </form>
+ </div>
+ <div class="para">
+ Hinweise zum Hinzufügen von Produkten:
+ <ul>
+ <li>Bitte bei Produktnamen immer klein schreieben, es wird aber klein konvertiert.</li>
+ <li>Bitte dabei nur Zeichen von <em>a</em> bis <em>z</em> verwenden.</li>
+ <li>Der Produktname darf nur maximal einmal vorkommen!</li>
+ <li>Beim Preis keine Währungszeichen (wie € usw.) eingeben.</li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </body>
+</html>