31 if (!isset($limit) || (empty($limit))) { $limit = 4; }
32 $latestPages = array();
36 echo
"<!-- PRODUCT LIST -->
37 <div class=\"box box-primary\">
38 <div class=\"box-header with-border\">
39 <h3 class=\"box-title\">$lang[RECENTLY_ADDED_PAGES]</h3>
41 <div class=\"box-tools pull-right\">
42 <button type=\"button\" class=\"btn btn-box-tool\" data-widget=\"collapse\"><i class=\"fa fa-minus\"></i>
44 <button type=\"button\" class=\"btn btn-box-tool\" data-widget=\"remove\"><i class=\"fa fa-times\"></i></button>
48 <div class=\"box-body\">
49 <ul class=\"products-list product-list-in-box\">";
51 foreach ($latestPages AS
$page => $property)
53 if ($property[
'published'] ===
"1")
55 $color =
"success"; $text =
"online";
59 $color =
"danger"; $text=
"offline";
62 echo
"<li class=\"item\">
63 <div class=\"product-img\">
64 <i class=\"fa fa-file-code-o fa-2x text-muted\"></i>
66 <div class=\"product-info\">
67 <a href=\"index.php?page=page-edit&alias=$property[alias]&id=$property[id]\" class=\"product-title\">$property[title]
68 <span class=\"label label-$color pull-right\">$text</span></a>
69 <span class=\"product-description\">
80 <div class=\"box-footer text-center\">
81 <a href=\"index.php?page=pages\" class=\"uppercase\">$lang[VIEW_ALL_PAGES]</a>
98 if (!isset($limit) && (empty($limit))) { $limit = 8; }
102 $members = count($latestUsers);
105 <div class=\"box box-danger\">
106 <div class=\"box-header with-border\">
107 <h3 class=\"box-title\">$lang[LATEST_MEMBERS]</h3>
109 <div class=\"box-tools pull-right\">
110 <span class=\"label label-danger\">$members $lang[NEW_MEMBERS]</span>
111 <button type=\"button\" class=\"btn btn-box-tool\" data-widget=\"collapse\"><i class=\"fa fa-minus\"></i>
113 <button type=\"button\" class=\"btn btn-box-tool\" data-widget=\"remove\"><i class=\"fa fa-times\"></i>
117 <!-- /.box-header -->
118 <div class=\"box-body no-padding\">
119 <ul class=\"users-list clearfix\">";
120 foreach ($latestUsers AS $newUser)
125 <a href=\"index.php?page=user-edit&user=$newUser[username]\">$userpic</a>
126 <br><a href=\"index.php?page=user-edit&user=$newUser[username]\">$newUser[username]</a>
127 <span class=\"users-list-date\">$timeAgo</span>
131 <!-- /.users-list -->
134 <div class=\"box-footer text-center\">
135 <a href=\"index.php?page=users\" class=\"uppercase\">$lang[VIEW_ALL_MEMBERS]</a>
137 <!-- /.box-footer -->
print $lang['FILEMAN_UPLOAD']
Dashboard class serves a few useful functions for the admin backend.
static drawLatestUsers($db, $limit, $lang)
Draws a box containing the recently added users.
static drawLatestPagesBox($db, $limit, $lang)
Draws a box containing the recently added static pages.
static printTooltip($toolTipText)
Draw a small question mark, enabling a tooltip on hover. toolTipText must be a string and will usuall...
static getLatest($db, $limit)
get latest pages
static time_ago($userdate, $lang)
how many time is been gone since given date
static getUserImage($location, $user, $cssClass, $w, $h)
return and output user image
static getLatestUsers($db, $count)
get latest users and return as array