<%--
  % This Javer Server Page is part of the iX JSP tutorial.
  % The user can give in address information for his order 
 --%>


<%-- Setting up an error page --%>
<%@ page errorPage="/jspTutorial/errorpage.jsp" %>

<%@ page import="de.ix.jspTutorial.model.Customer" %>

<jsp:useBean
     id    = "pizzaModelManager"
     class = "de.ix.jspTutorial.controller.ModelManager"
     scope = "session"
   >
 </jsp:useBean>

<% Customer customer = pizzaModelManager.getCustomer();
   pageContext.setAttribute("Customer",customer) ;
%>
 

<HTML>
<HEAD>
	<TITLE>PIZZA SERVICE ONLINE - ORDER</TITLE>
</HEAD>

<BODY BGCOLOR="#FFFFFF" LINK="#406E6E" ALINK="#406E6E" VLINK="#406E6E">

<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
<TR VALIGN="top">
	<TD WIDTH="115"><A HREF="index.jsp"><IMG SRC="logo.gif" WIDTH="115" HEIGHT="115" ALT="" BORDER="0"></A></TD>
	<TD WIDTH="50">&nbsp;</TD>
	<TD WIDTH="500"><FONT FACE="Arial,Helvetica" SIZE="2">
	<FONT SIZE="5" COLOR="#406E6E"><B><I>Pizza bestellen</I></B></FONT><BR>
	<BR>
	Bitte bestätigen Sie die Lieferadresse für Ihre Bestellung:
	<BR>	
	<FORM ACTION="PizzaServiceFC.jsp" METHOD="get">
	<INPUT NAME="doAction" TYPE="hidden" VALUE="order">	
	<INPUT NAME="id" TYPE="hidden" VALUE="<jsp:getProperty name="Customer" property="id" />">	
	<FONT COLOR="#406E6E"><B><I>Lieferadresse:</I></B></FONT><BR>
	<BR>
	<!-- Table for choice of pizza -->
	<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
	<TR>
		<TD WIDTH="120"><FONT FACE="Arial,Helvetica" SIZE="2">Kundennummer</TD>
		<TD><jsp:getProperty name="Customer" property="id" /></TD>
	</TR>
	<TR>
		<TD WIDTH="120"><FONT FACE="Arial,Helvetica" SIZE="2">Vorname</TD>
		<TD><INPUT NAME="firstname" TYPE="text" SIZE="30" VALUE="<jsp:getProperty name="Customer" property="firstname" />"</TD>
	</TR>
	<TR>
		<TD><FONT FACE="Arial,Helvetica" SIZE="2">Nachname</TD>
		<TD><INPUT NAME="lastname" TYPE="text" SIZE="30" VALUE="<jsp:getProperty name="Customer" property="lastname" />"></TD>
	</TR>	
	<TR>
		<TD><FONT FACE="Arial,Helvetica" SIZE="2">eMail</TD>
		<TD><INPUT NAME="email" TYPE="text" SIZE="30" VALUE="<jsp:getProperty name="Customer" property="email" />"></TD>
	</TR>				
	<TR>
		<TD><FONT FACE="Arial,Helvetica" SIZE="2">Adresse 1</TD>
		<TD><INPUT NAME="address1" TYPE="text" SIZE="30" VALUE="<jsp:getProperty name="Customer" property="address1" />"></TD>
	</TR>	
	<TR>
		<TD><FONT FACE="Arial,Helvetica" SIZE="2">Adresse 2</TD>
		<TD><INPUT NAME="address2" TYPE="text" SIZE="30" VALUE="<jsp:getProperty name="Customer" property="address2" />"></TD>
	</TR>	
	<TR>
		<TD><FONT FACE="Arial,Helvetica" SIZE="2">PLZ</TD>
		<TD><INPUT NAME="zip" TYPE="text" SIZE="5" VALUE="<jsp:getProperty name="Customer" property="zip" />"></TD>
	</TR>	
	<TR>
		<TD><FONT FACE="Arial,Helvetica" SIZE="2">Stadt</TD>
		<TD><INPUT NAME="town" TYPE="text" SIZE="30" VALUE="<jsp:getProperty name="Customer" property="town" />"></TD>
	</TR>			
	</TABLE>
	<BR>
	<BR>		
	<INPUT TYPE="submit" VALUE="Bestellen >>">
	</FORM>
	<%@ include file="/jspTutorial/includes/copyright.html"%>
	</FONT></TD>
</TR>
</TABLE>
</BODY>
</HTML>