-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_dashboard.php
More file actions
115 lines (95 loc) · 4.24 KB
/
admin_dashboard.php
File metadata and controls
115 lines (95 loc) · 4.24 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
115
<?php require_once 'inc/connection.php';
session_start();?>
<?php
if (isset($_POST['submit_admin'])){
header('Location: create_admin_and_moderator_account.php');
$_SESSION['level']='admin';
}
if(isset($_POST['submit_moderator'])){
header('Location: create_admin_and_moderator_account.php');
$_SESSION['level']='moderator';
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Admin Dashboard-Ceylon Trek</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/admin_dashboard.css">
<link rel='stylesheet' type='text/css' media='screen' href='css/Guidedashboardpage.css'>
<link rel="stylesheet" href="css/top_bar.css">
<link rel="stylesheet" href="css/footer.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body style="background-color:whitesmoke">
<?php include('inc/new_top_bar.php'); ?>
<div class="side_bar">
<img src="img/logo2.png" class="dashlogo">
<img src="img/reviewimg.jpg" class="profile" >
<button class="edit"> Edit Profile</button><br>
<div class="sidebar-menu">
<ul>
<li>
<a href="#">
<span class="menu-icon"><i class="fa fa-comment-o" aria-hidden="true"></i></span>
<span class="menu-title">Inbox</span>
</a>
</li>
<li>
<a href="#">
<span class="menu-icon"><i class="fa fa-question-circle fa-1x" aria-hidden="true"></i></span>
<span class="menu-title">Complains</span>
</a>
</li>
<li>
<a href="#">
<span class="menu-icon"><i class="fa fa-fast-forward fa-1x" aria-hidden="true"></i></span>
<span class="menu-title">View all Guides</span>
</a>
</li>
<li>
<a href="#">
<span class="menu-icon"><i class="fa fa-fast-forward fa-1x" aria-hidden="true"></i></span>
<span class="menu-title">View all Tourists</span>
</a>
</li>
</ul>
</div><!--sidebar-manu-->
</div><!--side_bar-->
<div class="admin_dashboard_box">
<form action="admin_dashboard.php" method="post">
<button style="padding:15px;" type="submit" name="submit_admin" >Create Admin Account</button>
<button style="padding:15px;" type="submit" name="submit_moderator">Create Moderator Account</button>
<button style="padding:15px;" type="button" class="create_notification_btn" onclick="openForm()">Create Notification</button>
<div class="text_box">
<label for="details"><b>System Statics</b></label>
<textarea rows = "20" cols = "20" name = "details" placeholder="system statics details here..."></textarea>
</div>
</form>
</div><!-- complains_box -->
<!-- send notification popup window -->
<div class="form-popup" id="myForm">
<form action="full_complain_view.php" class="form-container">
<label for="title"><b>Title</b></label>
<input type="text" placeholder="Enter title here.." name="title" required>
<label for="details"><b>Notification</b></label>
<textarea rows = "4" cols = "20" name = "details" style="resize: vertical;height:100px;" placeholder="Enter Notification Details here..."></textarea>
<button type="submit" class="btn">Send</button>
<button type="button" class="btn cancel" onclick="closeForm()">Cancel</button>
</form>
</div>
<script>
function openForm() {
document.getElementById("myForm").style.display = "block";
}
function closeForm() {
document.getElementById("myForm").style.display = "none";
}
</script>
<?php include('inc/footer.php'); ?>
</body>
<script type="text/javascript" src="js/jscript.js"></script>
</html>
<?php mysqli_close($connection);?>