index.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  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-shopping-cart"></i></span>
  156. <div class="sm-st-info">
  157. <span>{$usedBoxOrderCount}</span>
  158. {:__('Effective box order')}
  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>{$totalgoods}</span>
  167. {:__('Total goods')}
  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-dropbox"></i></span>
  174. <div class="sm-st-info">
  175. <span>{$totalbox}</span>
  176. {:__('Total box')}
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. <div class="row">
  182. <div class="col-sm-3 col-xs-6">
  183. <div class="sm-st clearfix">
  184. <span class="sm-st-icon st-red"><i class="fa fa-users"></i></span>
  185. <div class="sm-st-info">
  186. <span>{$total_uv}</span>
  187. {:__('总uv')}
  188. </div>
  189. </div>
  190. </div>
  191. <div class="col-sm-3 col-xs-6">
  192. <div class="sm-st clearfix">
  193. <span class="sm-st-icon st-red"><i class="fa fa-users"></i></span>
  194. <div class="sm-st-info">
  195. <span>{$today_uv}</span>
  196. {:__('当日uv')}
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. <div class="row">
  202. <div class="col-lg-8">
  203. <div id="echart" class="btn-refresh" style="height:200px;width:100%;"></div>
  204. </div>
  205. <div class="col-lg-4">
  206. <div class="card sameheight-item stats">
  207. <div class="card-block">
  208. <div class="row row-sm stats-container">
  209. <div class="col-xs-6 stat-col">
  210. <div class="stat-icon"><i class="fa fa-rocket"></i></div>
  211. <div class="stat">
  212. <div class="value"> {$todayusersignup}</div>
  213. <div class="name"> {:__('Today user signup')}</div>
  214. </div>
  215. <div class="progress">
  216. <div class="progress-bar progress-bar-success" style="width: 30%"></div>
  217. </div>
  218. </div>
  219. <div class="col-xs-6 stat-col">
  220. <div class="stat-icon"><i class="fa fa-vcard"></i></div>
  221. <div class="stat">
  222. <div class="value"> {$todayuserlogin}</div>
  223. <div class="name"> {:__('Today user login')}</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-calendar"></i></div>
  231. <div class="stat">
  232. <div class="value"> {$threednu}</div>
  233. <div class="name"> {:__('Three dnu')}</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-calendar-plus-o"></i></div>
  241. <div class="stat">
  242. <div class="value"> {$sevendnu}</div>
  243. <div class="name"> {:__('Seven dnu')}</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 class="col-xs-6 stat-col">
  250. <div class="stat-icon"><i class="fa fa-user-circle"></i></div>
  251. <div class="stat">
  252. <div class="value"> {$sevendau}</div>
  253. <div class="name"> {:__('Seven dau')}</div>
  254. </div>
  255. <div class="progress">
  256. <div class="progress-bar progress-bar-success" style="width: 25%"></div>
  257. </div>
  258. </div>
  259. <div class="col-xs-6 stat-col">
  260. <div class="stat-icon"><i class="fa fa-user-circle-o"></i></div>
  261. <div class="stat">
  262. <div class="value"> {$thirtydau}</div>
  263. <div class="name"> {:__('Thirty dau')}</div>
  264. </div>
  265. <div class="progress">
  266. <div class="progress-bar progress-bar-success" style="width: 25%"></div>
  267. </div>
  268. </div>
  269. </div>
  270. </div>
  271. </div>
  272. </div>
  273. </div>
  274. <div class="row" style="margin-top:15px;" id="statistics">
  275. <div class="col-lg-12">
  276. </div>
  277. <div class="col-xs-6 col-md-3">
  278. <div class="panel bg-light-blue-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>{:__('Money box')}</h5>
  283. </div>
  284. <div class="ibox-content">
  285. <div class="row">
  286. <div class="col-md-6">
  287. <h1 class="no-margins">{$money_box_unpay}</h1>
  288. <div class="font-bold"><i class="fa fa-database"></i>
  289. <small>{:__('Money unpay')}</small>
  290. </div>
  291. </div>
  292. <div class="col-md-6">
  293. <h1 class="no-margins">{$money_box_paid}</h1>
  294. <div class="font-bold"><i class="fa fa-filter"></i>
  295. <small>{:__('Money paid')}</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-aqua-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>{:__('Money recharge')}</h5>
  309. </div>
  310. <div class="ibox-content">
  311. <div class="row">
  312. <div class="col-md-6">
  313. <h1 class="no-margins">{$money_recharge_unpay}</h1>
  314. <div class="font-bold"><i class="fa fa-database"></i>
  315. <small>{:__('Money unpay')}</small>
  316. </div>
  317. </div>
  318. <div class="col-md-6">
  319. <h1 class="no-margins">{$money_recharge_paid}</h1>
  320. <div class="font-bold"><i class="fa fa-filter"></i>
  321. <small>{:__('Money paid')}</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-purple-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>{:__('Attachment count')}</h5>
  335. </div>
  336. <div class="ibox-content">
  337. <div class="row">
  338. <div class="col-md-6">
  339. <h1 class="no-margins">{$attachmentnums}</h1>
  340. <div class="font-bold"><i class="fa fa-files-o"></i>
  341. <small>{:__('Attachment nums')}</small>
  342. </div>
  343. </div>
  344. <div class="col-md-6">
  345. <h1 class="no-margins">{$attachmentsize|format_bytes=###,'',0}</h1>
  346. <div class="font-bold"><i class="fa fa-filter"></i>
  347. <small>{:__('Attachment size')}</small>
  348. </div>
  349. </div>
  350. </div>
  351. </div>
  352. </div>
  353. </div>
  354. </div>
  355. <div class="col-xs-6 col-md-3">
  356. <div class="panel bg-green-gradient no-border">
  357. <div class="panel-body">
  358. <div class="ibox-title">
  359. <span class="label label-primary pull-right">{:__('Real time')}</span>
  360. <h5>{:__('Picture count')}</h5>
  361. </div>
  362. <div class="ibox-content">
  363. <div class="row">
  364. <div class="col-md-6">
  365. <h1 class="no-margins">{$picturenums}</h1>
  366. <div class="font-bold"><i class="fa fa-picture-o"></i>
  367. <small>{:__('Picture nums')}</small>
  368. </div>
  369. </div>
  370. <div class="col-md-6">
  371. <h1 class="no-margins">{$picturesize|format_bytes=###,'',0}</h1>
  372. <div class="font-bold"><i class="fa fa-filter"></i>
  373. <small>{:__('Picture size')}</small>
  374. </div>
  375. </div>
  376. </div>
  377. </div>
  378. </div>
  379. </div>
  380. </div>
  381. </div>
  382. </div>
  383. <div class="tab-pane fade" id="two">
  384. <div class="row">
  385. <div class="col-xs-12">
  386. {:__('Custom zone')}
  387. </div>
  388. </div>
  389. </div>
  390. </div>
  391. </div>
  392. </div>