-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.php
52 lines (44 loc) · 1.37 KB
/
dashboard.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
43
44
45
46
47
48
49
50
51
52
<?php
include 'functions/config.php';
session_start();
// user can not enter main dashboard page without login first
if($_SESSION['userEmail'] == ''){
header('location: index.php');
}
// if the role is user, always redirect to user, he could not enter to dashboard.php page
if($_SESSION['userRole'] == 'User'){
header('location: user.php');
}
include 'includes/head.php';
include 'includes/preloader.php';
include 'includes/navbar.php';
include 'includes/sidebar.php';
?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0">Admin Dashboard</h1>
</div><!-- /.col -->
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item active">Dashboard</li>
</ol>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container-fluid -->
</div>
<!-- dashboard main content Start -->
<section>
Write Your table here...
<?php
echo "this is session";
?>
</section>
<!-- main content End -->
</div>
<?php include 'includes/footer.php'; ?>