17 echo
"<!-- Optionally, you can add Slimscroll and FastClick plugins.
18 Both of these plugins are recommended to enhance the
19 user experience. Slimscroll is required when using the
23 <link rel=\"stylesheet\" href=\"https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css\">
24 <!-- SlimScroll 1.3.0 -->
25 <script src=\"../system/engines/AdminLTE/plugins/slimScroll/jquery.slimscroll.min.js\"></script>
26 <!-- ChartJS 1.0.1 -->
27 <script src=\"../system/engines/AdminLTE/plugins/chartjs/Chart.min.js\"></script>";
30 if (!isset($stats) || (empty($stats)))
34 @require_once
'../system/classes/stats.php';
37 $defaultInterval = 10;
38 $defaultPeriod =
"MINUTE";
39 $data = $stats->getStatsArray(
$db, $defaultInterval, $defaultPeriod);
40 $limit = $stats->i_hits;
48 if (settings::getSetting(
$db,
"backendTipOfDay") ==
true)
50 @require_once
'../system/classes/tipOfDay.php';
59 <div
class=
"col-md-3 col-sm-6 col-xs-12">
60 <div
class=
"info-box">
61 <!-- facebook
icon <span
class=
"info-box-icon bg-blue"><
i class=
"fa fa-facebook-official"></
i></span> -->
62 <span
class=
"info-box-icon bg-blue"><
i class=
"fa fa-line-chart"></
i></span>
64 <div
class=
"info-box-content">
65 <span
class=
"info-box-text"><?php echo
"$lang[IN_LAST24H]"; ?></span>
66 <span
class=
"info-box-number"><?php echo number_format($stats->i_hits, 0,
'.',
'.'); ?> <small> <?php echo
$lang[
'HITS']; ?></small></span>
68 <!-- /.info-box-content -->
73 <div
class=
"col-md-3 col-sm-6 col-xs-12">
74 <div
class=
"info-box">
75 <!-- twitter
icon <span
class=
"info-box-icon bg-aqua"><
i class=
"ion-social-twitter-outline"></
i></span> -->
76 <span
class=
"info-box-icon bg-aqua"><
i class=
"fa fa-mobile-phone"></
i></span>
78 <div
class=
"info-box-content">
79 <span
class=
"info-box-text"><?php echo
$lang[
'DEVICES']; ?></span>
80 <span
class=
"info-box-number"><?php $stats->countDeviceTypes(
$db,
$data); echo round($stats->i_desktopPercent, 1); ?>% <small> Desktop</small></span>
81 <span
class=
"info-box-number"><?php echo round($stats->i_phonePercent, 1); ?>% <small> Phone</small> / <?php echo round($stats->i_tabletPercent, 1); ?>% <small> Tablet</small></span>
83 <!-- /.info-box-content -->
89 <!-- fix
for small devices only -->
90 <div
class=
"clearfix visible-sm-block"></div>
92 <div
class=
"col-md-3 col-sm-6 col-xs-12">
93 <div
class=
"info-box">
94 <span
class=
"info-box-icon bg-green"><
i class=
"ion-ios-paper-outline"></
i></span>
96 <div
class=
"info-box-content">
97 <span
class=
"info-box-text"><?php echo
$lang[
'PAGES']; ?></span>
98 <span
class=
"info-box-number"><?php echo page::countPages(
$db); ?></span>
100 <!-- /.info-box-content -->
105 <div
class=
"col-md-3 col-sm-6 col-xs-12">
106 <div
class=
"info-box">
107 <span
class=
"info-box-icon bg-yellow"><
i class=
"ion ion-ios-people-outline"></
i></span>
109 <div
class=
"info-box-content">
110 <span
class=
"info-box-text"><?php echo
$lang[
'USERS']; ?></span>
111 <span
class=
"info-box-number"><?php echo user::countUsers(
$db); ?></span>
113 <!-- /.info-box-content -->
126 <div
class=
"col-md-8">
128 <div
class=
"col-md-12">
137 <div
class=
"col-md-4">
138 <!-- weekday
stats -->
140 <!-- latest users -->
141 <?php dashboard::drawLatestUsers(
$db, 8,
$lang); ?>
142 <!-- daytime
stats -->
144 <!-- latest pages
stats-->
145 <?php dashboard::drawLatestPagesBox(
$db, 5,
$lang); ?>
print $lang['FILEMAN_UPLOAD']
Dashboard class serves a few useful functions for the admin backend.
Mysqli database class; returns db connection object.
The language class - support multilingual backend.
The default pages class. Provide all functions to handle static pages.
Settings class: get and set YaWK system settings.
Statistics - get and set user and page stats.
TipOfDay class serve functions to get and draw a tip of the day.
The default user class. Provide all functions to handle the user object.