64cc104dbfdfd3400842f57c3e72a337.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?php /*a:3:{s:67:"/data/web/mall.valimart.net/app/admin/view/statgeneral/general.html";i:1657785098;s:61:"/data/web/mall.valimart.net/app/admin/view/public/header.html";i:1657785098;s:66:"/data/web/mall.valimart.net/app/admin/view/public/admin_items.html";i:1657785098;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?><?php echo htmlentities(lang('system_backend')); ?></title>
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
  10. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
  11. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
  12. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
  13. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  14. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
  15. <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
  16. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
  17. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
  18. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  19. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
  20. <script type="text/javascript">
  21. var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
  22. var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
  23. var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
  24. var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
  25. var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
  26. </script>
  27. </head>
  28. <body>
  29. <div id="append_parent"></div>
  30. <div id="ajaxwaitid"></div>
  31. <div class="page">
  32. <div class="fixed-bar">
  33. <div class="item-title">
  34. <div class="subject">
  35. <h3><?php echo htmlentities(lang('ds_statgeneral')); ?></h3>
  36. <h5></h5>
  37. </div>
  38. <?php if($admin_item): ?>
  39. <ul class="tab-base ds-row">
  40. <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
  41. <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
  42. <?php endforeach; endif; else: echo "" ;endif; ?>
  43. </ul>
  44. <?php endif; ?>
  45. </div>
  46. </div>
  47. <div class="explanation" id="explanation">
  48. <div class="title" id="checkZoom">
  49. <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
  50. <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
  51. </div>
  52. <ul>
  53. <li><?php echo htmlentities(lang('stat_validorder_explain')); ?></li>
  54. </ul>
  55. </div>
  56. <table class="ds-default-table">
  57. <thead class="thead">
  58. <tr class="space">
  59. <th colspan="15"><?php echo htmlentities(date("Y-m-d",!is_numeric($stat_time)? strtotime($stat_time) : $stat_time)); ?><?php echo htmlentities(lang('latest_news')); ?></th>
  60. </tr>
  61. </thead>
  62. <tbody>
  63. <tr>
  64. <td>
  65. <?php echo htmlentities(lang('statstore_orderamount')); ?>&nbsp;<i title="<?php echo htmlentities(lang('statstore_orderamount_tips')); ?>" class="tip iconfont">&#xe66f;</i>
  66. <br><b><?php echo htmlentities($statnew_arr['orderamount']); ?><?php echo htmlentities(lang('ds_yuan')); ?></b>
  67. </td>
  68. <td>
  69. <?php echo htmlentities(lang('membernum')); ?>&nbsp;<i title="<?php echo htmlentities(lang('membernum_tips')); ?>" class="tip iconfont">&#xe66f;</i>
  70. <br><b><?php echo htmlentities($statnew_arr['ordermembernum']); ?></b>
  71. </td>
  72. <td>
  73. <?php echo htmlentities(lang('statstore_ordernum')); ?>&nbsp;<i title="<?php echo htmlentities(lang('statstore_ordernum_tips')); ?>" class="tip iconfont">&#xe66f;</i>
  74. <br><b><?php echo htmlentities($statnew_arr['ordernum']); ?></b>
  75. </td>
  76. <td>
  77. <?php echo htmlentities(lang('goodsnum')); ?>&nbsp;<i title="<?php echo htmlentities(lang('goodsnum_tips')); ?>" class="tip iconfont">&#xe66f;</i>
  78. <br><b><?php echo htmlentities($statnew_arr['ordergoodsnum']); ?></b>
  79. </td>
  80. </tr>
  81. <tr>
  82. <td>
  83. <?php echo htmlentities(lang('average_price')); ?>&nbsp;<i title="<?php echo htmlentities(lang('average_price_tips')); ?>" class="tip iconfont">&#xe66f;</i>
  84. <br><b><?php echo htmlentities($statnew_arr['priceavg']); ?><?php echo htmlentities(lang('ds_yuan')); ?></b>
  85. </td>
  86. <td>
  87. <?php echo htmlentities(lang('average_per_member_price')); ?>&nbsp;<i title="<?php echo htmlentities(lang('average_per_member_price_tips')); ?>" class="tip iconfont">&#xe66f;</i>
  88. <br><b><?php echo htmlentities($statnew_arr['orderavg']); ?></b>
  89. </td>
  90. <td>
  91. <?php echo htmlentities(lang('stat_newmember')); ?>&nbsp;<i title="<?php echo htmlentities(lang('stat_newmember_tips')); ?>" class="tip iconfont">&#xe66f;</i>
  92. <br><b><?php echo htmlentities($statnew_arr['newmember']); ?></b>
  93. </td>
  94. <td>
  95. <?php echo htmlentities(lang('user_total')); ?>&nbsp;<i title="<?php echo htmlentities(lang('user_total_tips')); ?>" class="tip iconfont">&#xe66f;</i>
  96. <br><b><?php echo htmlentities($statnew_arr['membernum']); ?></b>
  97. </td>
  98. </tr>
  99. <tr>
  100. <td>
  101. <?php echo htmlentities(lang('stat_newstore')); ?>&nbsp;<i title="<?php echo htmlentities(lang('stat_newstore_tips')); ?>" class="tip iconfont">&#xe66f;</i>
  102. <br><b><?php echo htmlentities($statnew_arr['newstore']); ?></b></td>
  103. <td>
  104. <?php echo htmlentities(lang('store_total')); ?>&nbsp;<i title="<?php echo htmlentities(lang('store_total_tips')); ?>" class="tip iconfont">&#xe66f;</i>
  105. <br><b><?php echo htmlentities($statnew_arr['storenum']); ?></b></td>
  106. <td>
  107. <?php echo htmlentities(lang('goods_add_total')); ?>&nbsp;<i title="<?php echo htmlentities(lang('goods_add_total_tips')); ?>" class="tip iconfont">&#xe66f;</i>
  108. <br><b><?php echo htmlentities($statnew_arr['newgoods']); ?></b></td>
  109. <td>
  110. <?php echo htmlentities(lang('goods_total')); ?>&nbsp;<i title="<?php echo htmlentities(lang('goods_total_tips')); ?>" class="tip iconfont">&#xe66f;</i>
  111. <br><b><?php echo htmlentities($statnew_arr['goodsnum']); ?></b></td>
  112. </tr>
  113. </tbody>
  114. </table>
  115. <table class="ds-default-table">
  116. <thead class="thead">
  117. <tr class="space">
  118. <th colspan="15"><?php echo htmlentities(date("Y-m-d",!is_numeric($stat_time)? strtotime($stat_time) : $stat_time)); ?><?php echo htmlentities(lang('sale_trend')); ?></th>
  119. </tr>
  120. </thead>
  121. <tbody>
  122. <tr>
  123. <td><div id="container" class="w100pre close_float" style="height:400px"></div></td>
  124. </tr>
  125. </tbody>
  126. </table>
  127. <div style="overflow: hidden;">
  128. <div class="w40pre floatleft">
  129. <table class="ds-default-table">
  130. <thead class="thead">
  131. <tr class="space">
  132. <th colspan="15"><?php echo htmlentities(lang('store_sale_top_30')); ?>&nbsp;<i title="<?php echo htmlentities(lang('store_sale_top_30_tips')); ?>" class="tip iconfont">&#xe66f;</i></th>
  133. </tr>
  134. </thead>
  135. <tbody>
  136. <tr>
  137. <td><?php echo htmlentities(lang('statstore_number')); ?></td>
  138. <td><?php echo htmlentities(lang('ds_store_name')); ?></td>
  139. <td><?php echo htmlentities(lang('statstore_orderamount')); ?></td>
  140. </tr>
  141. <?php if(is_array($storetop30_arr) || $storetop30_arr instanceof \think\Collection || $storetop30_arr instanceof \think\Paginator): if( count($storetop30_arr)==0 ) : echo "" ;else: foreach($storetop30_arr as $key=>$v): ?>
  142. <tr>
  143. <td><?php echo htmlentities($key+1); ?></td>
  144. <td><?php echo htmlentities($v['store_name']); ?></td>
  145. <td><?php echo htmlentities($v['orderamount']); ?></td>
  146. </tr>
  147. <?php endforeach; endif; else: echo "" ;endif; ?>
  148. </tbody>
  149. </table>
  150. </div>
  151. <div class="w50pre floatleft" style="margin-left: 50px;">
  152. <table class="ds-default-table">
  153. <thead class="thead">
  154. <tr class="space">
  155. <th colspan="15"><?php echo htmlentities(lang('goods_sale_top_30')); ?>&nbsp;<i title="<?php echo htmlentities(lang('goods_sale_top_30_tips')); ?>" class="tip iconfont">&#xe66f;</i></th>
  156. </tr>
  157. </thead>
  158. <tbody>
  159. <tr>
  160. <td><?php echo htmlentities(lang('statstore_number')); ?></td>
  161. <td><?php echo htmlentities(lang('ds_goods')); ?></td>
  162. <td><?php echo htmlentities(lang('stat_storesale')); ?></td>
  163. </tr>
  164. <?php if(is_array($goodstop30_arr) || $goodstop30_arr instanceof \think\Collection || $goodstop30_arr instanceof \think\Paginator): if( count($goodstop30_arr)==0 ) : echo "" ;else: foreach($goodstop30_arr as $key=>$v): ?>
  165. <tr>
  166. <td><?php echo htmlentities($key+1); ?></td>
  167. <td class="alignleft"><a href="<?php echo url('home/Goods/index',['goods_id'=>$v['goods_id']]); ?>" target="_blank"><?php echo htmlentities($v['goods_name']); ?></a></td>
  168. <td><?php echo htmlentities($v['ordergoodsnum']); ?></td>
  169. </tr>
  170. <?php endforeach; endif; else: echo "" ;endif; ?>
  171. </tbody>
  172. </table>
  173. </div>
  174. </div>
  175. <div class="close_float"></div>
  176. </div>
  177. </div>
  178. <script>
  179. jQuery.browser={};(function(){jQuery.browser.msie=false; jQuery.browser.version=0;if(navigator.userAgent.match(/MSIE ([0-9]+)./)){ jQuery.browser.msie=true;jQuery.browser.version=RegExp.$1;}})();
  180. </script>
  181. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.poshytip.min.js"></script>
  182. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/highcharts/highcharts.js"></script>
  183. <script>
  184. $(function () {
  185. //Ajax提示
  186. $('.tip').poshytip({
  187. className: 'tip-yellowsimple',
  188. showTimeout: 1,
  189. alignTo: 'target',
  190. alignX: 'center',
  191. alignY: 'top',
  192. offsetY: 5,
  193. allowTipHover: false
  194. });
  195. });
  196. var chart = new Highcharts.Chart('container', <?php echo $stattoday_json; ?>);
  197. </script>