forked from rvolvo/Online-Bank-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactivities.jsp
54 lines (52 loc) · 1.38 KB
/
activities.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<%@ page language="java" contentType="text/html; charset=windows-1255" pageEncoding="windows-1255"%>
<%@page import="beans.ActivityBean"%>
<%@page import="java.util.List"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<title>My Activities</title>
<link rel="icon" type="image/png" href="pics/favIcon.jpg">
</head>
<body>
<jsp:directive.include file="/main.jsp" />
<h4>Activities Details</h4>
<table id="clientActivitiesTable">
<%
List<ActivityBean> allClientActivites = (List<ActivityBean>)session.getAttribute("clientActivities");
if (!allClientActivites.isEmpty())
{
%>
<thead>
<tr>
<th>Activity Number</th>
<th>Date</th>
<th>Amount</th>
<th>Commission</th>
<th>Description</th>
</tr>
</thead>
<%
for(int i=0;i<allClientActivites.size();i++)
{
ActivityBean activityBean = allClientActivites.get(i);
%> <tr>
<td><%=activityBean.getId() %></td>
<td><%=activityBean.getActivityDate() %></td>
<td><%=activityBean.getAmount()%></td>
<td><%=activityBean.getCommission()%></td>
<td><%=activityBean.getDescription()%></td>
</tr>
<%
}
}
else
{
%>
<p>No Activities Found</p>
<%
}
%>
</table>
</body>
</html>