This repository was archived by the owner on Jun 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathadminPanel.php
More file actions
70 lines (61 loc) · 1.7 KB
/
adminPanel.php
File metadata and controls
70 lines (61 loc) · 1.7 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
<?php session_start(); ?>
<!DOCTYPE HTML>
<!--Author: Richard Cerone-->
<!--Import JQuery-->
<!--testing-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<?php
if ($_SESSION['loggedIn'] == true)
{ ?>
<head>
<!--Import CSS Style Sheet-->
<link rel="stylesheet" type="text/css" href="./adminPanel.css">
<!--Import Font Style-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
</head>
<html>
<!--Title-->
<body>
<div class="container">
<div class="right">
<!--Align Buttons On top of each other-->
<p>
<!--Upload Map Button-->
<div id="uploadMap">
<input type="submit" class="button" id="uploadMap" value="Upload A New Map">
</div>
<!--Manage Map Button-->
<div id="manageMap">
<input type="submit" class="button" id="manageMap" value="Manage Maps">
</div>
<div id="logout">
<input type="submit" class="button" id="logout" value="Logout">
</div>
</p>
</div>
<div class="left" id="portal">
</div>
</div>
<?php }
else
{
echo "You are not logged in";
}
?>
<!--This script listens to each button and displays the specific page when clicked.-->
<script>
$("#uploadMap").click(function()
{
$("#portal").load("uploadMaps.php"); //Load updateMap.php into portal.
});
$("#manageMap").click(function()
{
$("#portal").load("manageMaps.php"); //Load manageMaps.php into portal.
});
$("#logout").click(function()
{
window.location.href = "./logoutScript.php";
});
</script>
</html>