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>
30 <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Kategorien</h1>
33 <jsp:include page="/static/admin/menu.jsp" flush="true" />
35 <div id="content_outer">
36 <div id="content_title">
37 <h2>Kategorien administrieren:</h2>
42 <form action="<%=request.getContextPath()%>/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="form" method="post">
44 <thead class="table_header">
46 <th class="table_header_column">
49 <th class="table_header_column">
52 <th class="table_header_column">
58 <tbody class="table_body">
59 <c:forEach var="category" items="<%=app.getCategories()%>">
62 <input type="checkbox" name="<%=PizzaCategoryDatabaseConstants.COLUMN_ID%>[${category.getId()}]" value="1" />
65 ${category.decodedTitle()}
68 ${app.generateLinkForParent(category)}
74 <td colspan="3" class="table_footer">
75 <input type="reset" value="Formular zurücksetzen" />
76 <input type="submit" name="edit" value="Ändern" />
77 <input type="submit" name="delete" value="Löschen" />
86 <form action="<%=request.getContextPath()%>/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="add" method="post">
88 <div class="table_header">
89 Neue Kategorie hinzufügen:
92 <fieldset id="product_data">
93 <legend>Bitte alle Felder ausfüllen:</legend>
95 <div class="data_row">
96 <div class="table_left">
98 <div class="tiny">(z.B. <em>Pizzen</em>)</div>
101 <div class="table_right">
102 <input type="text" name="<%=PizzaCategoryDatabaseConstants.COLUMN_TITLE%>" size="10" maxlength="255" />
105 <div class="clear"></div>
108 <div class="data_row">
109 <div class="table_left">
113 <div class="table_right">
114 <jsp:include flush="true" page="/static/admin/parent_category_selection_box.jsp" />
117 <div class="clear"></div>
121 <div class="table_footer">
122 <input type="reset" value="Formular zurücksetzen" />
123 <input type="submit" name="add" value="Hinzufügen" />
129 Hinweise zum Hinzufügen von Kategorien