-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathadministratorindex.php
211 lines (147 loc) · 5.13 KB
/
administratorindex.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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<!DOCTYPE html>
<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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Greendale College</title>
<link rel="icon" type="image/png" href="photos/header.png">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
width: 210px;
background-color: #0b1f5f;
}
li a {
display: block;
color: white;
padding: 8px 16px;
text-decoration: none;
}
li a.active {
background-color:blue;
color: white;
}
li a:hover:not(.active) {
background-color:skyblue;
color: white;
}
* {box-sizing: border-box;}
body {font-family: Verdana, sans-serif;}
.mySlides {display: none;}
img {vertical-align: middle;}
/* Slideshow container */
.slideshow-container {
max-width: 1000px;
margin: auto;
}
/* Fading animation */
.fade {
-webkit-animation-name: fade;
-webkit-animation-duration: 5.5s;
animation-name: fade;
animation-duration: 5.5s;
}
@-webkit-keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
@keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
.text {font-size: 11px}
}
</style>
</head>
<body style="background-color: grey">
<?php
session_start();
include "DBconnection.php";
if(!isset($_SESSION['email']))
{
header("location:adminloginindex.php");
}
else
{
$email = $_SESSION['email'];
$result = mysqli_query($conn,"SELECT * FROM admins WHERE admin_email='" . $email."'");
$row = mysqli_fetch_array($result);
if($row >0)
{
$name=$row['admin_name'];
$pic =$row['admin_picture'];
$password =$row['admin_password'];
$year =$row['admin_year'];
$birthday =$row['admin_birthday'];
$NIC =$row['admin_NIC'];
$id = $_SESSION['id'];
}
}
?>
<div class="div_content_admin">
<div class="header_admin">
<div style="margin-right:10px;vertical-align:bottom;">
<table align="right" width="450">
<tr><td>
<div align="right" style="font-size:24px;padding-top:23px; ">
<a href="administratorindex.php" style="color: aliceblue">Home</a>
<a href="userLogoutadmin.php" style="color:blue">Logout</a>
<hr>
<div align="right" style="font-size:20px; padding: 10px; color: aliceblue">
Admin - <?php echo $name;?>
<img class="img-rounded" style="border-radius: 50%" width="50px" height="50px" src="adminImage/<?php echo $pic;?>"> </div>
</td></tr>
</table>
</div>
</div>
<div class="div_header_title_admin">
<div align="left" style="font-size:20px; padding: 10px; color: aliceblue">
Welcome
</div>
</div>
<div class="mainframe" style="background-color:#0b1f5f" >
<div class="section1_admin" >
<ul>
<li><div><a href="adminmyprofile.php">View Profile</a></div></li>
<li><div><a href="adminmanageadmins.php">Admins</a></div></li>
<li><div><a href="admin_students.php">Students</a></div></li>
<li><div><a href="admin_batch.php">Batches</a></div></li>
<li><div><a href="admin_assignments.php">Assignments</a></div></li>
<li><div><a href="admin_assignments_dates.php">Assignment Deadlines</a></div></li>
<li><div><a href="admin_course_details.php">Courses Details</a></div></li>
<li><div><a href="admin_course_payments_details.php">Course Payments</a></div></li>
<li><div><a href="admin_students_fees.php">Student Fees</a></div></li>
<li><div><a href="admin_students_results.php">Student Results </a></div></li>
<li><div><a href="admin_students_submittedassignments.php">Student Assignments</a></div></li>
</ul>
</div>
<div class="section2_admin">
<img src="photos/ad1.jpg" style="width:100%; height: 100%">
</div>
</div>
<div class="section3">
<p align="center" style="color: white; padding-top: 30px; font-size:20px " >© 2021 MAY / GREENDALE University</p>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>