]> 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="title">
30                         <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Kategorien</h1>
31                 </div>
32
33                 <jsp:include page="/static/admin/menu.jsp" flush="true" />
34
35                 <div id="content_outer">
36                         <div id="content_title">
37                                 <h2>Kategorien administrieren:</h2>
38                         </div>
39
40                         <div id="content">
41                                 <div class="para">
42                                         <form action="<%=request.getContextPath()%>/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="form" method="post">
43                                         <table class="table">
44                                                 <thead class="table_header">
45                                                         <tr>
46                                                                 <th class="table_header_column">
47                                                                         Auswählen:
48                                                                 </th>
49                                                                 <th class="table_header_column">
50                                                                         Bezeichnung:
51                                                                 </th>
52                                                                 <th class="table_header_column">
53                                                                         Elternkategorie:
54                                                                 </th>
55                                                         </tr>
56                                                 </thead>
57
58                                                 <tbody class="table_body">
59                                                         <c:forEach var="category" items="<%=app.getCategories()%>">
60                                                         <tr>
61                                                                 <td>
62                                                                         <input type="checkbox" name="<%=PizzaCategoryDatabaseConstants.COLUMN_ID%>[${category.getId()}]" value="1" />
63                                                                 </td>
64                                                                 <td>
65                                                                         ${category.decodedTitle()}
66                                                                 </td>
67                                                                 <td>
68                                                                         ${app.generateLinkForParent(category)}
69                                                                 </td>
70                                                         </tr>
71                                                         </c:forEach>
72
73                                                         <tr>
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" />
78                                                                 </td>
79                                                         </tr>
80                                                 </tbody>
81                                         </table>
82                                         </form>
83                                 </div>
84
85                                 <div class="para">
86                                         <form action="<%=request.getContextPath()%>/form_handler/admin/do_category.jsp" accept-charset="utf-8" id="add" method="post">
87                                         <div class="table">
88                                                 <div class="table_header">
89                                                         Neue Kategorie hinzufügen:
90                                                 </div>
91
92                                                 <fieldset id="product_data">
93                                                         <legend>Bitte alle Felder ausfüllen:</legend>
94
95                                                         <div class="data_row">
96                                                                 <div class="table_left">
97                                                                         Bezeichnung:
98                                                                         <div class="tiny">(z.B. <em>Pizzen</em>)</div>
99                                                                 </div>
100
101                                                                 <div class="table_right">
102                                                                         <input type="text" name="<%=PizzaCategoryDatabaseConstants.COLUMN_TITLE%>" size="10" maxlength="255" />
103                                                                 </div>
104
105                                                                 <div class="clear"></div>
106                                                         </div>
107
108                                                         <div class="data_row">
109                                                                 <div class="table_left">
110                                                                         Elternkategorie:
111                                                                 </div>
112
113                                                                 <div class="table_right">
114                                                                         <jsp:include flush="true" page="/static/admin/parent_category_selection_box.jsp" />
115                                                                 </div>
116
117                                                                 <div class="clear"></div>
118                                                         </div>
119                                                 </fieldset>
120
121                                                 <div class="table_footer">
122                                                         <input type="reset" value="Formular zurücksetzen" />
123                                                         <input type="submit" name="add" value="Hinzufügen" />
124                                                 </div>
125                                         </div>
126                                         </form>
127                                 </div>
128                                 <div class="para">
129                                         Hinweise zum Hinzufügen von Kategorien
130                                         <ul>
131                                                 <li></li>
132                                         </ul>
133                                 </div>
134                         </div>
135                 </div>
136         </body>
137 </html>