-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindexnew.php~
326 lines (264 loc) · 12.3 KB
/
indexnew.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<?php
include("config/config.php");
include("config.php");
include("dbupdates.php");
session_start();
if (!isset ($_SESSION ['id']) && !isset ($_SESSION ['user_group']) && !isset ($_SESSION ['firstname']) && !isset ($_SESSION ['groupe'])) {
header('Location:login.php');
} else
if ($_SESSION ['user_group'] != '1' && $_SESSION ['user_group'] != '3' && $_SESSION ['user_group'] != '4' &&$_SESSION ['user_group'] != '5') {
header('Location:supervisor.php');
}
$update = new dbupdates;
?>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<?php include ("includes/title.php") ?>
<!-- Favicon-->
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
<!-- Bootstrap Core Css -->
<link href="plugins/bootstrap/css/bootstrap.css" rel="stylesheet">
<!-- Waves Effect Css -->
<link href="plugins/node-waves/waves.css" rel="stylesheet" />
<!-- Animation Css -->
<link href="plugins/animate-css/animate.css" rel="stylesheet" />
<!-- Morris Chart Css-->
<link href="plugins/morrisjs/morris.css" rel="stylesheet" />
<!-- Custom Css -->
<link href="css/style.css" rel="stylesheet">
<!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes -->
<link href="css/themes/all-themes.css" rel="stylesheet" />
</head>
<body class="theme-red">
<!-- Page Loader -->
<div class="page-loader-wrapper">
<div class="loader">
<div class="preloader">
<div class="spinner-layer pl-red">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
<p>Please wait...</p>
</div>
</div>
<!-- #END# Page Loader -->
<!-- Overlay For Sidebars -->
<div class="overlay"></div>
<!-- #END# Overlay For Sidebars -->
<!-- Search Bar -->
<div class="search-bar">
<div class="search-icon">
<i class="material-icons">search</i>
</div>
<input type="text" placeholder="START TYPING...">
<div class="close-search">
<i class="material-icons">close</i>
</div>
</div>
<!-- #END# Search Bar -->
<?php include ("includes/topbar.php")?>
<section>
<!-- Left Sidebar -->
<aside id="leftsidebar" class="sidebar">
<?php
include ("includes/userinfo.php");
include ("includes/smenu.php");
include ("includes/footer.php");
?>
</section>
<section class="content">
<div class="container-fluid">
<div class="block-header">
<h2>DASHBOARD</h2>
</div>
<!-- Widgets -->
<div class="row clearfix">
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
<div class="info-box bg-pink hover-expand-effect">
<div class="icon">
<i class="material-icons">folder</i>
</div>
<div class="content">
<div class="text">CLIENTS</div>
<div class="number"><?php echo $update -> newclients(); ?></div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
<div class="info-box bg-cyan hover-expand-effect">
<div class="icon">
<i class="material-icons">person_add</i>
</div>
<div class="content">
<div class="text">DEBTORS</div>
<div class="number"><?php echo number_format($update -> newdebtors()); ?></div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
<div class="info-box bg-orange hover-expand-effect">
<div class="icon">
<i class="material-icons">check_box</i>
</div>
<div class="content">
<div class="text">Total Collections</div>
<div class="number"><?php echo number_format($update -> newcollections()); ?></div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
<div class="info-box bg-light-green hover-expand-effect">
<div class="icon">
<i class="material-icons">work</i>
</div>
<div class="content">
<div class="text">Total Balance</div>
<div class="number"><?php echo number_format($update -> newvalue()); ?></div>
</div>
</div>
</div>
</div>
<!-- #END# Widgets -->
<div class="row clearfix">
<!-- Visitors -->
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<div class="card">
<div class="body bg-pink">
<div class="sparkline" data-type="line" data-spot-Radius="4" data-highlight-Spot-Color="rgb(233, 30, 99)" data-highlight-Line-Color="#fff"
data-min-Spot-Color="rgb(255,255,255)" data-max-Spot-Color="rgb(255,255,255)" data-spot-Color="rgb(255,255,255)"
data-offset="90" data-width="100%" data-height="92px" data-line-Width="2" data-line-Color="rgba(255,255,255,0.7)"
data-fill-Color="rgba(0, 188, 212, 0)">
COLLECTIONS MADE
</div>
<ul class="dashboard-stat-list">
<li>
TODAY
<span class="pull-right"><b>1 200</b> <small>USERS</small></span>
</li>
<li>
YESTERDAY
<span class="pull-right"><b>3 872</b> <small>USERS</small></span>
</li>
<li>
LAST WEEK
<span class="pull-right"><b>26 582</b> <small>USERS</small></span>
</li>
</ul>
</div>
</div>
</div>
<!-- #END# Visitors -->
<!-- Trends -->
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<div class="card">
<div class="body bg-cyan">
<div class="m-b--35 font-bold">BEST COLLECTORS</div>
<ul class="dashboard-stat-list">
<li>
#socialtrends
<span class="pull-right">
<i class="material-icons">trending_up</i>
</span>
</li>
<li>
#materialdesign
<span class="pull-right">
<i class="material-icons">trending_up</i>
</span>
</li>
<li>#adminbsb</li>
<li>#freeadmintemplate</li>
<li>#bootstraptemplate</li>
<li>
#freehtmltemplate
<span class="pull-right">
<i class="material-icons">trending_up</i>
</span>
</li>
</ul>
</div>
</div>
</div>
<!-- #END# Latest Social Trends -->
<!-- Answered Tickets -->
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<div class="card">
<div class="body bg-teal">
<div class="font-bold m-b--35">PROMISE TO PAY</div>
<ul class="dashboard-stat-list">
<li>
TODAY
<span class="pull-right"><b>12</b> <small>TICKETS</small></span>
</li>
<li>
YESTERDAY
<span class="pull-right"><b>15</b> <small>TICKETS</small></span>
</li>
<li>
LAST WEEK
<span class="pull-right"><b>90</b> <small>TICKETS</small></span>
</li>
<li>
LAST MONTH
<span class="pull-right"><b>342</b> <small>TICKETS</small></span>
</li>
<li>
LAST YEAR
<span class="pull-right"><b>4 225</b> <small>TICKETS</small></span>
</li>
<li>
ALL
<span class="pull-right"><b>8 752</b> <small>TICKETS</small></span>
</li>
</ul>
</div>
</div>
</div>
<!-- #END# Answered Tickets -->
</div>
</div>
</div>
</section>
<!-- Jquery Core Js -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap Core Js -->
<script src="plugins/bootstrap/js/bootstrap.js"></script>
<!-- Select Plugin Js -->
<script src="plugins/bootstrap-select/js/bootstrap-select.js"></script>
<!-- Slimscroll Plugin Js -->
<script src="plugins/jquery-slimscroll/jquery.slimscroll.js"></script>
<!-- Waves Effect Plugin Js -->
<script src="plugins/node-waves/waves.js"></script>
<!-- Jquery CountTo Plugin Js -->
<script src="plugins/jquery-countto/jquery.countTo.js"></script>
<!-- Morris Plugin Js -->
<script src="plugins/raphael/raphael.min.js"></script>
<script src="plugins/morrisjs/morris.js"></script>
<!-- ChartJs -->
<script src="plugins/chartjs/Chart.bundle.js"></script>
<!-- Flot Charts Plugin Js -->
<script src="plugins/flot-charts/jquery.flot.js"></script>
<script src="plugins/flot-charts/jquery.flot.resize.js"></script>
<script src="plugins/flot-charts/jquery.flot.pie.js"></script>
<script src="plugins/flot-charts/jquery.flot.categories.js"></script>
<script src="plugins/flot-charts/jquery.flot.time.js"></script>
<!-- Sparkline Chart Plugin Js -->
<script src="plugins/jquery-sparkline/jquery.sparkline.js"></script>
<!-- Custom Js -->
<script src="js/admin.js"></script>
<script src="js/pages/index.js"></script>
<!-- Demo Js -->
<script src="js/demo.js"></script>
</body>
</html>