price.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_statindustry}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch" id="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dd id="searchgc_td"></dd>
  16. <input type="hidden" id="choose_gcid" name="choose_gcid" value="0"/>
  17. <dd>
  18. <select name="search_type" id="search_type" class="querySelect">
  19. <option value="day" {if $Request.get.search_type == 'day'}selected{/if}>{$Think.lang.search_type_day}</option>
  20. <option value="week" {if $Request.get.search_type == 'week'}selected{/if}>{$Think.lang.search_type_week}</option>
  21. <option value="month" {if $Request.get.search_type == 'month'}selected{/if}>{$Think.lang.search_type_month}</option>
  22. </select>
  23. </dd>
  24. <dd id="searchtype_day" style="display:none;">
  25. <input class="txt date" type="text" value="{$search_arr.day.search_time|date='Y-m-d'}" id="search_time" name="search_time">
  26. </dd>
  27. <dd id="searchtype_week" style="display:none;">
  28. <select name="searchweek_year" class="querySelect">
  29. {foreach name="year_arr" item="v"}
  30. <option value="{$key}"{if $search_arr.week.current_year == $key} selected{/if}>{$v}</option>
  31. {/foreach}
  32. </select>
  33. <select name="searchweek_month" class="querySelect">
  34. {foreach name="month_arr" item="v"}
  35. <option value="{$key}" {if $search_arr.week.current_month == $key} selected{/if}>{$v}</option>
  36. {/foreach}
  37. </select>
  38. <select name="searchweek_week" class="querySelect">
  39. {foreach name="week_arr" item="v"}
  40. <option value="{$v.key}" {if $search_arr.week.current_week == $v.key}selected{/if}>{$v.val}</option>
  41. {/foreach}
  42. </select>
  43. </dd>
  44. <dd id="searchtype_month" style="display:none;">
  45. <select name="searchmonth_year" class="querySelect">
  46. {foreach name="year_arr" item="v"}
  47. <option value="{$key}" {if $search_arr.month.current_year == $key}selected{/if}>{$v}</option>
  48. {/foreach}
  49. </select>
  50. <select name="searchmonth_month" class="querySelect">
  51. {foreach name="month_arr" item="v"}
  52. <option value="{$key}" {if $search_arr.month.current_month == $key}selected{/if}>{$v}</option>
  53. {/foreach}
  54. </select>
  55. </dd>
  56. </dl>
  57. <div class="btn_group">
  58. <a href="javascript:document.formSearch.submit();" class="btn tooltip" title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  59. <a href="{:url('Statindustry/price')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  60. </div>
  61. </div>
  62. </form>
  63. <div class="explanation" id="explanation">
  64. <div class="title" id="checkZoom">
  65. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  66. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  67. </div>
  68. <ul>
  69. <li>{$Think.lang.stat_validorder_explain}</li>
  70. <li>{$Think.lang.statindustry_price_help1}</li>
  71. <li>{$Think.lang.statindustry_price_help2}</li>
  72. </ul>
  73. </div>
  74. <table class="ds-default-table">
  75. <thead class="thead">
  76. <tr class="space">
  77. <th>{$Think.lang.statindustry_distribution}(<a href="{:url('Statgeneral/orderprange')}" style="font-size:12px; font-weight:normal;">{$Think.lang.statgeneral_setting}</a>)</th>
  78. </tr>
  79. </thead>
  80. <tbody>
  81. {if $goodsnum_stat_json || $orderamount_stat_json}
  82. <tr>
  83. <td>
  84. <div id="container_orderamount" class="w100pre close_float" style="height:400px"></div>
  85. </td>
  86. </tr>
  87. <tr><td></td></tr>
  88. <tr>
  89. <td>
  90. <div id="container_goodsnum" class="w100pre close_float" style="height:400px"></div>
  91. </td>
  92. </tr>
  93. {else /}
  94. <tr>
  95. <td>
  96. <div class="w100pre close_float align-center h36 mt10">{$Think.lang.statindustry_setting_tips}<a href="{:url('Statgeneral/setting')}" style="font-size:12px; font-weight:normal;">{$Think.lang.statgoods_set_now}</a></div>
  97. </td>
  98. </tr>
  99. {/if}
  100. </tbody>
  101. </table>
  102. </div>
  103. <script>
  104. 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;}})();
  105. </script>
  106. <script src="{$Think.PLUGINS_SITE_ROOT}/jquery.poshytip.min.js"></script>
  107. <script src="{$Think.PLUGINS_SITE_ROOT}/mlselection.js"></script>
  108. <script src="{$Think.PLUGINS_SITE_ROOT}/highcharts/highcharts.js"></script>
  109. <script>
  110. //展示搜索时间框
  111. function show_searchtime(){
  112. s_type = $("#search_type").val();
  113. $("[id^='searchtype_']").hide();
  114. $("#searchtype_"+s_type).show();
  115. }
  116. $(function () {
  117. //统计数据类型
  118. var s_type = $("#search_type").val();
  119. $('#search_time').datepicker({dateFormat: 'yy-mm-dd'});
  120. show_searchtime();
  121. $("#search_type").change(function(){
  122. show_searchtime();
  123. });
  124. //更新周数组
  125. $("[name='searchweek_month']").change(function(){
  126. var year = $("[name='searchweek_year']").val();
  127. var month = $("[name='searchweek_month']").val();
  128. $("[name='searchweek_week']").html('');
  129. $.getJSON("{:url('Common/getweekofmonth')}",{y:year,m:month},function(data){
  130. if(data != null){
  131. for(var i = 0; i < data.length; i++) {
  132. $("[name='searchweek_week']").append('<option value="'+data[i].key+'">'+data[i].val+'</option>');
  133. }
  134. }
  135. });
  136. });
  137. //商品分类
  138. init_gcselect({$gc_choose_json|raw},{$gc_json|raw});
  139. $('#container_orderamount').highcharts({$orderamount_stat_json|raw});
  140. $('#container_goodsnum').highcharts({$goodsnum_stat_json|raw});
  141. });
  142. </script>