3 Created on : 04.08.2015, 10:55:10
7 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
8 <%--<%@page errorPage="errorHandler.jsp" %>--%>
9 <%@page contentType="text/html" pageEncoding="UTF-8"%>
10 <%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%>
11 <%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean"%>
12 <jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean" type="PizzaBean" />
14 <jsp:setProperty name="controller" property="application" value="${pageContext.servletContext}" />
15 <jsp:setProperty name="controller" property="session" value="${pageContext.session}" />
18 // TODO: Can be removed later
22 <c:set var="basePath" value="${pageContext.request.contextPath}" />
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="${basePath}/style.css" type="text/css" />
29 <title>Pizza-Service - Produkte</title>
35 <h1>Pizza-Service - Produkte</h1>
39 <jsp:include page="/static/admin/admin_menu.jsp" flush="false" />
41 <div id="content_outer">
42 <div id="content_title">
43 <h2>Diese Produkte wurden eingestellt:</h2>
48 <form action="${basePath}/form_handler/admin/do_product.jsp" accept-charset="utf-8" id="form" method="post">
52 <th class="table_header_column">
55 <th class="table_header_column">
58 <th class="table_header_column">
61 <th class="table_header_column">
64 <th class="table_header_column">
71 <c:forEach var="product" items="${controller.allProductsIterator}">
75 <input class="input" type="checkbox" name="itemId[${product.itemId}]" value="1" />
84 ${controller.getPrintableProduktCategory(product)}
87 ${controller.getPrintableProduktAvailability(product)}
92 <td colspan="5" class="table_footer">
93 <input class="reset" type="reset" value="Formular zurücksetzen" />
94 <input class="submit" type="submit" name="edit" value="Ändern" />
95 <input class="delete" type="submit" name="delete" value="Löschen" />
104 <form action="${basePath}/form_handler/admin/do_product.jsp" accept-charset="utf-8" id="add" method="post">
106 <div class="table_header">
107 Neues Produkt hinzufügen:
110 <fieldset id="product_data">
111 <legend>Bitte alle Felder ausfüllen:</legend>
113 <div class="table_row">
114 <div class="table_left">
116 <div class="tiny">(z.B. <em>Pizza Italia</em>)</div>
119 <div class="table_right">
120 <input class="input" type="text" name="title" size="10" maxlength="255" />
123 <div class="clear"></div>
126 <div class="table_row">
127 <div class="table_left">
129 <div class="tiny">(z.B. <em>50.0</em>)</div>
132 <div class="table_right">
133 <input class="input" type="text" name="price" size="10" maxlength="255" />
136 <div class="clear"></div>
139 <div class="table_row">
140 <div class="table_left">
144 <div class="table_right">
145 <jsp:include flush="false" page="/static/admin/admin_category_selection_box.jsp" />
148 <div class="clear"></div>
151 <div class="table_row">
152 <div class="table_left">
156 <div class="table_right">
157 <select class="select" name="available" size="1">
158 <option value="true">Ja</option>
159 <option value="false">Nein</option>
163 <div class="clear"></div>
167 <div class="table_footer">
168 <input class="reset" type="reset" value="Formular zurücksetzen" />
169 <input class="submit" type="submit" name="add" value="Hinzufügen" />
176 Hinweise zum Hinzufügen von Produkten:
178 <li>Beim Preis keine Währungszeichen (wie € usw.) eingeben.</li>
179 <li>Kommastellen mit Punkt, nicht mit Komma abtrennen.</li>
180 <li>Keine Tausendertrenner verwenden, auch keine Leerschritte.</li>
186 <jsp:include page="/static/admin/admin_footer.jsp" flush="false" />