43092e523a060f60d17531e7b519cd71.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <?php /*a:3:{s:75:"/data/web/mall.valimart.net/app/admin/view/statgoods/stat_goods_prange.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_statgoods')); ?></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="fixed-empty"></div>
  48. <form method="get" name="formSearch" id="formSearch">
  49. <div class="ds-search-form">
  50. <dl>
  51. <dd id="searchgc_td"></dd>
  52. <input type="hidden" id="choose_gcid" name="choose_gcid" value="0"/>
  53. <dd>
  54. <select name="search_type" id="search_type" class="querySelect">
  55. <option value="day" <?php if(isset($search_arr['search_type']) && $search_arr['search_type'] == 'day'): ?>selected<?php endif; ?>><?php echo htmlentities(lang('search_type_day')); ?></option>
  56. <option value="week" <?php if(isset($search_arr['search_type']) && $search_arr['search_type'] == 'week'): ?>selected<?php endif; ?>><?php echo htmlentities(lang('search_type_week')); ?></option>
  57. <option value="month" <?php if(isset($search_arr['search_type']) && $search_arr['search_type'] == 'month'): ?>selected<?php endif; ?>><?php echo htmlentities(lang('search_type_month')); ?></option>
  58. </select>
  59. </dd>
  60. <dd id="searchtype_day" style="display:none;">
  61. <input class="txt date" type="text" value="<?php echo date('Y-m-d',$search_arr['day']['search_time']); ?>" id="search_time" name="search_time">
  62. </dd>
  63. <dd id="searchtype_week" style="display:none;">
  64. <select name="searchweek_year" class="querySelect">
  65. <?php if(is_array($year_arr) || $year_arr instanceof \think\Collection || $year_arr instanceof \think\Paginator): if( count($year_arr)==0 ) : echo "" ;else: foreach($year_arr as $key=>$v): ?>
  66. <option value="<?php echo htmlentities($key); ?>" <?php echo $search_arr['week']['current_year']==$key ? 'selected' : ''; ?>><?php echo htmlentities($v); ?></option>
  67. <?php endforeach; endif; else: echo "" ;endif; ?>
  68. </select>
  69. <select name="searchweek_month" class="querySelect">
  70. <?php if(is_array($month_arr) || $month_arr instanceof \think\Collection || $month_arr instanceof \think\Paginator): if( count($month_arr)==0 ) : echo "" ;else: foreach($month_arr as $key=>$v): ?>
  71. <option value="<?php echo htmlentities($key); ?>" <?php echo $search_arr['week']['current_month']==$key ? 'selected' : ''; ?>><?php echo htmlentities($v); ?></option>
  72. <?php endforeach; endif; else: echo "" ;endif; ?>
  73. </select>
  74. <select name="searchweek_week" class="querySelect">
  75. <?php if(is_array($week_arr) || $week_arr instanceof \think\Collection || $week_arr instanceof \think\Paginator): if( count($week_arr)==0 ) : echo "" ;else: foreach($week_arr as $key=>$v): ?>
  76. <option value="<?php echo htmlentities($v['key']); ?>" <?php echo $search_arr['week']['current_week']==$key ? 'selected' : ''; ?>><?php echo htmlentities($v['val']); ?></option>
  77. <?php endforeach; endif; else: echo "" ;endif; ?>
  78. </select>
  79. </dd>
  80. <dd id="searchtype_month" style="display:none;">
  81. <select name="searchmonth_year" class="querySelect">
  82. <?php if(is_array($year_arr) || $year_arr instanceof \think\Collection || $year_arr instanceof \think\Paginator): if( count($year_arr)==0 ) : echo "" ;else: foreach($year_arr as $key=>$v): ?>
  83. <option value="<?php echo htmlentities($key); ?>" <?php echo $search_arr['month']['current_year']==$key ? 'selected' : ''; ?>><?php echo htmlentities($v); ?></option>
  84. <?php endforeach; endif; else: echo "" ;endif; ?>
  85. </select>
  86. <select name="searchmonth_month" class="querySelect">
  87. <?php if(is_array($month_arr) || $month_arr instanceof \think\Collection || $month_arr instanceof \think\Paginator): if( count($month_arr)==0 ) : echo "" ;else: foreach($month_arr as $key=>$v): ?>
  88. <option value="<?php echo htmlentities($key); ?>" <?php echo $search_arr['month']['current_month']==$key ? 'selected' : ''; ?>><?php echo htmlentities($v); ?></option>
  89. <?php endforeach; endif; else: echo "" ;endif; ?>
  90. </select>
  91. </dd>
  92. </dl>
  93. <div class="btn_group">
  94. <a href="javascript:void(0);" id="dssubmit" class="btn tooltip"><?php echo htmlentities(lang('ds_query')); ?></a>
  95. <a href="<?php echo url('Statgoods/pricerange'); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
  96. </div>
  97. </div>
  98. </form>
  99. <div class="explanation" id="explanation">
  100. <div class="title" id="checkZoom">
  101. <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
  102. <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
  103. </div>
  104. <ul>
  105. <li><?php echo htmlentities(lang('stat_validorder_explain')); ?></li>
  106. <li><?php echo htmlentities(lang('statgoods_stat_goods_prange_help1')); ?></li>
  107. <li><?php echo htmlentities(lang('statgoods_stat_goods_prange_help2')); ?></li>
  108. </ul>
  109. </div>
  110. <table class="ds-default-table">
  111. <thead class="thead">
  112. <tr class="space">
  113. <th colspan="15"><?php echo htmlentities(lang('statgoods_price_distribution')); ?>(<a href="<?php echo url('Statgeneral/setting'); ?>" style="font-size:12px; font-weight:normal;"><?php echo htmlentities(lang('statgeneral_setting')); ?></a>)</th>
  114. </tr>
  115. </thead>
  116. <tbody>
  117. <tr>
  118. <td>
  119. <?php if($pricerange_statjson): ?>
  120. <div id="container_pricerange" class="w100pre close_float" style="height:400px"></div>
  121. <?php else: ?>
  122. <div class="w100pre close_float align-center h36 mt10"><?php echo htmlentities(lang('statgeneral_setting_tips')); ?>
  123. <a href="<?php echo url('Statgeneral/setting'); ?>" style="font-size:12px; font-weight:normal;"><?php echo htmlentities(lang('statgoods_set_now')); ?></a>
  124. </div>
  125. <?php endif; ?>
  126. </td>
  127. </tr>
  128. </tbody>
  129. </table>
  130. </div>
  131. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/highcharts/highcharts.js"></script>
  132. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/statistics.js"></script>
  133. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/mlselection.js"></script>
  134. <script>
  135. //展示搜索时间框
  136. function show_searchtime(){
  137. s_type = $("#search_type").val();
  138. $("[id^='searchtype_']").hide();
  139. $("#searchtype_"+s_type).show();
  140. }
  141. $(function () {
  142. //统计数据类型
  143. var s_type = $("#search_type").val();
  144. $('#search_time').datepicker({dateFormat: 'yy-mm-dd'});
  145. show_searchtime();
  146. $("#search_type").change(function(){
  147. show_searchtime();
  148. });
  149. //更新周数组
  150. $("[name='searchweek_month']").change(function(){
  151. var year = $("[name='searchweek_year']").val();
  152. var month = $("[name='searchweek_month']").val();
  153. $("[name='searchweek_week']").html('');
  154. $.getJSON(ADMINSITEURL+'/Common/getweekofmonth.html',{y:year,m:month},function(data){
  155. if(data != null){
  156. for(var i = 0; i < data.length; i++) {
  157. $("[name='searchweek_week']").append('<option value="'+data[i].key+'">'+data[i].val+'</option>');
  158. }
  159. }
  160. });
  161. });
  162. $('#container_pricerange').highcharts(<?php echo $pricerange_statjson; ?>);
  163. $('#dssubmit').click(function(){
  164. $('#formSearch').submit();
  165. });
  166. //商品分类
  167. init_gcselect(<?php echo $gc_choose_json; ?>,<?php echo $gc_json; ?>);
  168. });
  169. </script>