-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.php
51 lines (49 loc) · 1.31 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
<?php
include "./connection/connection.php";
check_login($conn);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>E Billing | Check Your Bills of All Pakistani Services</title>
<link rel="shortcut icon" href="./images/wapda/ebillpk-logo.png" type="image/x-icon">
<?php
include "./components/bootstrap/bootstrap-head.php";
include "./components/other-meta-links/meta-links.php";
?>
<!-- Local Link -->
<link rel="stylesheet" href="./style/navigation.css">
</head>
<body>
<!-- Navigation -->
<?php
include "./components/navigation/navigation.php";
?>
<!-- Dashboard Header -->
<?php
include "./components/dashboard-header/dashboard-header.php"
?>
<!-- Dashboard Frontend -->
<?php
if ($_SESSION['logged_role'] == 1) {
// Simple Admin
include "./pages/dashboard/dashboard-frontend.php";
} else {
if ($_SESSION['logged_role'] == 2) {
// Super Admin
include "./pages/super-admin/super-admin-frontend.php";
} else {
echo "Sorry You are not Authroized";
}
}
?>
<!-- Footer -->
<?php
include "./components/footer/footer.php";
?>
<!-- Bootstrap JavaScript Link -->
<?php
include "./components/bootstrap/bootstrap-javascript-foot.php";
?>
</body>
</html>