-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.page.php
More file actions
114 lines (94 loc) · 3.15 KB
/
admin.page.php
File metadata and controls
114 lines (94 loc) · 3.15 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
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
<?php
session_start();
include_once 'includes/functions.inc.php';
include_once 'includes/dbh.inc.php';
?>
<html>
<head>
<!--boostrap-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<title>Admin</title>
<style>
</style>
</head>
<body>
<!--...................................................................
..........................Admin Navigation Bar.............................
....................................................................-->
<?php
include_once 'admin.navigation.bar.php';
?>
<div class="row m-4">
<div class="col-9">
<h1 style="font-family: Audiowide, sans-serif;">Hello
<?php
if (isset($_SESSION["admin_username"])) {
$name = get_admin_name($conn, $_SESSION['admin_username']);
echo $name.'....!';
}
else {
echo 'Admin....!';
}
?>
</h1>
</div>
<div class="col-3"></div>
<div class="col-3 m-3 mt-5">
<a href="admin.register.form.php">
<button type="button" class="btn btn-warning btn-lg">Signup New Admin</button>
</a>
</div>
<div class="col-9"></div>
<hr>
<div class="col-5 m-3">
<a href="admin.add.books.php">
<button type="button" class="btn btn-primary">Add Books</button>
</a>
</div>
<div class="col-9"></div>
<div class="col-5 m-3">
<a href="admin.edit.books.php">
<button type="button" class="btn btn-dark">Edit Book</button>
</a>
</div>
<div class="col-9"></div>
<div class="col-5 m-3">
<a href="admin.delete.books.php">
<button type="button" class="btn btn-danger">Delete Book</button>
</a>
</div>
<div class="col-9"></div>
<hr>
<div class="col-5 m-3">
<a href="admin.add.news.php">
<button type="button" class="btn btn-primary">Add News</button>
</a>
</div>
<div class="col-9"></div>
<div class="col-5 m-3">
<a href="admin.update.news.php">
<button type="button" class="btn btn-dark">Update News</button>
</a>
</div>
<div class="col-9"></div>
<div class="col-5 m-3">
<a href="admin.delete.news.php">
<button type="button" class="btn btn-danger">Delete News</button>
</a>
</div>
<div class="col-9"></div>
</div>
<!--...................................................................
..................................Footer...............................
....................................................................-->
<?php
include_once 'Footer/footer.php';
?>
</body>
</html>