-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadminProfile.php
More file actions
112 lines (96 loc) · 3.81 KB
/
adminProfile.php
File metadata and controls
112 lines (96 loc) · 3.81 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
<?php
session_start();
include('connect.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" />
<!-- font awesome cdn -->
<link rel="stylesheet" type="text/css"
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<!-- Owl Carousel -->
<link rel="stylesheet" type="text/css" href="css/owl.carousel.min.css" />
<link rel="stylesheet" type="text/css" href="css/owl.theme.default.min.css" />
<!-- custom css file link up -->
<link rel="stylesheet" type="text/css" href="css/style.css" />
<style>
header {
width: 100%;
background-image: url(img/banner/banner.png);
background-position: center;
background-size: cover;
background-repeat: no-repeat;
height: 100vh;
position: relative;
}
</style>
<title>জীবন যুদ্ধ | Admin</title>
</head>
<body>
<!-- header section code start from here -->
<?php
if($_SESSION['adminID'] != NULL){
?>
<header>
<div class="overlay"></div>
<div class="container">
<div class="row">
<div class="col-md-12">
<nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand" href="#">জীবন যুদ্ধ | Admin</a>
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="adminProfile.php">Home <span
class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="inboxAdmin.php">Inbox</a>
</li>
<li class="nav-item">
<a class="nav-link" href="viewTeacher.php">Teachers</a>
</li>
<li class="nav-item">
<a class="nav-link" href="viewStudent.php">Students</a>
</li>
<li class="nav-item">
<a class="nav-link" href="adminCourse.php">Courses</a>
</li>
<li class="nav-item">
<a class="nav-link" id="s-out" href="index.php">Sign Out</a>
</li>
</ul>
</div>
</nav>
<div class="banner-text">
<h1>WELCOME</h1>
<h5>Admin</h5>
</div>
</div>
</div>
</div>
</header>
<?php
}
else
{
?>
<script>
alert("Error. Login Required");
</script>
<?php
echo "<script>window.location.href='index.php?'</script>";
}
?>
</body>
</html>