-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathagency_requests.jsp
97 lines (97 loc) · 5.03 KB
/
agency_requests.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<%@page import="Bsite_Classes.Validate"%>
<%@page import="java.sql.ResultSet"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Construction Company</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="stylesheet/style.css" rel="stylesheet" type="text/css" />
</head>
<script>
function appvfn(rid)
{
window.location = "./agency_reqst_action.jsp?rid=" + rid + "&act=a";
}
</script>
<body>
<div id="container">
<div class="header">
<div class="topmenu">
<ul>
<li><a href="index.html">Welcome <%=session.getAttribute("uname")%></a></li>
<li style="border:none;"><a href="logout.jsp">Logout</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
<div class="banner">
<div class="logozone"> <a href="#"><img src="images/logo.jpg" alt="" border="0" /></a> </div>
</div>
<div class="clear"></div>
<div class="workzone">
<div class="workzone-left">
<div class="mydiv">
<h1>Requests from Engineers</h1>
<table width="400">
<tr height="40">
<th><center>Id</center></th>
<th><center>Engineer Name</center></th>
<th><center>Action</center></th>
</tr>
<%
String owid = session.getAttribute("uid").toString();
ResultSet rs = new Validate().viewrqsts2(owid);
while (rs.next()) {
String eng = new Validate().getusrname(rs.getString("rqid"));
%>
<tr height="40">
<td><center><%=rs.getString("rid")%></center></td>
<td><center><%=eng%></center></td>
<td><center><input type="button" value="Approve" onclick="appvfn('<%=rs.getString("rid")%>')"/> <input type="button" value="Reject" onclick="rjfn('<%=rs.getString("rid")%>')"</center></td>
</tr>
<%
}
%>
</table>
</div>
<div class="clear"></div>
</div>
<div class="workzone-right">
<div>
<div>
<h1>Latest News & Events</h1>
<div class="newszone" style="margin-bottom: 10px;">
<div>
<div>
<div class="newssubheading">18th January, 2009</div>
<div class="newscontent"> Nunc consectetuer diam ac odio. Pellentesque vel mauris sit amet urna malesuada ornare. Curabitur venenatis est eget arcu. Donec vestibulum. </div>
</div>
<div>
<div class="newssubheading">18th January, 2009</div>
<div class="newscontent"> Fusce tristique, nisl vel gravida venenatis, risus magna eleifend pede, id bibendum mauris metus et erat. Morbi in leo. Quisque sollicitudin sagittis est. </div>
</div>
<div>
<div class="newssubheading">25th January, 2009</div>
<div class="newscontent"> Fusce tristique, nisl vel gravida venenatis, risus magna eleifend pede, id bibendum mauris metus et erat. Morbi in leo. Quisque sollicitudin sagittis est. </div>
</div>
<div class="morenews"><a href="http://all-free-download.com/free-website-templates/"><img src="images/more-news.jpg" alt="" border="0" /></a></div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<div class="footer">
<div class="footerinside">
<div class="footerlink"> Copyright All rights reserved.</div>
</div>
</div>
<div class="clear"></div>
<div align=center>Developed By <a href="#"></a></div>
</body>
</html>