<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import="Juno2.AccountVO" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="java.util.HashMap" %>
<html>
<HEAD>
<META name="GENERATOR" content="IBM WebSphere Studio">
</HEAD>
<%@ include file="JTSheader.html" %>
<% 
String firstName = (String) session.getAttribute("firstName");
String lastName = (String) session.getAttribute("lastName");
String userID = (String) session.getAttribute("userId");
String userPassword = (String) session.getAttribute("userPassword");
%>

<center>
<title>Account Summary</title>
<h1>Summary of Accounts for  
<%= firstName  %> 
<%= lastName %> 
<%= userID %> 
</h1>

<input type="hidden" name="username" value="<%=userID%>">
<input type="hidden" name="password" value="<%=userPassword%>">

<%
  HashMap h = (HashMap) session.getAttribute("AccountList");
  if (h != null) {
%>  
 
  	
 		   
    <table cellpadding=10 border=1>
    <tr> 
    <th>Account ID</th>
    <th>Description</th>
    <th>Balance</th>
    <tr>

<%
    Iterator accounts = h.keySet().iterator();
    while (accounts.hasNext()) {
      String accountID = (String) accounts.next();
      AccountVO acct = (AccountVO) h.get(accountID);
%>
      <tr align="center">
      <td><%= acct.getAccountId() %></td>
      <td><%= acct.getAccountDescription() %></td>
      <td>$<%= acct.getAccountBalance() %></td>
      <td><a href="pos.do?cmd=pos&acct=<%=acct.getAccountId()%>">Positions</a></td>
      </tr>
     
<%
    }
  }
%>
    </table>
</center>
<%@ include file="JTSfooter.html" %>

</html>
