<%@ 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" %>

<%
     com.ferienclub.custadmin.beans.User u = (com.ferienclub.custadmin.beans.User)request.getAttribute("detailUser");
     com.ferienclub.custadmin.beans.Address a = u.getAddress();
 %>

<html>
  <head>
   <title>Club Administration V0.1 -- Customer Detail</title>
   <script type="text/javascript">
     function goBack()
     {
       location.href="CustomerAdm.jsp";
     }
   </script>
  </head>
<body>
 <center>
 <h1>Customer Detail:</h1><br><br>
 <html:errors/></p>
  <table border=0>
    <tr><td>First Name:</td><td><%= u.getFirstName() %></td></tr>    
    <tr><td>Name:</td><td><%= u.getName() %></td></tr>    
    <tr><td>Password:</td><td><%= u.getPassword() %></td></tr>
    <tr></tr>
    <tr><b>Address Information:</b></tr>
    <tr><td>Country:</td><td><%= a.getCountry() %></td></tr>
    <tr><td>Province:</td><td><%= a.getProvince() %></td></tr>
    <tr><td>Zipcode:</td><td><%= a.getZipCode() %></td></tr>
    <tr><td>Street:</td><td><%= a.getStreet() %></td></tr>
    <tr><td>Email:</td><td><%= a.getEmail() %></td></tr>
    <tr><td>Phone:</td><td><%= a.getPhone() %></td></tr>
  </table>
  <p>
  <input type="button" value="Back" onclick="goBack()"/>
 </center>
</body>
</html>
