index.html 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_main"}
  3. <div class="alert mt10">
  4. <ul class="mt5">
  5. <li>{$Think.lang.area_instructions1}</li>
  6. <li>{$Think.lang.statisticssale_instructions2}</li>
  7. <li>{$Think.lang.statisticssale_instructions3}</li>
  8. </ul>
  9. </div>
  10. <form method="get" target="_self">
  11. <table class="search-form">
  12. <tr>
  13. <td class="tr">
  14. <div class="fr">
  15. <input type="submit" class="submit" value="{$Think.lang.ds_common_search}" />
  16. </div>
  17. <div class="fr">&nbsp;
  18. <select name="order_type" id="order_type" class="querySelect">
  19. <option value="" {$Request.get.order_type == ''?'selected':''}>{$Think.lang.ds_please_choose}</option>
  20. <option value="{$Think.ORDER_STATE_NEW}" {$Request.get.order_type ==$Think.ORDER_STATE_NEW ?'selected':''}>{$Think.lang.waiting_payment}</option>
  21. <option value="{$Think.ORDER_STATE_PAY}" {$Request.get.order_type ==$Think.ORDER_STATE_PAY ?'selected':''}>{$Think.lang.waiting_delivery}</option>
  22. <option value="{$Think.ORDER_STATE_SEND}" {$Request.get.order_type ==$Think.ORDER_STATE_SEND ?'selected':''}>{$Think.lang.waiting_receiving}</option>
  23. <option value="{$Think.ORDER_STATE_SUCCESS}" {$Request.get.order_type ==$Think.ORDER_STATE_SUCCESS ?'selected':''}>{$Think.lang.transaction_completed}</option>
  24. <option value="{$Think.ORDER_STATE_CANCEL}" {$Request.get.order_type ==='0' ?'selected':''}>{$Think.lang.canceled}</option>
  25. </select>
  26. </div>
  27. <div class="fr">
  28. <div class="fl" style="margin-right:3px;">
  29. <select name="search_type" id="search_type" class="querySelect">
  30. <option value="day" {$Request.param.search_type== 'day'?'selected':''}>{$Think.lang.day_statistics}</option>
  31. <option value="week" {$Request.param.search_type== 'week'?'selected':''}>{$Think.lang.weekly_statistics}</option>
  32. <option value="month" {$Request.param.search_type== 'month'?'selected':''}>{$Think.lang.monthly_statistics}</option>
  33. </select>
  34. </div>
  35. <div id="searchtype_day" style="display:none;" class="fl">
  36. <input type="text" class="text w70" name="search_time" id="search_time" value="{:date('Y-m-d',$search_arr.day.search_time)}" />
  37. <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>
  38. </div>
  39. <div id="searchtype_week" style="display:none;" class="fl">
  40. <select name="searchweek_year" class="querySelect">
  41. {foreach name="year_arr" item="v"}
  42. <option value="{$key}" {$search_arr.week.current_year == $key ?'selected':''}>{$v}</option>
  43. {/foreach}
  44. </select>
  45. <select name="searchweek_month" class="querySelect">
  46. {foreach name="month_arr" item="v"}
  47. <option value="{$key}" {$search_arr.week.current_month == $key ?'selected':''}>{$v}</option>
  48. {/foreach}
  49. </select>
  50. <select name="searchweek_week" class="querySelect">
  51. {foreach name="week_arr" item="v"}
  52. <option value="{$v.key}" {$search_arr.week.current_week == $v.key ?'selected':''}>{$v.val}</option>
  53. {/foreach}
  54. </select>
  55. </div>
  56. <div id="searchtype_month" style="display:none;" class="fl">
  57. <select name="searchmonth_year" class="querySelect">
  58. {foreach name="year_arr" item="v"}
  59. <option value="{$key}" {$search_arr.month.current_year == $key ?'selected':''}>{$v}</option>
  60. {/foreach}
  61. </select>
  62. <select name="searchmonth_month" class="querySelect">
  63. {foreach name="month_arr" item="v"}
  64. <option value="{$key}" {$search_arr.month.current_month == $key?'selected':''}>{$v}</option>
  65. {/foreach}
  66. </select>
  67. </div>
  68. </div>
  69. </td>
  70. </tr>
  71. </table>
  72. </form>
  73. <div class="alert alert-info mt10" style="clear:both;">
  74. <ul class="mt5">
  75. <li>
  76. <span class="w200 fl h30" style="display:block;">
  77. <i title="{$Think.lang.order_amount_search_terms}" class="tip iconfont">&#xe649;</i>
  78. {$Think.lang.total_order_money}:<strong>{$statcount_arr.orderamount}{$Think.lang.ds_yuan}</strong>
  79. </span>
  80. <span class="w210 fl h30" style="display:block;">
  81. <i title="{$Think.lang.number_orders_search_terms}" class="tip iconfont">&#xe649;</i>
  82. {$Think.lang.total_order_number}:<strong>{$statcount_arr.ordernum}</strong>
  83. </span>
  84. </li>
  85. </ul>
  86. <div style="clear:both;"></div>
  87. </div>
  88. <div id="stat_tabs" class="ui-tabs" style="min-height:500px;padding-top:10px;">
  89. <div class="tabmenu">
  90. <ul class="tab pngFix">
  91. <li><a href="#orderamount_div" ds_type="showdata" data-param='{"type":"orderamount"}'>{$Think.lang.place_order_amount}</a></li>
  92. <li><a href="#ordernum_div" ds_type="showdata" data-param='{"type":"ordernum"}'>{$Think.lang.order_quantity}</a></li>
  93. </ul>
  94. </div>
  95. <!-- 下单金额 -->
  96. <div id="orderamount_div" style="width:930px;"></div>
  97. <!-- 下单量 -->
  98. <div id="ordernum_div" style="width:930px;"></div>
  99. </div>
  100. <div id="statlist" class="">
  101. </div>
  102. <script>
  103. 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;}})();
  104. </script>
  105. <script src="{$Think.PLUGINS_SITE_ROOT}/jquery.poshytip.min.js"></script>
  106. <script src="{$Think.PLUGINS_SITE_ROOT}/highcharts/highcharts.js"></script>
  107. <script type="text/javascript">
  108. //展示搜索时间框
  109. function show_searchtime(){
  110. s_type = $("#search_type").val();
  111. $("[id^='searchtype_']").hide();
  112. $("#searchtype_"+s_type).show();
  113. }
  114. $(function(){
  115. //Ajax提示
  116. $('.tip').poshytip({
  117. className: 'tip-yellowsimple',
  118. showTimeout: 1,
  119. alignTo: 'target',
  120. alignX: 'center',
  121. alignY: 'top',
  122. offsetY: 5,
  123. allowTipHover: false
  124. });
  125. //切换登录卡
  126. $('#stat_tabs').tabs();
  127. //统计数据类型
  128. var s_type = $("#search_type").val();
  129. $('#search_time').datepicker({dateFormat: 'yy-mm-dd'});
  130. show_searchtime();
  131. $("#search_type").change(function(){
  132. show_searchtime();
  133. });
  134. //更新周数组
  135. $("[name='searchweek_month']").change(function(){
  136. var year = $("[name='searchweek_year']").val();
  137. var month = $("[name='searchweek_month']").val();
  138. $("[name='searchweek_week']").html('');
  139. $.getJSON(HOMESITEURL+'/Index/getweekofmonth.html',{y:year,m:month},function(data){
  140. if(data != null){
  141. for(var i = 0; i < data.length; i++) {
  142. $("[name='searchweek_week']").append('<option value="'+data[i].key+'">'+data[i].val+'</option>');
  143. }
  144. }
  145. });
  146. });
  147. $('#ordernum_div').highcharts({$stat_json.ordernum|raw});
  148. $('#orderamount_div').highcharts({$stat_json.orderamount|raw});
  149. $('#statlist').load(HOMESITEURL+'/Statisticssale/salelist.html?t={$searchtime}&order_type={$Request.param.order_type}');
  150. });
  151. </script>
  152. {/block}