-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview_engineers.jsp
79 lines (79 loc) · 3.58 KB
/
view_engineers.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
<%@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 rmvfn(uid)
{
var a = confirm("Are you sure ?");
if (a === true)
{
window.location = "./delete_engineers_action.jsp?uid=" + uid;
}
}
</script>
<body>
<div id="container">
<div class="header">
<div class="topmenu">
<ul>
<li><a href="index.html">Welcome <%=session.getAttribute("uname")%> (<%=session.getAttribute("cname")%>)</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" style="height: 380px;width:1024px;overflow: auto;">
<h1>Engineers Added</h1>
<table width="800">
<tr height="40">
<th><center>Id</center></th>
<th><center>Full Name</center></th>
<th><center>Phone No.</center></th>
<th><center>Email</center></th>
<th><center>Action</center></th>
</tr>
<%
String ecid = session.getAttribute("cid").toString();
ResultSet rs = new Validate().viewengineers(ecid);
while (rs.next()) {
ResultSet rs1 = new Validate().getinfo(rs.getString("elid"));
while (rs1.next()) {%>
<tr height="40">
<td><center><%=rs1.getString("id")%></center></td>
<td><center><%=rs1.getString("fname")%></center></td>
<td><center><%=rs1.getString("phno")%></center></td>
<td><center><%=rs1.getString("emid")%></center></td>
<td><center><input type="button" value="Delete" onclick="rmvfn('<%=rs1.getString("id")%>')"/></center></td>
</tr>
<%}
}
%>
</table>
</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>