index.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_main"}
  3. <div class="alert mt10" style="clear:both;">
  4. <ul class="mt5">
  5. <li>{$Think.lang.statisticsindustry_instructions}</li>
  6. </ul>
  7. </div>
  8. <form method="get" target="_self">
  9. <table class="search-form">
  10. <tr>
  11. <td class="tr">
  12. <div class="fr">
  13. <input type="submit" class="submit" value="{$Think.lang.ds_common_search}" />
  14. </div>
  15. <div class="fr">
  16. <div class="fl" style="margin-right:3px;">
  17. <select name="search_type" id="search_type" class="querySelect">
  18. <option value="day" {$Request.param.search_type == 'day'?'selected':''}>{$Think.lang.day_statistics}</option>
  19. <option value="week" {$Request.param.search_type == 'week'?'selected':''}>{$Think.lang.weekly_statistics}</option>
  20. <option value="month" {$Request.param.search_type == 'month'?'selected':''}>{$Think.lang.monthly_statistics}</option>
  21. </select>
  22. </div>
  23. <div id="searchtype_day" style="display:none;" class="fl">
  24. <input type="text" class="text w70" name="search_time" id="search_time" value="{:date('Y-m-d',$search_arr.day.search_time)}" />
  25. <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>
  26. </div>
  27. <div id="searchtype_week" style="display:none;" class="fl">
  28. <select name="searchweek_year" class="querySelect">
  29. {foreach name="year_arr" item="v"}
  30. <option value="{$key}" {$search_arr.week.current_year == $key ?'selected':''}>{$v}</option>
  31. {/foreach}
  32. </select>
  33. <select name="searchweek_month" class="querySelect">
  34. {foreach name="month_arr" item="v"}
  35. <option value="{$key}" {$search_arr.week.current_month == $key ?'selected':''}>{$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}" {$search_arr.week.current_week == $v.key?'selected':''}>{$v.val}</option>
  41. {/foreach}
  42. </select>
  43. </div>
  44. <div id="searchtype_month" style="display:none;" class="fl">
  45. <select name="searchmonth_year" class="querySelect">
  46. {foreach name="year_arr" item="v"}
  47. <option value="{$key}" {$search_arr.month.current_year == $key ?'selected':''}>{$v}</option>
  48. {/foreach}
  49. </select>
  50. <select name="searchmonth_month" class="querySelect">
  51. {foreach name="month_arr" item="v"}
  52. <option value="{$key}" {$search_arr.month.current_month == $key ?'selected':''}>{$v}</option>
  53. {/foreach}
  54. </select>
  55. </div>
  56. </div>
  57. <div class="fr">{$Think.lang.classification_goods}&nbsp;<span id="searchgc_td"></span>
  58. <input type="hidden" id="choose_gcid" name="choose_gcid" value="0"/></div>
  59. </td>
  60. </tr>
  61. </table>
  62. </form>
  63. <table id="pricerang_table" class="dssc-default-table">
  64. <tbody>
  65. <tr id="row_0">
  66. <td class="tl">
  67. <div id="container"></div>
  68. </td>
  69. </tr>
  70. </tbody>
  71. </table>
  72. <table class="dssc-default-table">
  73. <thead>
  74. <tr class="sortbar-array">
  75. <th class="w90">{$Think.lang.serial_number}</th>
  76. <th>{$Think.lang.commodity_name}</th>
  77. <th>{$Think.lang.order_quantity}</th>
  78. </tr>
  79. </thead>
  80. <tbody>
  81. {notempty name="goods_list"}
  82. {foreach name="goods_list" item="v"}
  83. <tr class="bd-line">
  84. <td class="w90">{$key+1}</td>
  85. <td class="tl">
  86. <a href="{:url('Goods/index',['goods_id'=>$v.goods_id])}" target="_blank">{$v.goods_name}</a></td>
  87. <td>{$v.goodsnum}</td>
  88. </tr>
  89. {/foreach}
  90. {else /}
  91. <tr>
  92. <td colspan="20" class="norecord">
  93. <div class="warning-option"><i class="iconfont">&#xe64c;</i>
  94. <span>{$Think.lang.no_record}</span></div></td>
  95. </tr>
  96. {/notempty}
  97. </tbody>
  98. {notempty name="goodslist"}
  99. <tfoot>
  100. <tr>
  101. <td colspan="20">
  102. <div class="pagination">{$show_page|raw}</div>
  103. </td>
  104. </tr>
  105. </tfoot>
  106. {/notempty}
  107. </table>
  108. <div class="h40">&nbsp;
  109. </div>
  110. <script src="{$Think.PLUGINS_SITE_ROOT}/highcharts/highcharts.js"></script>
  111. <script src="{$Think.PLUGINS_SITE_ROOT}/mlselection.js"></script>
  112. <script type="text/javascript">
  113. //展示搜索时间框
  114. function show_searchtime(){
  115. s_type = $("#search_type").val();
  116. $("[id^='searchtype_']").hide();
  117. $("#searchtype_"+s_type).show();
  118. }
  119. $(function(){
  120. //统计数据类型
  121. var s_type = $("#search_type").val();
  122. $('#search_time').datepicker({dateFormat: 'yy-mm-dd'});
  123. show_searchtime();
  124. $("#search_type").change(function(){
  125. show_searchtime();
  126. });
  127. //更新周数组
  128. $("[name='searchweek_month']").change(function(){
  129. var year = $("[name='searchweek_year']").val();
  130. var month = $("[name='searchweek_month']").val();
  131. $("[name='searchweek_week']").html('');
  132. $.getJSON(HOMESITEURL+'/Index/getweekofmonth.html',{y:year,m:month},function(data){
  133. if(data != null){
  134. for(var i = 0; i < data.length; i++) {
  135. $("[name='searchweek_week']").append('<option value="'+data[i].key+'">'+data[i].val+'</option>');
  136. }
  137. }
  138. });
  139. });
  140. $('#container').highcharts({$goods_statjson|raw});
  141. //商品分类
  142. init_gcselect({$gc_choose_json|raw},{$gc_json|raw});
  143. });
  144. </script>
  145. {/block}