-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathadmin_panel_queries.jsp.bak
74 lines (54 loc) · 1.43 KB
/
admin_panel_queries.jsp.bak
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
<%@page import="java.sql.*"%>
<%@page import="oaapDao.*"%>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<%
try{
oaapAdminDao oad=new oaapAdminDao();
Connection con=oad.getConnection();
PreparedStatement ps=con.prepareStatement("select * from ooa_contactus");
ResultSet rs=ps.executeQuery();
int count=0,i=1;
%>
<h1 style="text-align:center">User Queries</h1>
<table class="table table-hover">
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Message</th>
</tr>
</thead>
<tbody>
<%
while(rs.next())
{
%>
<tr>
<td><%=rs.getString(1)%></td>
<td><%=rs.getString(2)%></td>
<td><%=rs.getString(3)%></td>
</tr>
<%
}
}
catch(Exception e){
out.print(e);
}
%>
</tbody>
</table>
</div>
</body>
</html>