3 Created on : 05.08.2015, 10:51:14
7 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
8 <%--<%@page errorPage="errorHandler.jsp" %>--%>
9 <%@page import="org.mxchange.pizzaapplication.category.Category"%>
10 <%@page import="org.mxchange.pizzaapplication.database.category.PizzaCategoryDatabaseConstants"%>
11 <%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
12 <%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
13 <%@page contentType="text/html" pageEncoding="UTF-8"%>
16 // Init application instance
17 PizzaApplication app = PizzaServiceApplication.getInstance(application);
20 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
21 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
23 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
24 <link rel="stylesheet" href="<%=request.getContextPath()%>/style.css" type="text/css"/>
25 <title><%=PizzaServiceApplication.MAIN_TITLE%> - Kategorien</title>
31 <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Kategorien</h1>
35 <jsp:include page="/static/admin/menu.jsp" flush="false" />
37 <div id="content_outer">
38 <div id="content_title">
39 <h2>Kategorien administrieren:</h2>
44 <form action="<%=request.getContextPath()%>/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="form" method="post">
48 <th class="table_header_column">
51 <th class="table_header_column">
54 <th class="table_header_column">
61 <c:forEach var="category" items="<%=app.getCategories()%>">
64 <input class="input" type="checkbox" name="<%=PizzaCategoryDatabaseConstants.COLUMN_ID%>[${category.getId()}]" value="1" />
67 ${category.decodedTitle()}
70 ${app.generateLinkForParent(category)}
76 <td colspan="3" class="table_footer">
77 <input class="reset" type="reset" value="Formular zurücksetzen" />
78 <input class="submit" type="submit" name="edit" value="Ändern" />
79 <input class="delete" type="submit" name="delete" value="Löschen" />
88 <form action="<%=request.getContextPath()%>/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="add" method="post">
90 <div class="table_header">
91 Neue Kategorie hinzufügen:
94 <fieldset id="product_data">
95 <legend>Bitte alle Felder ausfüllen:</legend>
97 <div class="table_row">
98 <div class="table_left">
100 <div class="tiny">(z.B. <em>Pizzen</em>)</div>
103 <div class="table_right">
104 <input class="input" type="text" name="<%=PizzaCategoryDatabaseConstants.COLUMN_TITLE%>" size="10" maxlength="255" />
107 <div class="clear"></div>
110 <div class="table_row">
111 <div class="table_left">
115 <div class="table_right">
116 <jsp:include flush="false" page="/static/admin/parent_category_selection_box.jsp" />
119 <div class="clear"></div>
123 <div class="table_footer">
124 <input class="reset" type="reset" value="Formular zurücksetzen" />
125 <input class="submit" type="submit" name="add" value="Hinzufügen" />
131 Hinweise zum Hinzufügen von Kategorien
139 <jsp:include page="/static/admin/footer.jsp" flush="false" />