<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<html>
  <head>
   <title>Club Administration V0.1 -- Create Customer</title>
  <script type="text/javascript">
    function createCustomer()
    {
      document.forms[0].submit();
    }
  </script>
  </head>
<body>
 <center>
 <h1>Create Customer</h1><br><br>
 <html:errors/></p>
 <html:form action="CustomerAdm.do?mode=createUser">
 <table border="1">
   <tr><td>User</td></tr>
   <tr><td><b>First Name:</b></td><td><html:text property="firstName" size="30" maxlength="50"/></td></tr>
   <tr><td><b>Last Name:</b></td><td><html:text property="name" size="30" maxlength="50"/></td></tr>
   <tr><td><b>Password:</b></td><td><html:password property="password" size="30" maxlength="50"/></td></tr>
   <tr><td>Address</td></tr>
   <tr><td><b>E-Mail:</b></td><td><html:text property="email" size="30" maxlength="50"/></td></tr>
   <tr><td><b>Phone:</b></td><td><html:text property="phone" size="30" maxlength="50"/></td></tr>
   <tr><td><b>Street:</b></td><td><html:text property="street" size="30" maxlength="50"/></td></tr>
   <tr><td><b>Country:</b></td><td><html:text property="country" size="30" maxlength="50"/></td></tr>
   <tr><td><b>Province:</b></td><td><html:text property="province" size="30" maxlength="50"/></td></tr>
   <tr><td><b>ZIP:</b></td><td><html:text property="zipcode" size="30" maxlength="50"/></td></tr>
 </table>
 </html:form>

 <html:form action="CustomerAdm.do?mode=noChanges"/>

 <input type="button" value="Submit" onClick="createCustomer()"/> <input type="button" value="Cancel" onClick="document.forms[1].submit()"/> 
 </center>
</body>
</html>
