-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.php
47 lines (41 loc) · 1.66 KB
/
admin.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
<?php
if(session_status()== PHP_SESSION_NONE){
session_start();
}
if(isset($_SESSION['adminLoggedin'])){
?>
<html>
<head>
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Nothing+You+Could+Do' rel='stylesheet' type='text/css'>
<!-- CSS style sheets -->
<link rel="StyleSheet" href="./css/registration-design.css" />
<link rel="StyleSheet" href="./css/message-design.css" />
<title>Admin Page</title>
<link rel="shortcut icon" type="image/png" href="./pictures/westmount.png"/>
</head>
<body>
<!-- Butoni per me shtu student ne databaz -->
<table align="center" cellspacing = "8">
<tr>
<td align>
<form action="./addStudent.php" method="post">
<input type="submit" name="go" class="redirectButton" value="Add Student" />
<a href="fetchStudentData.php"><input type="button" name="go" class="redirectButton" value="View Students" /></a>
<a href="addProfesor.php"><input type="button" name="go" class="redirectButton" value="Add Profesor" /></a>
<a href="fetchProfesors.php"><input type="button" name="go" class="redirectButton" value="View Profesors" /></a>
<a href="fetchMessages.php"><input type="button" name="go" class="redirectButton" value="View Messages" /></a>
<a href="logout.php"><input type="button" name="go" class="redirectButton" value="Log Out" /></a>
</form>
</td>
</tr>
</table>
<div id = "title">
<img src="./images/miamilogo.png" alt="Banner" style="width:600px;height:300px;"/>
<h1>Administrator Page</h1>
</div>
<?php
}
else{
require_once('Login.php');
}