index.html 16 KB

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