3 Created on : 05.08.2015, 10:51:14
7 <%--<%@page errorPage="errorHandler.jsp" %>--%>
8 <%@page import="org.mxchange.jshopejb.category.Category"%>
9 <%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean"%>
10 <%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%>
11 <%@page contentType="text/html" pageEncoding="UTF-8"%>
12 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
13 <jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean" type="PizzaBean" />
15 <jsp:setProperty name="controller" property="application" value="${pageContext.servletContext}" />
16 <jsp:setProperty name="controller" property="session" value="${pageContext.session}" />
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 - Kategorien</title>
36 <h1>Pizza-Service - Kategorien</h1>
40 <jsp:include page="/WEB-INF/static/admin/admin_menu.jsp" flush="false" />
42 <div id="content_outer">
43 <div id="content_title">
44 <h2>Kategorien administrieren:</h2>
49 <form action="${basePath}/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="form" method="post">
53 <th class="table_header_column">
56 <th class="table_header_column">
59 <th class="table_header_column">
66 <c:forEach var="category" items="${controller.allCategoriesIterator}">
69 ${category.categoryId}:
70 <input class="input" type="checkbox" name="categoryId[${category.categoryId}]" value="1" />
73 ${category.decodedTitle}
76 ${controller.generateLinkForParent(category)}
82 <td colspan="3" class="table_footer">
83 <input class="reset" type="reset" value="Formular zurücksetzen" />
84 <input class="submit" type="submit" name="edit" value="Ändern" />
85 <input class="delete" type="submit" name="delete" value="Löschen" />
94 <form action="${basePath}/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="add_category" method="post">
96 <div class="table_header">
97 Neue Kategorie hinzufügen:
100 <fieldset id="product_data">
101 <legend>Bitte alle Felder ausfüllen:</legend>
103 <div class="table_row">
104 <div class="table_left">
106 <div class="tiny">(z.B. <em>Pizzen</em>)</div>
109 <div class="table_right">
110 <input class="input" type="text" name="title" size="10" maxlength="255" />
113 <div class="clear"></div>
116 <div class="table_row">
117 <div class="table_left">
121 <div class="table_right">
122 <jsp:include flush="false" page="/WEB-INF/static/admin/admin_parent_category_selection_box.jsp" />
125 <div class="clear"></div>
129 <div class="table_footer">
130 <input class="reset" type="reset" value="Formular zurücksetzen" />
131 <input class="submit" type="submit" name="add" value="Hinzufügen" />
139 <jsp:include page="/WEB-INF/static/admin/admin_footer.jsp" flush="false" />