-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewProject.jsp
72 lines (61 loc) · 1.73 KB
/
viewProject.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<%@page import="ems.erp.beans.Project"%>
<%@page import="ems.erp.model.ManagerModel"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!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=ISO-8859-1">
<title>Insert title here</title>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="../css/common.css">
<%@include file="../jsp/header.jsp"%>
</head>
<body>
<%
String empSession = (String) session.getAttribute("empUser");
%>
<h3>Project List</h3>
<%
ArrayList<Project> plist = new ArrayList<Project>();
plist = ManagerModel.viewProject();
String msg = (String) request.getAttribute("msg");
if (msg == null) {
} else {
%>
<h2 style="color: green;"><%=msg%></h2>
<%
}
%>
<!-- Update msg -->
<table id="emp_table">
<tr>
<th>Project Name</th>
<th>Project Status</th>
<th>Project Description</th>
<th>Project Cost</th>
<th>Assign To</th>
<th>Department</th>
</tr>
<%
for (int i = 0; i < plist.size(); i++) {
%>
<tr>
<td><%=plist.get(i).getPname()%></td>
<td><%=plist.get(i).getPstatus()%></td>
<td><%=plist.get(i).getDescription()%></td>
<td><%=plist.get(i).getCost()%></td>
<td><%=plist.get(i).getAssignTo()%></td>
<td><%=plist.get(i).getDepartment()%></td>
</tr>
<%
}
%>
</table>
</body>
</html>