-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathengagement.jsp
More file actions
96 lines (91 loc) · 3.22 KB
/
engagement.jsp
File metadata and controls
96 lines (91 loc) · 3.22 KB
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
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="images/logo2.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard</title>
<link rel="stylesheet" href="adDashCss.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
</head>
<body>
<header>
<a href="" class="heading"><h1>Admin Dashboard</h1></a>
</header>
<nav>
<ul>
<ul>
<li><a href="Admindashboard.jsp">Dashboard</a></li>
<li><a href="engagement.jsp">Engagements</a></li>
<li><a href="orders.jsp">Orders</a></li>
<li><a href="Product.jsp">Products</a></li>
<li><a href="Ledger.jsp">Orders Ledger</a></li>
<li><a href="feedback.jsp">Feedback/Support</a></li>
<li><a href="logoutadmin.html">Logout</a></li>
</ul>
</ul>
</nav>
<main>
<!-- Content goes here -->
<section id="orders">
<h2>Users Engagement With Us</h2>
<table>
<thead>
<tr>
<th>Username</th>
<th>Full Name</th>
<th>Mobile No</th>
<th>Email</th>
<th>Address</th>
<th>State</th>
<th>City</th>
<th>Pincode</th>
<th>Password</th>
</tr>
</thead>
<tbody>
<%
Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
try {
Class.forName("com.mysql.cj.jdbc.Driver");
conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/system_station", "root", "9353");
stmt = conn.createStatement();
rs = stmt.executeQuery("SELECT * FROM register");
while (rs.next()) {
%>
<!-- Placeholder for order rows -->
<tr>
<td><%=rs.getString(2)%></td>
<td><%=rs.getString(3)%></td>
<td><%=rs.getString(4)%></td>
<td><%=rs.getString(5)%></td>
<td><%=rs.getString(6)%></td>
<td><%=rs.getString(7)%></td>
<td><%=rs.getString(8)%></td>
<td><%=rs.getString(9)%></td>
<td><%=rs.getString(10)%></td>
</tr>
<!-- Additional order rows go here -->
<%
}
} catch (Exception e) {
e.printStackTrace();
} finally {
try { if (rs != null) rs.close(); } catch (Exception e) {}
try { if (stmt != null) stmt.close(); } catch (Exception e) {}
try { if (conn != null) conn.close(); } catch (Exception e) {}
}
%>
</tbody>
</table>
</section>
</main>
<footer>
<p>System Station</p>
</footer>
</body>
</html>