-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathdashboard.php
151 lines (125 loc) · 4.39 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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?php
session_start();
$email_address= $_SESSION['email'];
include('config/database.php');
if(empty($email_address))
{
header("location:index.php");
}
//
$cat= !empty($_GET['cat'])?$_GET['cat']:'';
$subcat = !empty($_GET['subcat'])?$_GET['subcat']:'';
if($cat=='website-setting' && $subcat=='add-website-menu'){
include('scripts/multilevel-script.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Login Dashboard</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--custom style-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<?php
include('partials/header.php');
?>
<div id="confirmBox">
<p>Are You Sure to Delete ?</p>
<button value="1" >Yes</button><button value="0">No</button>
</div>
<div id="alertBox">mhvmbvbm</div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-2">
<?php include('partials/sidebar.php'); ?>
</div>
<div class="col-sm-10">
<div id="dynamic-page">
<!--dynamic page content-->
<?php
if(!empty($cat) && !empty($subcat)){
$sub=explode('-', $subcat);
if($sub[0]=='add')
{
$val=[];
foreach ($sub as $key => $value) {
if($value==$sub[0])
{
continue;
}
$val[]=$value;
}
include($cat."/".implode('-',$val).".php");
}else{
include($cat."/".$subcat.".php");
}
}else{
echo "<h1 class='text-success text-center'>Welcome To Admin Panel</h1>";
}
?>
<!-- dynamic page content-->
</div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<script src='https://kit.fontawesome.com/a076d05399.js'></script>
<script type="text/javascript" src="scripts/ajax-script.js">
</script>
<script type="text/javascript">
var acontent = document.querySelectorAll('.accordion-content');
var atitle = document.querySelectorAll('.accordion-content .title');
for (i = 0; i < atitle.length; i++) {
atitle[i].onclick=function(){
var contentClass = this.parentNode.className;
for (i = 0; i < acontent.length; i++) {
acontent[i].className = 'accordion-content hide';
}
if (contentClass == 'accordion-content hide') {
this.parentNode.className = 'accordion-content show';
}
}
}
</script>
<script>
// Add the following code if you want the name of the file appear on select
$(document).on("change", ".custom-file-input", function() {
var fileName = $(this).val().split("\\").pop();
$(this).siblings(".custom-file-label").addClass("selected").html(fileName);
});
</script>
<script
type="text/javascript"
src='https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js'
referrerpolicy="origin">
</script>
<script type="text/javascript">
tinymce.init({
selector: 'textarea',
height: 300,
plugins: [
'advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker',
'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking',
'table emoticons template paste help'
],
toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | ' +
'bullist numlist outdent indent | link image | print preview media fullpage | ' +
'forecolor backcolor emoticons | help',
menu: {
favs: {title: 'My Favorites', items: 'code visualaid | searchreplace | spellchecker | emoticons'}
},
menubar: 'favs file edit view insert format tools table help',
content_css: 'css/content.css'
});
$(document).ready(function(){
$('body').find('.tox-notifications-container').hide();
})
</script>
</body>
</html>