-
Notifications
You must be signed in to change notification settings - Fork 0
/
homepage.php
622 lines (578 loc) · 39.3 KB
/
homepage.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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
<?php
require 'header.php';
?>
<?php
if (isset($_SESSION['yhy'])) {
$user = $_SESSION['yhy'];
$sql = "select firstname, lastname approved from employees where username='" . $user . "'";
$result = mysqli_query($conn, $sql);
$row = mysqli_fetch_array($result);
$fn = $row[0];
$ln = $row[1];
} else {
echo '<script> alert("Please Re-login!")</script>';
print '<script> location.replace("index.php"); </script>';
}
$sql = "SELECT * FROM `ncstock` WHERE date BETWEEN SUBDATE(CURRENT_DATE(),INTERVAL 7 day) AND ADDDATE(CURRENT_DATE(),INTERVAL 1 day) AND subject='order' AND market='Amazon'";
$result = mysqli_query($conn, $sql);
$ncamazon = mysqli_num_rows($result);
$sql = "SELECT * FROM `ncstock` WHERE date BETWEEN SUBDATE(CURRENT_DATE(),INTERVAL 7 day) AND ADDDATE(CURRENT_DATE(),INTERVAL 1 day) AND subject='order' AND market='Ebay'";
$result = mysqli_query($conn, $sql);
$ncebay = mysqli_num_rows($result);
$sql = "SELECT * FROM `ncstock` WHERE date BETWEEN SUBDATE(CURRENT_DATE(),INTERVAL 7 day) AND ADDDATE(CURRENT_DATE(),INTERVAL 1 day) AND subject='order' AND market='NewEgg'";
$result = mysqli_query($conn, $sql);
$ncnewegg = mysqli_num_rows($result);
$sql = "SELECT * FROM `shstock` WHERE date BETWEEN SUBDATE(CURRENT_DATE(),INTERVAL 7 day) AND ADDDATE(CURRENT_DATE(),INTERVAL 1 day) AND subject='order' AND market='Amazon'";
$result = mysqli_query($conn, $sql);
$shamazon = mysqli_num_rows($result);
$sql = "SELECT * FROM `shstock` WHERE date BETWEEN SUBDATE(CURRENT_DATE(),INTERVAL 7 day) AND ADDDATE(CURRENT_DATE(),INTERVAL 1 day) AND subject='order' AND market='Ebay'";
$result = mysqli_query($conn, $sql);
$shebay = mysqli_num_rows($result);
$sql = "SELECT * FROM `shstock` WHERE date BETWEEN SUBDATE(CURRENT_DATE(),INTERVAL 7 day) AND ADDDATE(CURRENT_DATE(),INTERVAL 1 day) AND subject='order' AND market='NewEgg'";
$result = mysqli_query($conn, $sql);
$shnewegg = mysqli_num_rows($result);
$amazon = $shamazon + $ncamazon;
$ebay = $shebay + $ncebay;
$newegg = $shnewegg + $ncnewegg;
$all = $newegg + $ebay + $amazon;
$sql = "SELECT * FROM `ncstock` WHERE date BETWEEN '2019-12-31' AND '2020-12-31' AND subject='order'";
$result = mysqli_query($conn, $sql);
$yearnc = mysqli_num_rows($result);
$sql = "SELECT * FROM `shstock` WHERE date BETWEEN '2019-12-31' AND '2020-12-31' AND subject='order'";
$result = mysqli_query($conn, $sql);
$yearsh = mysqli_num_rows($result);
$year = $yearnc + $yearsh;
$sql = "SELECT sku,sold FROM `product` order by sold DESC";
$result = mysqli_query($conn, $sql);
$inex = 0;
$tota = 0;
while ($row = mysqli_fetch_array($result)) {
$topsku = "topsku" . $inex;
$topam = "topam" . $inex;
$$topsku = $row[0];
$$topam = $row[1];
$tota += $row[1];
$inex++;
}
?>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Unihorn| Manage System</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- favicon
============================================ -->
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico">
<!-- Google Fonts
============================================ -->
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,700,900" rel="stylesheet">
<!-- Bootstrap CSS
============================================ -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- Bootstrap CSS
============================================ -->
<link rel="stylesheet" href="css/font-awesome.min.css">
<!-- nalika Icon CSS
============================================ -->
<link rel="stylesheet" href="css/nalika-icon.css">
<!-- owl.carousel CSS
============================================ -->
<link rel="stylesheet" href="css/owl.carousel.css">
<link rel="stylesheet" href="css/owl.theme.css">
<link rel="stylesheet" href="css/owl.transitions.css">
<!-- animate CSS
============================================ -->
<link rel="stylesheet" href="css/animate.css">
<!-- normalize CSS
============================================ -->
<link rel="stylesheet" href="css/normalize.css">
<!-- meanmenu icon CSS
============================================ -->
<link rel="stylesheet" href="css/meanmenu.min.css">
<!-- main CSS
============================================ -->
<link rel="stylesheet" href="css/main.css">
<!-- morrisjs CSS
============================================ -->
<link rel="stylesheet" href="css/morrisjs/morris.css">
<!-- mCustomScrollbar CSS
============================================ -->
<link rel="stylesheet" href="css/scrollbar/jquery.mCustomScrollbar.min.css">
<!-- metisMenu CSS
============================================ -->
<link rel="stylesheet" href="css/metisMenu/metisMenu.min.css">
<link rel="stylesheet" href="css/metisMenu/metisMenu-vertical.css">
<!-- calendar CSS
============================================ -->
<link rel="stylesheet" href="css/calendar/fullcalendar.min.css">
<link rel="stylesheet" href="css/calendar/fullcalendar.print.min.css">
<!-- style CSS
============================================ -->
<link rel="stylesheet" href="style.css">
<!-- responsive CSS
============================================ -->
<link rel="stylesheet" href="css/responsive.css">
<!-- modernizr JS
============================================ -->
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div class="left-sidebar-pro">
<nav id="sidebar" class="">
<div class="nalika-profile">
<div class="profile-dtl">
<a href="homepage.php"><img src="img/uni.jpg" alt="" /></a>
<h2> <?php print $fn; ?> <span class="min-dtn"> <?php print $ln; ?></span></h2>
</div>
<div class="profile-social-dtl">
<ul class="dtl-social">
<li><a href="#" onclick="openNewWin('http://www.facebook.com');"><i class="icon nalika-facebook"></i></a></li>
<li><a href="#" onclick="openNewWin('http://www.twitter.com');"><i class="icon nalika-twitter"></i></a></li>
<li><a href="#" onclick="openNewWin('http://www.linkedin.com');"><i class="icon nalika-linkedin"></i></a></li>
</ul>
</div>
</div>
<div class="left-custom-menu-adp-wrap comment-scrollbar">
<nav class="sidebar-nav left-sidebar-menu-pro">
<ul class="metismenu" id="menu1">
<li class="active">
<a class="has-arrow" href="homepage.php">
<i class="icon nalika-home icon-wrap"></i>
<span class="mini-click-non">Dashboard</span>
</a>
<ul class="submenu-angle" aria-expanded="false">
<li><a title="Dashboard" href="homepage.php"><span class="mini-sub-pro">Dashboard</span></a></li>
<li><a title="Notification" href="notification.php"><span class="mini-sub-pro">Notification</span></a></li>
</ul>
</li>
<li>
<a class="has-arrow" href="product-list.php">
<i class="icon nalika-table icon-wrap"></i>
<span class="mini-click-non">Product</span>
</a>
<ul class="submenu-angle" aria-expanded="false">
<li><a title="Product List" href="product-list.php"><span class="mini-sub-pro">Product List</span></a></li>
<li><a title="Product Edit" href="product-edit.php"><span class="mini-sub-pro">Product Edit</span></a></li>
<li><a title="Product Detail" href="product-detail.php"><span class="mini-sub-pro">Product Detail</span></a></li>
</ul>
</li>
<li>
<a class="has-arrow" href="mailbox.html" aria-expanded="false"><i class="icon nalika-mail icon-wrap"></i> <span class="mini-click-non">Export & Import</span></a>
<ul class="submenu-angle" aria-expanded="false">
<li><a class="has-arrow" title="Import" href="supply.php"><span >Incoming</span></a>
<ul class="submenu-angle" aria-expanded="false">
<li><a title="Supply" href="supply.php"><span class="mini-sub-pro">Supply & Return(NC)</span></a></li>
<li><a title="Supply" href="supplysh.php"><span class="mini-sub-pro">Supply & Return(SH)</span></a></li>
<li><a title="Import Stock" href="stockaccept.php"><span class="mini-sub-pro">Import Stock</span></a></li>
</ul>
</li>
<li><a class="has-arrow" title="Export" href="outgoingnc.php"><span >Outgoing</span></a>
<ul class="submenu-angle" aria-expanded="false">
<li><a title="Order & Replacement" href="outgoingnc.php"><span class="mini-sub-pro">Order & Replace(NC)</span></a></li>
<li><a title="Order & Replacement" href="outgoingsh.php"><span class="mini-sub-pro">Order & Replace(SH)</span></a></li>
<li><a title="Export Stock" href="stocktrans.php"><span class="mini-sub-pro">Export Stock</span></a></li>
</ul>
</li>
</ul>
</li>
<li>
<a class="has-arrow" href="inventory-1.php" aria-expanded="false"><i class="icon nalika-diamond icon-wrap"></i> <span class="mini-click-non">Warehouse</span></a>
<ul class="submenu-angle" aria-expanded="false">
<li><a title="Inventory" href="inventory-1.php"><span class="mini-sub-pro">Inventory</span></a></li>
<li><a title="Shanghai" href="recordsh.php"><span class="mini-sub-pro">Record SH</span></a></li>
<li><a title="Greensboro" href="recordnc.php"><span class="mini-sub-pro">Record NC</span></a></li>
</ul>
</li>
<li>
<a class="has-arrow" href="bar-charts.html" aria-expanded="false"><i class="icon nalika-bar-chart icon-wrap"></i> <span class="mini-click-non">Charts</span></a>
<ul class="submenu-angle" aria-expanded="false">
<li><a title="Bar Charts" href="bar-charts.html"><span class="mini-sub-pro">Bar Charts</span></a></li>
<li><a title="Line Charts" href="line-charts.html"><span class="mini-sub-pro">Line Charts</span></a></li>
<li><a title="Area Charts" href="area-charts.html"><span class="mini-sub-pro">Area Charts</span></a></li>
<li><a title="Rounded Charts" href="rounded-chart.html"><span class="mini-sub-pro">Rounded Charts</span></a></li>
<li><a title="C3 Charts" href="c3.html"><span class="mini-sub-pro">C3 Charts</span></a></li>
<li><a title="Sparkline Charts" href="sparkline.html"><span class="mini-sub-pro">Sparkline Charts</span></a></li>
<li><a title="Peity Charts" href="peity.html"><span class="mini-sub-pro">Peity Charts</span></a></li>
</ul>
</li>
<li>
<a class="has-arrow" href="static-table.html" aria-expanded="false"><i class="icon nalika-table icon-wrap"></i> <span class="mini-click-non">Data Tables</span></a>
<ul class="submenu-angle" aria-expanded="false">
<li><a title="Peity Charts" href="static-table.html"><span class="mini-sub-pro">Static Table</span></a></li>
<li><a title="Data Table" href="data-table.html"><span class="mini-sub-pro">Data Table</span></a></li>
</ul>
</li>
<li id="removable">
<a class="has-arrow" href="#" aria-expanded="false"><i class="icon nalika-new-file icon-wrap"></i> <span class="mini-click-non">Website Link</span></a>
<ul class="submenu-angle" aria-expanded="false">
<li><a title="Finance" href="bookmark.php"><span class="mini-sub-pro">Bookmark</span></a></li>
</ul>
</li>
</ul>
</nav>
</div>
</nav>
</div>
<!-- Start Welcome area -->
<div class="all-content-wrapper">
<div class="header-advance-area">
<div class="header-top-area">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="header-top-wraper">
<div class="row">
<div class="col-lg-1 col-md-0 col-sm-1 col-xs-12">
<div class="menu-switcher-pro">
<button type="button" id="sidebarCollapse" class="btn bar-button-pro header-drl-controller-btn btn-info navbar-btn">
<i class="icon nalika-menu-task"></i>
</button>
</div>
</div>
<div class="col-lg-6 col-md-7 col-sm-6 col-xs-12">
<div class="header-top-menu tabl-d-n">
<ul class="nav navbar-nav mai-top-nav">
<li class="nav-item"><a href="#" class="nav-link">Home</a>
</li>
<li class="nav-item"><a href="#" class="nav-link">About</a>
</li>
<li class="nav-item"><a href="#" class="nav-link">Services</a>
</li>
<li class="nav-item"><a href="#" class="nav-link">Support</a>
</li>
</ul>
</div>
</div>
<div class="col-lg-5 col-md-6 col-sm-12 col-xs-12">
<div class="header-right-info">
<ul class="nav navbar-nav mai-top-nav header-right-menu">
<li class="nav-item"><a href="#" data-toggle="dropdown" role="button" aria-expanded="false" class="nav-link dropdown-toggle"><i class="icon nalika-menu-task"></i></a>
<ul role="menu" class="dropdown-header-top author-log dropdown-menu animated zoomIn">
<li><a href="#"><span class="icon nalika-home author-log-ic"></span> Dashboard</a>
<a title="Dashboard" href="homepage.php"><span class="mini-sub-pro">Dashboard</span></a>
<a title="Notification" href="notification.php"><span class="mini-sub-pro">Notification</span></a>
</li>
<li><a href="#"><span class="icon nalika-diamond author-log-ic"></span> Warehouse</a>
<li><a title="Inventory" href="inventory-1.php"><span class="mini-sub-pro">Inventory</span></a>
<a title="Shanghai" href="recordsh.php"><span class="mini-sub-pro">Record SH</span></a>
<a title="Greensboro" href="recordnc.php"><span class="mini-sub-pro">Record NC</span></a></li>
</ul>
</li>
<li class="nav-item"><a href="#" data-toggle="dropdown" role="button" aria-expanded="false" class="nav-link dropdown-toggle"><i class="icon nalika-alarm" aria-hidden="true"></i><span class="<?php if ($totalnotes != 0) print 'indicator-nt' ?>"></span></a>
<div role="menu" class="notification-author dropdown-menu animated zoomIn">
<div class="notification-single-top">
<h1>Notifications</h1>
</div>
<ul class="notification-menu">
<?php
for ($i = 0; $i < count($datanote) && $i < 3; $i++) {
print "<li>
<a href='notification.php'>
<div class='notification-icon'>
<i class='icon nalika-tick' aria-hidden='true'></i>
</div>
<div class='notification-content'>
<h2>";
print $datanote[$i]['date'];
print "</h2>
<p>" . $datanote[$i]['subject'] . "</p>
</div>
</a>
</li>";
}
?>
</ul>
<div class="notification-view">
<?php if (count($datanote) > 3) print "<a href='notification.php'>View All Notification</a>"; ?>
</div>
</div>
</li>
<li class="nav-item">
<a href="#" data-toggle="dropdown" role="button" aria-expanded="false" class="nav-link dropdown-toggle">
<i class="icon nalika-user"></i>
<span class="admin-name"><?php print $user ?></span>
<i class="icon nalika-down-arrow nalika-angle-dw"></i>
</a>
<ul role="menu" class="dropdown-header-top author-log dropdown-menu animated zoomIn">
<li><a href="register.php"><span class="icon nalika-home author-log-ic"></span> Register</a>
</li>
<li><a href="#"><span class="icon nalika-user author-log-ic"></span> My Profile</a>
</li>
<li><a href="lock.php"><span class="icon nalika-diamond author-log-ic"></span> Lock</a>
</li>
<li><a href="#"><span class="icon nalika-settings author-log-ic"></span> Settings</a>
</li>
<li><a href="logout.php"><span class="icon nalika-unlocked author-log-ic"></span> Log Out</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Mobile Menu start -->
<!-- Mobile Menu end -->
<div class="breadcome-area">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="breadcome-list">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
<div class="breadcomb-wp">
<div class="breadcomb-icon">
<i class="icon nalika-home"></i>
</div>
<div class="breadcomb-ctn">
<h2>Dashboard</h2>
<p>Welcome to Unihorn Management System <span class="bread-ntd"></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="section-admin container-fluid">
<div class="row admin text-center">
<div class="col-md-12">
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<div class="admin-content analysis-progrebar-ctn res-mg-t-15">
<h4 class="text-left text-uppercase"><b>Amazon total Orders(7 days)</b></h4>
<div class="row vertical-center-box vertical-center-box-tablet">
<div class="col-xs-3 mar-bot-15 text-left">
<label class="label bg-<?php
if ($amazon > $ebay && $amazon > $newegg)
print "red";else if ($amazon < $newegg && $amazon < $ebay)
print "green";
else
print "blue";
?>"><?php print round($amazon / $all * 100, 2) . "%"; ?><i class="fa fa-level-<?php
if ($amazon > $ebay && $amazon > $newegg)
print "up";else if ($amazon < $newegg && $amazon < $ebay)
print "down";
else
print "";
?>" aria-hidden="true"></i></label>
</div>
<div class="col-xs-9 cus-gh-hd-pro">
<h2 class="text-right no-margin"><?php print $amazon; ?></h2>
</div>
</div>
<div class="progress progress-mini">
<div style="width: <?php print round($amazon / $all * 100, 0) . "%"; ?>;" class="progress-bar bg-green"></div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12" style="margin-bottom:1px;">
<div class="admin-content analysis-progrebar-ctn res-mg-t-30">
<h4 class="text-left text-uppercase"><b>Ebay total Orders(7 days)</b></h4>
<div class="row vertical-center-box vertical-center-box-tablet">
<div class="text-left col-xs-3 mar-bot-15">
<label class="label bg-<?php
if ($ebay > $amazon && $ebay > $newegg)
print "red";else if ($ebay < $newegg && $amazon > $ebay)
print "green";
else
print "blue";
?>"><?php print round($ebay / $all * 100, 2) . "%"; ?> <i class="fa fa-level-<?php
if ($ebay > $amazon && $ebay > $newegg)
print "up";else if ($ebay < $newegg && $amazon > $ebay)
print "down";
else
print "";
?>" aria-hidden="true"></i></label>
</div>
<div class="col-xs-9 cus-gh-hd-pro">
<h2 class="text-right no-margin"><?php print $ebay; ?></h2>
</div>
</div>
<div class="progress progress-mini">
<div style="width: <?php print round($ebay / $all * 100, 0) . "%"; ?>;" class="progress-bar progress-bar-danger bg-red"></div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<div class="admin-content analysis-progrebar-ctn res-mg-t-30">
<h4 class="text-left text-uppercase"><b>NewEgg total Orders(7 days)</b></h4>
<div class="row vertical-center-box vertical-center-box-tablet">
<div class="text-left col-xs-3 mar-bot-15">
<label class="label bg-<?php
if ($newegg > $ebay && $amazon < $newegg)
print "red";else if ($amazon > $newegg && $newegg < $ebay)
print "green";
else
print "blue";
?>"><?php print round($newegg / $all * 100, 2) . "%"; ?><i class="fa fa-level-<?php
if ($newegg > $ebay && $amazon < $newegg)
print "up";else if ($amazon > $newegg && $newegg < $ebay)
print "down";
else
print "";
?>" aria-hidden="true"></i></label>
</div>
<div class="col-xs-9 cus-gh-hd-pro">
<h2 class="text-right no-margin"><?php print $newegg; ?></h2>
</div>
</div>
<div class="progress progress-mini">
<div style="width: <?php print round($newegg / $all * 100, 0) . "%"; ?>;" class="progress-bar bg-blue"></div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<div class="admin-content analysis-progrebar-ctn res-mg-t-30">
<h4 class="text-left text-uppercase"><b>2020 Total Orders</b></h4>
<div class="row vertical-center-box vertical-center-box-tablet">
<div class="text-left col-xs-3 mar-bot-15">
<label class="label bg-purple"><i class="fa fa-level" aria-hidden="true"></i></label>
</div>
<div class="col-xs-9 cus-gh-hd-pro">
<h2 class="text-right no-margin"><?php print $year; ?></h2>
</div>
</div>
<div class="progress progress-mini">
<div style="width: 100%;" class="progress-bar bg-purple"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="product-sales-area mg-tb-30">
<div class="container-fluid">
<div class="row">
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
<img src="statistic.php">
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
<div class="white-box analytics-info-cs mg-b-30 res-mg-t-30">
<h3 class="box-title"><?php print $topsku0; ?></h3>
<ul class="list-inline two-part-sp">
<li>
<div id="sparklinedash"> </div>
</li>
<li class="text-right sp-cn-r"><i class="fa fa-level-up" aria-hidden="true"></i><span class="counter sales-sts-ctn">Top1 Sales: <?php print $topam0; ?> </span></li>
</ul>
</div>
<div class="white-box analytics-info-cs mg-b-30">
<h3 class="box-title"><?php print $topsku1; ?></h3>
<ul class="list-inline two-part-sp">
<li>
<div id="sparklinedash2"></div>
</li>
<li class="text-right"><i class="fa fa-level-up" aria-hidden="true"></i> <span class="counter sales-sts-ctn">Top2 Sales: <?php print $topam1; ?></span></li>
</ul>
</div>
<div class="white-box analytics-info-cs mg-b-30">
<h3 class="box-title"><?php print $topsku2; ?></h3>
<ul class="list-inline two-part-sp">
<li>
<div id="sparklinedash3"></div>
</li>
<li class="text-right"><i class="fa fa-level-up" aria-hidden="true"></i> <span class="counter sales-sts-ctn">Top3 Sales: <?php print $topam2; ?></span></li>
</ul>
</div>
<div class="white-box analytics-info-cs">
<h3 class="box-title"><?php print $topsku3; ?></h3>
<ul class="list-inline two-part-sp">
<li>
<div id="sparklinedash4"></div>
</li>
<li class="text-right"><i class="fa fa-level-up" aria-hidden="true"></i> <span class="sales-sts-ctn">Top4 Sales: <?php print $topam3; ?></span></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="product-sales-area mg-tb-30">
</div>
<div class="footer-copyright-area">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="footer-copy-right">
<p>Copyright © 2019 <a href="https://www.unihorn.tech">Unihorn</a> All rights reserved.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- jquery
============================================ -->
<script src="js/vendor/jquery-1.12.4.min.js"></script>
<!-- bootstrap JS
============================================ -->
<script src="js/bootstrap.min.js"></script>
<!-- wow JS
============================================ -->
<script src="js/wow.min.js"></script>
<!-- price-slider JS
============================================ -->
<script src="js/jquery-price-slider.js"></script>
<!-- meanmenu JS
============================================ -->
<script src="js/jquery.meanmenu.js"></script>
<!-- owl.carousel JS
============================================ -->
<script src="js/owl.carousel.min.js"></script>
<!-- sticky JS
============================================ -->
<script src="js/jquery.sticky.js"></script>
<!-- scrollUp JS
============================================ -->
<script src="js/jquery.scrollUp.min.js"></script>
<!-- mCustomScrollbar JS
============================================ -->
<script src="js/scrollbar/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="js/scrollbar/mCustomScrollbar-active.js"></script>
<!-- metisMenu JS
============================================ -->
<script src="js/metisMenu/metisMenu.min.js"></script>
<script src="js/metisMenu/metisMenu-active.js"></script>
<!-- sparkline JS
============================================ -->
<script src="js/sparkline/jquery.sparkline.min.js"></script>
<script src="js/sparkline/jquery.charts-sparkline.js"></script>
<!-- calendar JS
============================================ -->
<script src="js/calendar/moment.min.js"></script>
<script src="js/calendar/fullcalendar.min.js"></script>
<script src="js/calendar/fullcalendar-active.js"></script>
<!-- float JS
============================================ -->
<script src="js/flot/jquery.flot.js"></script>
<script src="js/flot/jquery.flot.resize.js"></script>
<script src="js/flot/curvedLines.js"></script>
<script src="js/flot/flot-active.js"></script>
<!-- plugins JS
============================================ -->
<script src="js/plugins.js"></script>
<!-- main JS
============================================ -->
<script src="js/main.js"></script>
<script type="text/javascript">
function openNewWin(url)
{
window.open(url);
}
</script>
</body>
</html>