index.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. <style type="text/css">
  2. .sm-st {
  3. background: #fff;
  4. padding: 20px;
  5. -webkit-border-radius: 3px;
  6. -moz-border-radius: 3px;
  7. border-radius: 3px;
  8. margin-bottom: 20px;
  9. -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
  10. box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
  11. }
  12. .sm-st-icon {
  13. width: 60px;
  14. height: 60px;
  15. display: inline-block;
  16. line-height: 60px;
  17. text-align: center;
  18. font-size: 30px;
  19. background: #eee;
  20. -webkit-border-radius: 5px;
  21. -moz-border-radius: 5px;
  22. border-radius: 5px;
  23. float: left;
  24. margin-right: 10px;
  25. color: #fff;
  26. }
  27. .sm-st-info {
  28. font-size: 12px;
  29. padding-top: 2px;
  30. }
  31. .sm-st-info span {
  32. display: block;
  33. font-size: 24px;
  34. font-weight: 600;
  35. }
  36. .orange {
  37. background: #fa8564 !important;
  38. }
  39. .tar {
  40. background: #45cf95 !important;
  41. }
  42. .sm-st .green {
  43. background: #86ba41 !important;
  44. }
  45. .pink {
  46. background: #AC75F0 !important;
  47. }
  48. .yellow-b {
  49. background: #fdd752 !important;
  50. }
  51. .stat-elem {
  52. background-color: #fff;
  53. padding: 18px;
  54. border-radius: 40px;
  55. }
  56. .stat-info {
  57. text-align: center;
  58. background-color: #fff;
  59. border-radius: 5px;
  60. margin-top: -5px;
  61. padding: 8px;
  62. -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
  63. box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
  64. font-style: italic;
  65. }
  66. .stat-icon {
  67. text-align: center;
  68. margin-bottom: 5px;
  69. }
  70. .st-red {
  71. background-color: #F05050;
  72. }
  73. .st-green {
  74. background-color: #27C24C;
  75. }
  76. .st-violet {
  77. background-color: #7266ba;
  78. }
  79. .st-blue {
  80. background-color: #23b7e5;
  81. }
  82. .stats .stat-icon {
  83. color: #28bb9c;
  84. display: inline-block;
  85. font-size: 26px;
  86. text-align: center;
  87. vertical-align: middle;
  88. width: 50px;
  89. float: left;
  90. }
  91. .stat {
  92. white-space: nowrap;
  93. overflow: hidden;
  94. text-overflow: ellipsis;
  95. display: inline-block;
  96. }
  97. .stat .value {
  98. font-size: 20px;
  99. line-height: 24px;
  100. overflow: hidden;
  101. text-overflow: ellipsis;
  102. font-weight: 500;
  103. }
  104. .stat .name {
  105. overflow: hidden;
  106. text-overflow: ellipsis;
  107. }
  108. .stat.lg .value {
  109. font-size: 26px;
  110. line-height: 28px;
  111. }
  112. .stat.lg .name {
  113. font-size: 16px;
  114. }
  115. .stat-col .progress {
  116. height: 2px;
  117. }
  118. .stat-col .progress-bar {
  119. line-height: 2px;
  120. height: 2px;
  121. }
  122. .item {
  123. padding: 30px 0;
  124. }
  125. #statistics .panel {
  126. min-height: 150px;
  127. }
  128. #statistics .panel h5 {
  129. font-size: 13px;
  130. }
  131. </style>
  132. <div class="panel panel-default panel-intro">
  133. <div class="panel-heading">
  134. {:build_heading(null, false)}
  135. <ul class="nav nav-tabs">
  136. <li class="active"><a href="#one" data-toggle="tab">{:__('Dashboard')}</a></li>
  137. <li><a href="#two" data-toggle="tab">{:__('Custom')}</a></li>
  138. </ul>
  139. </div>
  140. <div class="panel-body">
  141. <div id="myTabContent" class="tab-content">
  142. <div class="tab-pane fade active in" id="one">
  143. <div class="row">
  144. <div class="col-sm-3 col-xs-6">
  145. <div class="sm-st clearfix">
  146. <span class="sm-st-icon st-red"><i class="fa fa-users"></i></span>
  147. <div class="sm-st-info">
  148. <span>{$totaluser}</span>
  149. {:__('Total user')}
  150. </div>
  151. </div>
  152. </div>
  153. <div class="col-sm-3 col-xs-6">
  154. <div class="sm-st clearfix">
  155. <span class="sm-st-icon st-violet"><i class="fa fa-magic"></i></span>
  156. <div class="sm-st-info">
  157. <span>{$totaladdon}</span>
  158. {:__('Total addon')}
  159. </div>
  160. </div>
  161. </div>
  162. <div class="col-sm-3 col-xs-6">
  163. <div class="sm-st clearfix">
  164. <span class="sm-st-icon st-blue"><i class="fa fa-leaf"></i></span>
  165. <div class="sm-st-info">
  166. <span>{$totalcategory}</span>
  167. {:__('Total category')}
  168. </div>
  169. </div>
  170. </div>
  171. <div class="col-sm-3 col-xs-6">
  172. <div class="sm-st clearfix">
  173. <span class="sm-st-icon st-green"><i class="fa fa-user"></i></span>
  174. <div class="sm-st-info">
  175. <span>{$totaladmin}</span>
  176. {:__('Total admin')}
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. <div class="row">
  182. <div class="col-lg-8">
  183. <div id="echart" class="btn-refresh" style="height:200px;width:100%;"></div>
  184. </div>
  185. <div class="col-lg-4">
  186. <div class="card sameheight-item stats">
  187. <div class="card-block">
  188. <div class="row row-sm stats-container">
  189. <div class="col-xs-6 stat-col">
  190. <div class="stat-icon"><i class="fa fa-rocket"></i></div>
  191. <div class="stat">
  192. <div class="value"> {$todayusersignup}</div>
  193. <div class="name"> {:__('Today user signup')}</div>
  194. </div>
  195. <div class="progress">
  196. <div class="progress-bar progress-bar-success" style="width: 30%"></div>
  197. </div>
  198. </div>
  199. <div class="col-xs-6 stat-col">
  200. <div class="stat-icon"><i class="fa fa-vcard"></i></div>
  201. <div class="stat">
  202. <div class="value"> {$todayuserlogin}</div>
  203. <div class="name"> {:__('Today user login')}</div>
  204. </div>
  205. <div class="progress">
  206. <div class="progress-bar progress-bar-success" style="width: 25%"></div>
  207. </div>
  208. </div>
  209. <div class="col-xs-6 stat-col">
  210. <div class="stat-icon"><i class="fa fa-calendar"></i></div>
  211. <div class="stat">
  212. <div class="value"> {$threednu}</div>
  213. <div class="name"> {:__('Three dnu')}</div>
  214. </div>
  215. <div class="progress">
  216. <div class="progress-bar progress-bar-success" style="width: 25%"></div>
  217. </div>
  218. </div>
  219. <div class="col-xs-6 stat-col">
  220. <div class="stat-icon"><i class="fa fa-calendar-plus-o"></i></div>
  221. <div class="stat">
  222. <div class="value"> {$sevendnu}</div>
  223. <div class="name"> {:__('Seven dnu')}</div>
  224. </div>
  225. <div class="progress">
  226. <div class="progress-bar progress-bar-success" style="width: 25%"></div>
  227. </div>
  228. </div>
  229. <div class="col-xs-6 stat-col">
  230. <div class="stat-icon"><i class="fa fa-user-circle"></i></div>
  231. <div class="stat">
  232. <div class="value"> {$sevendau}</div>
  233. <div class="name"> {:__('Seven dau')}</div>
  234. </div>
  235. <div class="progress">
  236. <div class="progress-bar progress-bar-success" style="width: 25%"></div>
  237. </div>
  238. </div>
  239. <div class="col-xs-6 stat-col">
  240. <div class="stat-icon"><i class="fa fa-user-circle-o"></i></div>
  241. <div class="stat">
  242. <div class="value"> {$thirtydau}</div>
  243. <div class="name"> {:__('Thirty dau')}</div>
  244. </div>
  245. <div class="progress">
  246. <div class="progress-bar progress-bar-success" style="width: 25%"></div>
  247. </div>
  248. </div>
  249. </div>
  250. </div>
  251. </div>
  252. </div>
  253. </div>
  254. <div class="row" style="margin-top:15px;" id="statistics">
  255. <div class="col-lg-12">
  256. </div>
  257. <div class="col-xs-6 col-md-3">
  258. <div class="panel bg-blue-gradient no-border">
  259. <div class="panel-body">
  260. <div class="panel-title">
  261. <span class="label label-primary pull-right">{:__('Real time')}</span>
  262. <h5>{:__('Category count')}</h5>
  263. </div>
  264. <div class="panel-content">
  265. <div class="row">
  266. <div class="col-md-12">
  267. <h1 class="no-margins">{$totalcategory}</h1>
  268. <div class="font-bold"><i class="fa fa-magic"></i>
  269. <small>{:__('Category count tips')}</small>
  270. </div>
  271. </div>
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. <div class="col-xs-6 col-md-3">
  278. <div class="panel bg-aqua-gradient no-border">
  279. <div class="panel-body">
  280. <div class="ibox-title">
  281. <span class="label label-primary pull-right">{:__('Real time')}</span>
  282. <h5>{:__('Database count')}</h5>
  283. </div>
  284. <div class="ibox-content">
  285. <div class="row">
  286. <div class="col-md-6">
  287. <h1 class="no-margins">{$dbtablenums}</h1>
  288. <div class="font-bold"><i class="fa fa-database"></i>
  289. <small>{:__('Database table nums')}</small>
  290. </div>
  291. </div>
  292. <div class="col-md-6">
  293. <h1 class="no-margins">{$dbsize|format_bytes=###,'',0}</h1>
  294. <div class="font-bold"><i class="fa fa-filter"></i>
  295. <small>{:__('Database size')}</small>
  296. </div>
  297. </div>
  298. </div>
  299. </div>
  300. </div>
  301. </div>
  302. </div>
  303. <div class="col-xs-6 col-md-3">
  304. <div class="panel bg-purple-gradient no-border">
  305. <div class="panel-body">
  306. <div class="ibox-title">
  307. <span class="label label-primary pull-right">{:__('Real time')}</span>
  308. <h5>{:__('Attachment count')}</h5>
  309. </div>
  310. <div class="ibox-content">
  311. <div class="row">
  312. <div class="col-md-6">
  313. <h1 class="no-margins">{$attachmentnums}</h1>
  314. <div class="font-bold"><i class="fa fa-files-o"></i>
  315. <small>{:__('Attachment nums')}</small>
  316. </div>
  317. </div>
  318. <div class="col-md-6">
  319. <h1 class="no-margins">{$attachmentsize|format_bytes=###,'',0}</h1>
  320. <div class="font-bold"><i class="fa fa-filter"></i>
  321. <small>{:__('Attachment size')}</small>
  322. </div>
  323. </div>
  324. </div>
  325. </div>
  326. </div>
  327. </div>
  328. </div>
  329. <div class="col-xs-6 col-md-3">
  330. <div class="panel bg-green-gradient no-border">
  331. <div class="panel-body">
  332. <div class="ibox-title">
  333. <span class="label label-primary pull-right">{:__('Real time')}</span>
  334. <h5>{:__('Picture count')}</h5>
  335. </div>
  336. <div class="ibox-content">
  337. <div class="row">
  338. <div class="col-md-6">
  339. <h1 class="no-margins">{$picturenums}</h1>
  340. <div class="font-bold"><i class="fa fa-picture-o"></i>
  341. <small>{:__('Picture nums')}</small>
  342. </div>
  343. </div>
  344. <div class="col-md-6">
  345. <h1 class="no-margins">{$picturesize|format_bytes=###,'',0}</h1>
  346. <div class="font-bold"><i class="fa fa-filter"></i>
  347. <small>{:__('Picture size')}</small>
  348. </div>
  349. </div>
  350. </div>
  351. </div>
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. </div>
  357. <div class="tab-pane fade" id="two">
  358. <div class="row">
  359. <div class="col-xs-12">
  360. {:__('Custom zone')}
  361. </div>
  362. </div>
  363. </div>
  364. </div>
  365. </div>
  366. </div>