]> git.mxchange.org Git - pizzaservice-war.git/blob - web/form_handler/admin/do_category.jsp
Continued with project:
[pizzaservice-war.git] / web / form_handler / admin / do_category.jsp
1 <%-- 
2         Document   : order
3         Created on : 07.08.2015, 14:58:21
4         Author     : Roland Haeder
5 --%>
6
7 <%--<%@page errorPage="errorHandler.jsp" %>--%>
8 <%@page contentType="text/html" pageEncoding="UTF-8"%>
9 <%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
10 <%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
11 <%@page import="org.mxchange.pizzaapplication.beans.CustomerBean" %>
12 <%@page import="org.mxchange.pizzaapplication.product.Product"%>
13
14 <%
15         // Init application instance
16         PizzaApplication app = PizzaServiceApplication.getInstance(application);
17
18         // Is it post?
19         if ("POST".equals(request.getMethod())) { //NOI18N
20                 // Is "add/edit/delete" set?
21                 if (request.getAttribute("add") != null) { //NOI18N
22                         // Add new category
23                         app.doAdminAddCategory(request);
24                 } else if (request.getAttribute("edit") != null) { //NOI18N
25                         // @TODO
26                 } else if (request.getAttribute("delete") != null) { //NOI18N
27                         // @TODO
28                 }
29
30                 // Redirect to proper URL
31                 // @TODO Commented out for developing:
32                 //response.sendRedirect(request.getContextPath() + "/finished.jsp");
33         }
34 %>
35
36 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
37 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
38         <head>
39                 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
40                 <link rel="stylesheet" href="<%=request.getContextPath()%>/style.css" type="text/css"/>
41                 <title><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</title>
42         </head>
43
44         <body>
45                 <div id="title">
46                         <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</h1>
47                 </div>
48
49                 <jsp:include page="/static/admin/menu.jsp" flush="true" />
50
51                 <div id="content_outer">
52                         <div id="content_title">
53                                 <h2>Bitte nicht direkt aufrufen:</h2>
54                         </div>
55
56                         <div id="content">
57                                 Bitte rufen Sie diese Seite nicht direkt auf.
58                         </div>
59                 </div>
60         </body>
61 </html>