-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.php
42 lines (38 loc) · 1.65 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
<?php
session_start();
error_reporting(0);
// session_destroy();
if (!(isset($_SESSION['auth']) && $_SESSION['auth'] === true)) {
header("Location: index.php");
exit();
}
else {
$admin = $_SESSION['admin'];
}
require 'includes/db-inc.php';
include "includes/header.php";
include "includes/nav.php";
?>
<!DOCTYPE html>
<html>
<head>
<title>Admin Home</title>
</head>
<body>
<div class="container">
<!-- navbar ends -->
<!-- info alert -->
<div class="alert alert-warning col-lg-7 col-md-12 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-0 col-sm-offset-1 col-xs-offset-0" style="margin-top:70px">
<h4 class="center-block"><strong>ADMIN DASHBOARD</strong> </h4>
</div>
<div class="row">
<a href="bookslist.php"><button class="btn btn-success col-lg-3 col-md-4 col-sm-11 col-xs-11 button" style="margin-left: 15px;margin-bottom: 5px"><span class="glyphicon"></span> All Books </button></a>
<a href="viewstudents.php"><button class="btn btn-success col-lg-3 col-md-4 col-sm-11 col-xs-11 button" style="margin-left: 15px;margin-bottom: 5px"><span class="glyphicon"></span> Students List</button></a>
<a href="borrowedbooks.php"><button class="btn btn-success col-lg-3 col-md-4 col-sm-11 col-xs-11 button" style="margin-left: 15px;margin-bottom: 5px"><span class="glyphicon"></span> Borrowed Books</button></a>
</div>
</div>
</div>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
</body>
</html>