-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathploAnalysisST.php
172 lines (131 loc) · 5.33 KB
/
ploAnalysisST.php
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?php
require_once(__DIR__."/testfunction.php");
require_once(__DIR__."/connect.php");
require_once(__DIR__."/user_header.php");
// if (!empty($_SERVER['HTTP_REFERER'])) {
// $_SESSION['dashboard_referrer'] = $_SERVER['HTTP_REFERER'];
// }
// echo "dashboardLink = " . $dashboardLink;
//echo pre($_SESSION);
if (isset($_POST['submit'])) {
$studentID = $_POST['studentID'];
} elseif (isset($_SESSION['ID'])) {
$studentID = $_SESSION['ID'];
}
// Fetch student data
?>
<!DOCTYPE html>
<!-- Coding by CodingLab | www.codinglabweb.com -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!----======== CSS ======== -->
<link rel="stylesheet" href="styleplo.css">
<!-- <link rel="stylesheet" href="style3.css"> -->
<!----===== Boxicons CSS ===== -->
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<!--<title>Dashboard Sidebar Menu</title>-->
</head>
<body>
<nav class="sidebar close">
<!-- <input type="checkbox" id="nav-check"> -->
<header>
<div class="image-text">
<span class="image">
<!--<img src="logo.png" alt="">-->
</span>
<div class="text logo-text">
<span class="name">Student</span>
<span class="name">Dashboard</span>
<!-- <span class="profession">Web developer</span> -->
</div>
</div>
<i class='bx bx-chevron-right toggle'></i>
</header>
<div class="menu-bar">
<div class="menu">
<!-- <li class="search-box">
<i class='bx bx-search icon'></i>
<input type="text" placeholder="Search...">
</li> -->
<ul class="menu-links">
<li class="nav-link">
<!-- ?php
$dashboardLink = isset($_SESSION['dashboard_referrer']) && strpos($_SESSION['dashboard_referrer'], 'estudent_dashboard.php') !== false ? 'estudent_dashboard.php' : 'employee_dashboard.php';
echo '<a href="' . $dashboardLink . '">';
?> -->
<!-- <a href="?php echo $dashboardLink; ?>"> -->
<a href="estudent_dashboard.php">
<i class='bx bx-home-alt icon' ></i>
<span class="text nav-text">Dashboard</span>
</a>
</li>
<li class="nav-link">
<a href="ploAnalysisDepartmentProgramSchoolAverageST.php" target="_self">
<i class='bx bx-bar-chart-alt-2 icon' ></i>
<span class="text nav-text">PLO Analysis With Department/Program/School Average</span>
</a>
</li>
<li class="nav-link">
<a href="ploAnalysisOverallST.php" target="_self">
<i class='bx bx-bell icon'></i>
<span class="text nav-text">PLO Analysis (Overall, CO Wise, Course Wise)</span>
</a>
</li>
</ul>
</div>
<div class="bottom-content">
<li class="">
<a href="logout.php">
<i class='bx bx-log-out icon' ></i>
<span class="text nav-text">Logout</span>
</a>
</li>
<li class="mode">
<div class="sun-moon">
<i class='bx bx-moon icon moon'></i>
<i class='bx bx-sun icon sun'></i>
</div>
<span class="mode-text text">Dark mode</span>
<div class="toggle-switch">
<span class="switch"></span>
</div>
</li>
</div>
</div>
</nav>
<section class="home">
<div class="text">Dashboard Sidebar</div>
<div class="main-body">
<h2>Dashboard</h2>
<div class="promo_card">
<h1> </h1>
<button>click to view</button>
</div>
</section>
<script>
const body = document.querySelector('body'),
sidebar = body.querySelector('nav'),
toggle = body.querySelector(".toggle"),
searchBtn = body.querySelector(".search-box"),
modeSwitch = body.querySelector(".toggle-switch"),
modeText = body.querySelector(".mode-text");
toggle.addEventListener("click" , () =>{
sidebar.classList.toggle("close");
})
searchBtn.addEventListener("click" , () =>{
sidebar.classList.remove("close");
})
modeSwitch.addEventListener("click" , () =>{
body.classList.toggle("dark");
if(body.classList.contains("dark")){
modeText.innerText = "Dark mode";
}else{
modeText.innerText = "Light mode";
}
});
</script>
</body>
</html>