-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudentPage.html
78 lines (61 loc) · 1.9 KB
/
studentPage.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>studentPage</title>
<link rel="stylesheet" href="css/global.css" type="text/css">
<link rel="stylesheet" href="css/bootstrap.css" type="text/css">
</head>
<body>
<div>
<header>
<div class="container items">
<p>پنل دانشجویان</p>
</div>
</header>
</div>
<br><br><br><br><br><br><br>
<div class="btn-group" style="width:100%" align="center">
<button id="setting" onclick="goToSetting()" style="width:20%">نظیمات پروفایل</button>
<button id="newCase" onclick="goToAddCase()" style="width:20%">ثبت مورد جدید</button>
<button id="history" onclick="goToHistory()" style="width:20%">وضیعت موارد فعلی</button>
</div>
<br><br>
<div class="logout_btn" align="center">
<button id="logOut" onclick="logOut()" style="width:15%">خروج</button>
</div>
<br><br><br><br><br><br>
<div>
<footer>
<div class="container items">
<p class="lg-show">تمامی حقوق وبسایت نزد دانشگاه شهید بهشتی محفوظ است.</p>
</div>
</footer>
</div>
</body>
<script>
var users = JSON.parse(localStorage.getItem("temp"));
var valid = false;
for (var i = 0; i < users.main.length; i++) {
if (sessionStorage.getItem("currentUser") == users.main[i].username) {
valid = true;
}
}
if (!valid) {
window.location.href = "invokedPage.html"
}
function goToSetting() {
window.location.href = "settingpage.html";
}
function goToAddCase() {
window.location.href = "addCasePage.html";
}
function goToHistory() {
window.location.href = "kartablHistoryPage.html";
}
function logOut() {
sessionStorage.removeItem("currentUser");
window.location.href = "invokedPage.html"
}
</script>
</html>