-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_ui.php
More file actions
72 lines (63 loc) · 2.27 KB
/
admin_ui.php
File metadata and controls
72 lines (63 loc) · 2.27 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
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Admin Page | StudentMate</title>
<link href="https://fonts.googleapis.com/css?family=PT+Sans" rel="stylesheet">
<?php include('./import/admin.php'); ?>
</head>
<body>
<div class="content">
<header>
<div class='nav'>
<ul id='ul-nav'>
<li class='home'><a href='index.php'>StudentMate</a></li>
<li class="logged">Logged in as <a href="admin-profile.php" id="user"><?php echo $_SESSION['username'];?></a></li>
<li><form method='POST' action='admin_ui.php'><input type='submit' name='out' class='btn' id='outbtn' value='LOG OUT'></form></li>
</ul>
<?php
if (isset($_POST['out']))
{
session_destroy();
header("location: index.php");
}
?>
</div>
</header>
<div class="midcontent">
<div><center><h1>Welcome to Admin Page</h1></center></div>
<div class="taskbox">
<img src="./images/facad.png" class="task-image"><br>
<a href="add-fac-admin.php"><h2>Add Faculty admins</h2></a>
<p>Add Faculty admins to represent the faculties.</p>
<br>
<a href="add-fac-admin.php"><input type="button" class="btn2" id="enter-btn" value="ENTER"></a>
</div>
<div class="taskbox">
<img src="./images/map.png" class="task-image"><br>
<a href="add-fac-admin.php"><h2>Maintain Maps</h2></a>
<p>Maintain maps when an update is needed.</p>
<br>
<input type="button" class="btn2" id="enter-btn" value="ENTER">
</div>
<div class="taskbox">
<img src="./images/accomo.png" class="task-image"><br>
<a href="add-fac-admin.php"><h2>Add Accomodation post</h2></a>
<p>Post a mesage about a place for students to stay.</p>
<br>
<input type="button" class="btn2" id="enter-btn" value="ENTER">
</div>
<div class="taskbox">
<img src="./images/schol.png" class="task-image"><br>
<a href="add-fac-admin.php"><h2>Add Scholarship post</h2></a>
<p>Post a message about a scholarship to be applied.</p>
<br>
<input type="button" class="btn2" id="enter-btn" value="ENTER">
</div>
</div>
</div>
<?php include('./import/footer.php'); ?>
</body>
</html>