-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadminindex.php
More file actions
70 lines (45 loc) · 1.14 KB
/
adminindex.php
File metadata and controls
70 lines (45 loc) · 1.14 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
<!DOCTYPE>
<?php
include("adminfunctions.php");
?>
<html>
<head>
<title>Admin Page</title>
<link rel="stylesheet" href="adminstyle.css" media="all" />
</head>
<body>
<div class="main_wrapper">
<div class ="header_wrapper">
<!--Header ends here-->
<div class="menubar">
<ul id="menu">
<li><a href="index.php">Home</a></li>
<li><a href="adminindex.php">Admin Home</a></li>
<li><a href="viewUsers.php">Edit Users</a></li>
<li><a href="addBook.php">Add Books</a></li>
<li><a href="view_books.php">Edit Books</a></li>
<li><a href="userPage.php">My Account</a></li>
<li><a href="#">Log Out</a></li>
</ul>
</div>
<?php
if(isset($_GET['addBooks'])){
include("addBook.php");
}
if(isset($_GET['view_books'])){
include("view_books.php");
}
if(isset($_GET['edit_books'])){
include("edit_books.php");
}
if(isset($_GET['viewUsers'])){
include("viewUsers.php");
}
if(isset($_GET['edit_user'])){
include("edit_user.php");
}
?>
</div>
</div>
</body>
</html>