index.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  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. margin-right: 10px;
  97. }
  98. .stat .value {
  99. font-size: 20px;
  100. line-height: 24px;
  101. overflow: hidden;
  102. text-overflow: ellipsis;
  103. font-weight: 500;
  104. }
  105. .stat .name {
  106. overflow: hidden;
  107. text-overflow: ellipsis;
  108. }
  109. .stat.lg .value {
  110. font-size: 26px;
  111. line-height: 28px;
  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. </style>
  127. <div class="panel panel-default panel-intro">
  128. <div class="panel-heading">
  129. {:build_heading(null, false)}
  130. <ul class="nav nav-tabs">
  131. <li class="active"><a href="#one" data-toggle="tab">{:__('Dashboard')}</a></li>
  132. <li><a href="#two" data-toggle="tab">{:__('Custom')}</a></li>
  133. </ul>
  134. </div>
  135. <div class="panel-body">
  136. <div id="myTabContent" class="tab-content">
  137. <div class="tab-pane fade active in" id="one">
  138. <div class="row">
  139. <div class="col-sm-3 col-xs-6">
  140. <div class="sm-st clearfix">
  141. <span class="sm-st-icon st-red"><i class="fa fa-users"></i></span>
  142. <div class="sm-st-info">
  143. <span>{$totaluser}</span>
  144. {:__('Total user')}
  145. </div>
  146. </div>
  147. </div>
  148. <div class="col-sm-3 col-xs-6">
  149. <div class="sm-st clearfix">
  150. <span class="sm-st-icon st-violet"><i class="fa fa-book"></i></span>
  151. <div class="sm-st-info">
  152. <span>{$totalviews}</span>
  153. {:__('Total view')}
  154. </div>
  155. </div>
  156. </div>
  157. <div class="col-sm-3 col-xs-6">
  158. <div class="sm-st clearfix">
  159. <span class="sm-st-icon st-blue"><i class="fa fa-shopping-bag"></i></span>
  160. <div class="sm-st-info">
  161. <span>{$totalorder}</span>
  162. {:__('Total order')}
  163. </div>
  164. </div>
  165. </div>
  166. <div class="col-sm-3 col-xs-6">
  167. <div class="sm-st clearfix">
  168. <span class="sm-st-icon st-green"><i class="fa fa-cny"></i></span>
  169. <div class="sm-st-info">
  170. <span>{$totalorderamount}</span>
  171. {:__('Total order amount')}
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. <div class="row">
  177. <div class="col-lg-8">
  178. <div id="echart" class="btn-refresh" style="height:200px;width:100%;"></div>
  179. </div>
  180. <div class="col-lg-4">
  181. <div class="card sameheight-item stats">
  182. <div class="card-block">
  183. <div class="row row-sm stats-container">
  184. <div class="col-xs-6 stat-col">
  185. <div class="stat-icon"><i class="fa fa-rocket"></i></div>
  186. <div class="stat">
  187. <div class="value"> {$todayusersignup}</div>
  188. <div class="name"> {:__('Today user signup')}</div>
  189. </div>
  190. <div class="progress">
  191. <div class="progress-bar progress-bar-success" style="width: 30%"></div>
  192. </div>
  193. </div>
  194. <div class="col-xs-6 stat-col">
  195. <div class="stat-icon"><i class="fa fa-shopping-cart"></i></div>
  196. <div class="stat">
  197. <div class="value"> {$todayuserlogin}</div>
  198. <div class="name"> {:__('Today user login')}</div>
  199. </div>
  200. <div class="progress">
  201. <div class="progress-bar progress-bar-success" style="width: 25%"></div>
  202. </div>
  203. </div>
  204. <div class="col-xs-6 stat-col">
  205. <div class="stat-icon"><i class="fa fa-line-chart"></i></div>
  206. <div class="stat">
  207. <div class="value"> {$todayorder}</div>
  208. <div class="name"> {:__('Today order')}</div>
  209. </div>
  210. <div class="progress">
  211. <div class="progress-bar progress-bar-success" style="width: 25%"></div>
  212. </div>
  213. </div>
  214. <div class="col-xs-6 stat-col">
  215. <div class="stat-icon"><i class="fa fa-users"></i></div>
  216. <div class="stat">
  217. <div class="value"> {$unsettleorder}</div>
  218. <div class="name"> {:__('Unsettle order')}</div>
  219. </div>
  220. <div class="progress">
  221. <div class="progress-bar progress-bar-success" style="width: 25%"></div>
  222. </div>
  223. </div>
  224. <div class="col-xs-6 stat-col">
  225. <div class="stat-icon"><i class="fa fa-list-alt"></i></div>
  226. <div class="stat">
  227. <div class="value"> {$sevendnu}</div>
  228. <div class="name"> {:__('Seven dnu')}</div>
  229. </div>
  230. <div class="progress">
  231. <div class="progress-bar progress-bar-success" style="width: 25%"></div>
  232. </div>
  233. </div>
  234. <div class="col-xs-6 stat-col">
  235. <div class="stat-icon"><i class="fa fa-dollar"></i></div>
  236. <div class="stat">
  237. <div class="value"> {$sevendau}</div>
  238. <div class="name"> {:__('Seven dau')}</div>
  239. </div>
  240. <div class="progress">
  241. <div class="progress-bar progress-bar-success" style="width: 25%"></div>
  242. </div>
  243. </div>
  244. </div>
  245. </div>
  246. </div>
  247. </div>
  248. </div>
  249. <div class="row" style="margin-top:15px;">
  250. <div class="col-lg-12">
  251. </div>
  252. <div class="col-xs-6 col-md-3">
  253. <div class="panel bg-blue">
  254. <div class="panel-body">
  255. <div class="panel-title">
  256. <span class="label label-success pull-right">{:__('Real time')}</span>
  257. <h5>{:__('Category count')}</h5>
  258. </div>
  259. <div class="panel-content">
  260. <h1 class="no-margins">1234</h1>
  261. <div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i> 1234</div>
  262. <small>{:__('Category count tips')}</small>
  263. </div>
  264. </div>
  265. </div>
  266. </div>
  267. <div class="col-xs-6 col-md-3">
  268. <div class="panel bg-aqua-gradient">
  269. <div class="panel-body">
  270. <div class="ibox-title">
  271. <span class="label label-info pull-right">{:__('Real time')}</span>
  272. <h5>{:__('Attachment count')}</h5>
  273. </div>
  274. <div class="ibox-content">
  275. <h1 class="no-margins">1043</h1>
  276. <div class="stat-percent font-bold text-gray"><i class="fa fa-modx"></i> 2592</div>
  277. <small>{:__('Attachment count tips')}</small>
  278. </div>
  279. </div>
  280. </div>
  281. </div>
  282. <div class="col-xs-6 col-md-3">
  283. <div class="panel bg-purple-gradient">
  284. <div class="panel-body">
  285. <div class="ibox-title">
  286. <span class="label label-primary pull-right">{:__('Real time')}</span>
  287. <h5>{:__('Article count')}</h5>
  288. </div>
  289. <div class="ibox-content">
  290. <div class="row">
  291. <div class="col-md-6">
  292. <h1 class="no-margins">1234</h1>
  293. <div class="font-bold"><i class="fa fa-commenting"></i>
  294. <small>{:__('Comment count')}</small>
  295. </div>
  296. </div>
  297. <div class="col-md-6">
  298. <h1 class="no-margins">6754</h1>
  299. <div class="font-bold"><i class="fa fa-heart"></i>
  300. <small>{:__('Like count')}</small>
  301. </div>
  302. </div>
  303. </div>
  304. </div>
  305. </div>
  306. </div>
  307. </div>
  308. <div class="col-xs-6 col-md-3">
  309. <div class="panel bg-green-gradient">
  310. <div class="panel-body">
  311. <div class="ibox-title">
  312. <span class="label label-primary pull-right">{:__('Real time')}</span>
  313. <h5>{:__('News count')}</h5>
  314. </div>
  315. <div class="ibox-content">
  316. <div class="row">
  317. <div class="col-md-6">
  318. <h1 class="no-margins">5302</h1>
  319. <div class="font-bold"><i class="fa fa-commenting"></i>
  320. <small>{:__('Comment count')}</small>
  321. </div>
  322. </div>
  323. <div class="col-md-6">
  324. <h1 class="no-margins">8205</h1>
  325. <div class="font-bold"><i class="fa fa-user"></i>
  326. <small>{:__('Like count')}</small>
  327. </div>
  328. </div>
  329. </div>
  330. </div>
  331. </div>
  332. </div>
  333. </div>
  334. </div>
  335. </div>
  336. <div class="tab-pane fade" id="two">
  337. <div class="row">
  338. <div class="col-xs-12">
  339. {:__('Custom zone')}
  340. </div>
  341. </div>
  342. </div>
  343. </div>
  344. </div>
  345. </div>
  346. <script>
  347. var Orderdata = {
  348. column: {:json_encode(array_keys($paylist))},
  349. paydata: {:json_encode(array_values($paylist))},
  350. createdata: {:json_encode(array_values($createlist))},
  351. };
  352. </script>