--- /dev/null
+<%--
+ 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>
+++ /dev/null
-<%--
- 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>
--- /dev/null
+<%--
+ 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>
</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">
--- /dev/null
+<%--
+ 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>
<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>
+/*
+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;
}
-*/