]> git.mxchange.org Git - pizzaservice-war.git/blob - web/admin/category.jsp
Continued with project:
[pizzaservice-war.git] / web / admin / category.jsp
1 <%-- 
2         Document   : category
3         Created on : 05.08.2015, 10:51:14
4         Author     : Roland Haeder
5 --%>
6
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"%>
14
15 <%
16         // Init application instance
17         PizzaApplication app = PizzaServiceApplication.getInstance(application);
18 %>
19
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">
22         <head>
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>
26         </head>
27
28         <body>
29                 <div id="header"> 
30                         <div id="title">
31                                 <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Kategorien</h1>
32                         </div>
33                 </div>
34
35                 <jsp:include page="/static/admin/menu.jsp" flush="false" />
36
37                 <div id="content_outer">
38                         <div id="content_title">
39                                 <h2>Kategorien administrieren:</h2>
40                         </div>
41
42                         <div id="content">
43                                 <div class="para">
44                                         <form action="<%=request.getContextPath()%>/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="form" method="post">
45                                         <table class="table">
46                                                 <thead>
47                                                         <tr>
48                                                                 <th class="table_header_column">
49                                                                         Auswählen:
50                                                                 </th>
51                                                                 <th class="table_header_column">
52                                                                         Bezeichnung:
53                                                                 </th>
54                                                                 <th class="table_header_column">
55                                                                         Elternkategorie:
56                                                                 </th>
57                                                         </tr>
58                                                 </thead>
59
60                                                 <tbody>
61                                                         <c:forEach var="category" items="<%=app.getCategories()%>">
62                                                         <tr>
63                                                                 <td>
64                                                                         <input class="input" type="checkbox" name="<%=PizzaCategoryDatabaseConstants.COLUMN_ID%>[${category.getId()}]" value="1" />
65                                                                 </td>
66                                                                 <td>
67                                                                         ${category.decodedTitle()}
68                                                                 </td>
69                                                                 <td>
70                                                                         ${app.generateLinkForParent(category)}
71                                                                 </td>
72                                                         </tr>
73                                                         </c:forEach>
74
75                                                         <tr>
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" />
80                                                                 </td>
81                                                         </tr>
82                                                 </tbody>
83                                         </table>
84                                         </form>
85                                 </div>
86
87                                 <div class="para">
88                                         <form action="<%=request.getContextPath()%>/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="add" method="post">
89                                         <div class="table">
90                                                 <div class="table_header">
91                                                         Neue Kategorie hinzufügen:
92                                                 </div>
93
94                                                 <fieldset id="product_data">
95                                                         <legend>Bitte alle Felder ausfüllen:</legend>
96
97                                                         <div class="table_row">
98                                                                 <div class="table_left">
99                                                                         Bezeichnung:
100                                                                         <div class="tiny">(z.B. <em>Pizzen</em>)</div>
101                                                                 </div>
102
103                                                                 <div class="table_right">
104                                                                         <input class="input" type="text" name="<%=PizzaCategoryDatabaseConstants.COLUMN_TITLE%>" size="10" maxlength="255" />
105                                                                 </div>
106
107                                                                 <div class="clear"></div>
108                                                         </div>
109
110                                                         <div class="table_row">
111                                                                 <div class="table_left">
112                                                                         Elternkategorie:
113                                                                 </div>
114
115                                                                 <div class="table_right">
116                                                                         <jsp:include flush="false" page="/static/admin/parent_category_selection_box.jsp" />
117                                                                 </div>
118
119                                                                 <div class="clear"></div>
120                                                         </div>
121                                                 </fieldset>
122
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" />
126                                                 </div>
127                                         </div>
128                                         </form>
129                                 </div>
130                                 <div class="para">
131                                         Hinweise zum Hinzufügen von Kategorien
132                                         <ul>
133                                                 <li></li>
134                                         </ul>
135                                 </div>
136                         </div>
137                 </div>
138
139                 <jsp:include page="/static/admin/footer.jsp" flush="false" />
140         </body>
141 </html>