-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdminDashboard.jsp
97 lines (87 loc) · 3.81 KB
/
AdminDashboard.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
<%--
Document : AdminDashboard
Created on : Jun 29, 2017, 8:41:42 PM
Author : sreekanth kasani ')
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>::Admin::</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="home.css">
<link rel="stylesheet" type="text/css" href="nav.css">
<script
src="https://code.jquery.com/jquery-3.2.1.js"
crossorigin="anonymous"></script>
<script type="text/javascript">
function openPage(pageURL)
{
window.location.href = pageURL;
}
$(document).ready(function () {
<% session.setAttribute("squery", "no"); %>
var value = "select * from users";
$.get("fetchDetails.jsp", {q: value}, function (data) {
$("#fetchData").html(data);
});
$("#users").on("click", function (e) {
var value = "select * from users";
$.get("fetchDetails.jsp", {q: value}, function (data) {
$("#fetchData").html(data);
});
});
$("#addusers").on("click", function (e) {
$.get("registerFaculty.jsp", function (data) {
$("#fetchData").html(data);
});
});
$("#feedback").on("click", function (e) {
var value = "select * from feedback";
$.get("fetchDetails.jsp", {q: value}, function (data) {
$("#fetchData").html(data);
});
});
});
</script>
<style>
.header-block1 {
margin-left: 69px;
margin-right: 0px;
padding-left: 0px;
}
</style>
</head>
<body>
<div class="header-block" style="margin-top: 0px;height: 128px;">
<div class="left-block">
<div class="logotext"><img src="scms1.png" width="401px"></div>
</div>
<div class="right-block" style="
width: 427px;
margin-top: 31px;
">
<p class="submit" style="width: 105px;">
<input type="submit" name="commit" value="Home" onclick ="openPage('dashboard.jsp')" style="height: 31px; width: 96px"></p>
<p class="submit" style="width: 105px;"><input type="submit" name="commit" value="Add" onclick = "openPage('registerStudent.jsp')" style="height: 31px; width: 96px"></p>
<p class="submit"><input type="submit" name="commit" id="logOut" value="LogOut" onclick = "openPage('login.jsp')" style="height: 33px; width: 93px"></p><br>
<h3 style="margin-top:30px"> Welcome : <% String holder = session.getAttribute("uname").toString();%><%= holder%> </h3>
</div>
</div>
<div class="header-block1">
<center>
<span class="btngroup">
<button class="btngroup--btn" id="advanced"><a href="advanced.jsp" style="text-decoration: none;">Advanced</a></button>
<button class="btngroup--btn" id="users">Users</button>
<button class="btngroup--btn" id="addusers">Add Users</button>
<button class="btngroup--btn" id="feedback">View Feedback</button>
</span>
<div id="fetchData">
</center>
</div>
<div style="">
</div>
</body>
</html>