]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Renamed JSP + added 2 stubs (login, register)
authorRoland Haeder <roland@mxchange.org>
Tue, 11 Aug 2015 09:58:47 +0000 (11:58 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 11 Aug 2015 10:00:19 +0000 (12:00 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

web/form_handler/do_order.jsp [new file with mode: 0644]
web/form_handler/order.jsp [deleted file]
web/login.jsp [new file with mode: 0644]
web/preview.jsp
web/register.jsp [new file with mode: 0644]
web/static/menu.jsp
web/style.css

diff --git a/web/form_handler/do_order.jsp b/web/form_handler/do_order.jsp
new file mode 100644 (file)
index 0000000..79e7c5e
--- /dev/null
@@ -0,0 +1,56 @@
+<%-- 
+       Document   : order
+       Created on : 07.08.2015, 14:58:21
+       Author     : Roland Haeder
+--%>
+
+<%--<%@page errorPage="errorHandler.jsp" %>--%>
+<%@page contentType="text/html" pageEncoding="UTF-8"%>
+<%@page import="org.mxchange.pizzaapplication.beans.CustomerBean" %>
+<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
+<%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
+
+<%
+       // Init application instance
+       PizzaApplication app = PizzaServiceApplication.getInstance(application);
+
+       // Is it post?
+       if ("POST".equals(request.getMethod())) { //NOI18N
+               // Handle saving customer data and such things
+               // Redirect to proper URL
+               // @TODO Commented out for developing:
+               //response.sendRedirect(request.getContextPath() + "/finished.jsp");
+%>
+<jsp:useBean id="customer" scope="session" class="org.mxchange.pizzaapplication.customer.bean.PizzaServiceCustomerBean" type="CustomerBean" />
+<jsp:setProperty name="customer" property="*" />
+<jsp:forward page="../finished.jsp" />
+<%
+       }
+%>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
+       <head>
+               <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+               <link rel="stylesheet" href="style.css" type="text/css"/>
+               <title><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</title>
+       </head>
+
+       <body>
+               <div id="title">
+                       <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</h1>
+               </div>
+
+               <jsp:include page="/static/menu.jsp" flush="true" />
+
+               <div id="content_outer">
+                       <div id="content_title">
+                               <h2>Bitte nicht direkt aufrufen:</h2>
+                       </div>
+
+                       <div id="content">
+                               Bitte rufen Sie diese Seite nicht direkt auf.
+                       </div>
+               </div>
+       </body>
+</html>
diff --git a/web/form_handler/order.jsp b/web/form_handler/order.jsp
deleted file mode 100644 (file)
index e00ec74..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-<%-- 
-       Document   : order
-       Created on : 07.08.2015, 14:58:21
-       Author     : Roland Haeder
---%>
-
-<%--<%@page errorPage="errorHandler.jsp" %>--%>
-<%@page contentType="text/html" pageEncoding="UTF-8"%>
-<%@page import="org.mxchange.pizzaapplication.beans.CustomerBean" %>
-<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
-<%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
-
-<%
-       // Init application instance
-       PizzaApplication app = PizzaServiceApplication.getInstance(application);
-
-       // Is it post?
-       if ("POST".equals(request.getMethod())) { //NOI18N
-               // Redirect to proper URL
-               // @TODO Commented out for developing:
-               //response.sendRedirect(request.getContextPath() + "/finished.jsp");
-%>
-<jsp:useBean id="customer" scope="session" class="org.mxchange.pizzaapplication.customer.bean.PizzaServiceCustomerBean" type="CustomerBean" />
-<jsp:setProperty name="customer" property="*" />
-<jsp:forward page="../finished.jsp" />
-<%
-       }
-%>
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
-       <head>
-               <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-               <link rel="stylesheet" href="style.css" type="text/css"/>
-               <title><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</title>
-       </head>
-
-       <body>
-               <div id="title">
-                       <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Form-Handler</h1>
-               </div>
-
-               <jsp:include page="/static/menu.jsp" flush="true" />
-
-               <div id="content_outer">
-                       <div id="content_title">
-                               <h2>Bitte nicht direkt aufrufen:</h2>
-                       </div>
-
-                       <div id="content">
-                               Bitte rufen Sie diese Seite nicht direkt auf.
-                       </div>
-               </div>
-       </body>
-</html>
diff --git a/web/login.jsp b/web/login.jsp
new file mode 100644 (file)
index 0000000..8d418c2
--- /dev/null
@@ -0,0 +1,76 @@
+<%-- 
+    Document   : login
+    Created on : 11.08.2015, 11:35:53
+    Author     : Roland Haeder
+--%>
+
+<%@page contentType="text/html" pageEncoding="UTF-8"%>
+<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
+       <head>
+               <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+               <link rel="stylesheet" href="style.css" type="text/css"/>
+               <title><%=PizzaServiceApplication.MAIN_TITLE%> - Einloggen</title>
+       </head>
+
+       <body>
+               <div id="title">
+                       <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Einloggen</h1>
+               </div>
+
+               <jsp:include page="/static/menu.jsp" flush="true" />
+
+               <div id="content_outer">
+                       <div id="content_title">
+                               <h2>Einloggen als bestehender Kunde:</h2>
+                       </div>
+
+                       <div id="content">
+                               <div>
+                                       Noch kein Kunde? Einfach beim Bestellen anmelden oder <a href="<%=request.getContextPath()%>/register.jsp">hier</a> anmelden.
+                               </div>
+
+                               <form action="<%=request.getContextPath()%>/form_handler/do_login.jsp" accept-charset="utf-8" id="form" method="post">
+                                       <div class="table">
+                                               <div class="table_header">
+                                                       Bitte geben Sie Ihre Kundennummer und Passwort ein:
+                                               </div>
+
+                                               <fieldset id="login_data">
+                                                       <legend title="Bitte Daten eingeben:">Bitte Daten eingeben:</legend>
+
+                                                       <div class="table_row">
+                                                               <div class="data_left">
+                                                                       Kundennummer:
+                                                               </div>
+                                                               <div class="data_right">
+                                                                       <input type="text" name="id" size="10" maxlength="20" />
+                                                               </div>
+                                                       </div>
+
+                                                       <div class="clear"></div>
+
+                                                       <div class="table_row">
+                                                               <div class="data_left">
+                                                                       Passwort:
+                                                               </div>
+                                                               <div class="data_right">
+                                                                       <input type="password" name="password" size="10" maxlength="255" />
+                                                               </div>
+                                                       </div>
+
+                                                       <div class="clear"></div>
+                                               </fieldset>
+
+                                               <div class="table_footer">
+                                                       <input type="reset" value="Formular zurücksetzen" />
+                                                       <input type="submit" name="send" value="Einloggen" />
+                                               </div>
+                                       </div>
+                               </form>
+                       </div>
+               </div>
+       </body>
+</html>
index 7002f658c191033e57cf366deb5ed76717634de2..62a3dad045bf9b1cb8c897355d001c4252fb7674 100644 (file)
@@ -42,7 +42,7 @@
                        </div>
 
                        <div id="content">
-                               <form action="<%=request.getContextPath()%>/form_handler/order.jsp" accept-charset="utf-8" id="form" method="post">
+                               <form action="<%=request.getContextPath()%>/form_handler/do_order.jsp" accept-charset="utf-8" id="form" method="post">
                                <table class="table">
                                        <thead class="table_header">
                                                <tr>
 
                                                <tr>
                                                        <td colspan="5">
-                                                               <fieldset>
+                                                               <fieldset id="personal_data">
                                                                        <legend title="Bitte geben Sie Ihre Daten ein.">Bitte Ihre Daten eingeben:</legend>
 
                                                                        <div class="data_row">
                                                                                        </select>
                                                                                </div>
 
-                                                                                       <div class="clear"></div>
+                                                                               <div class="clear"></div>
                                                                        </div>
 
                                                                        <div class="data_row">
diff --git a/web/register.jsp b/web/register.jsp
new file mode 100644 (file)
index 0000000..37d6589
--- /dev/null
@@ -0,0 +1,50 @@
+<%-- 
+    Document   : register
+    Created on : 11.08.2015, 11:56:22
+    Author     : Roland Haeder
+--%>
+
+<%@page contentType="text/html" pageEncoding="UTF-8"%>
+<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
+       <head>
+               <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+               <link rel="stylesheet" href="style.css" type="text/css"/>
+               <title><%=PizzaServiceApplication.MAIN_TITLE%> - Neukunde</title>
+       </head>
+
+       <body>
+               <div id="title">
+                       <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Neukunde</h1>
+               </div>
+
+               <jsp:include page="/static/menu.jsp" flush="true" />
+
+               <div id="content_outer">
+                       <div id="content_title">
+                               <h2>Einloggen als bestehender Kunde:</h2>
+                       </div>
+
+                       <div id="content">
+                               <div>
+                                       Sie sind bereits Kunde? Dann <a href="<%=request.getContextPath()%>/login.jsp">hier</a> einloggen.
+                               </div>
+
+                               <form action="<%=request.getContextPath()%>/form_handler/do_register.jsp" accept-charset="utf-8" id="form" method="post">
+                                       <div class="table">
+                                               <div class="table_header">
+                                                       Bitte geben Sie mindestens Name, Anschrift und Telefonnummer ein:
+                                               </div>
+
+                                               <div class="table_footer">
+                                                       <input type="reset" value="Formular zurücksetzen" />
+                                                       <input type="submit" name="send" value="Anmelden" />
+                                               </div>
+                                       </div>
+                               </form>
+                       </div>
+               </div>
+       </body>
+</html>
index c022e1512a4e5721fcb4c3e1c2981d3326088b31..a8a22db9af2f460bf10c739e9b2c57b564dc7d69 100644 (file)
                <li><a href="<%=request.getContextPath()%>/finished.jsp" title="Bestellung abgeschlossen">Vielen Dank</a></li>
                <li><a href="<%=request.getContextPath()%>/bye.jsp" title="Sitzung beennden">Sitzung beenden</a></li>
        </ul>
+
+       <ul>
+               <li><a href="<%=request.getContextPath()%>/login.jsp" title="Login für bestehende Kunden">Einloggen</a></li>
+               <li><a href="<%=request.getContextPath()%>/register.jsp" title="Anmeldung als neuer Kunde">Neuer Kunde</a></li>
+               <li><a href="<%=request.getContextPath()%>/lost_passwd.jsp" title="Neues Passwort erstellen">Passwort vergessen?</a></li>
+       </ul>
 </div>
index 61515f9782b23179878f367e6f819d281066b5da..c4a12262be837eac61b383801122dcb8c49c1106 100644 (file)
@@ -1,3 +1,8 @@
+/*
+div {
+       border: 1px solid #ff0000;
+}
+/**/
 
 .data_row {
        width: 100%;
        clear: both;
 }
 
-/*
- Debug only:
-div {
-       border: 1px solid #ff0000;
+table {
+       margin: 0px;
+       padding: 0px;
+}
+
+.table_row {
+       width: 300px;
 }
-*/