area.html 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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.area_instructions2}</li>
  7. <li>{$Think.lang.area_instructions3}</li>
  8. <li>{$Think.lang.area_instructions4}</li>
  9. </ul>
  10. </div>
  11. <form method="get" target="_self">
  12. <table class="search-form">
  13. <tr>
  14. <td class="tr">
  15. <div class="fr">
  16. <input type="submit" class="submit" value="{$Think.lang.ds_common_search}" />
  17. </div>
  18. <div class="fr">
  19. <div class="fl" style="margin-right:3px;">
  20. <select name="search_type" id="search_type" class="querySelect">
  21. <option value="day" {$Request.param.search_type=='day'?'selected':''}>{$Think.lang.day_statistics}</option>
  22. <option value="week" {$Request.param.search_type=='week'?'selected':''}>{$Think.lang.weekly_statistics}</option>
  23. <option value="month" {$Request.param.search_type=='month'?'selected':''}>{$Think.lang.monthly_statistics}</option>
  24. </select>
  25. </div>
  26. <div id="searchtype_day" style="display:none;" class="fl">
  27. <input type="text" class="text w70" name="search_time" id="search_time" value="{:date('Y-m-d',$search_arr.day.search_time)}" />
  28. <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>
  29. </div>
  30. <div id="searchtype_week" style="display:none;" class="fl">
  31. <select name="searchweek_year" class="querySelect">
  32. {foreach name="year_arr" item="v"}
  33. <option value="{$key}" {$search_arr.week.current_year == $key ?'selected':''}>{$v}</option>
  34. {/foreach}
  35. </select>
  36. <select name="searchweek_month" class="querySelect">
  37. {foreach name="month_arr" item="v"}
  38. <option value="{$key}" {$search_arr.week.current_month == $key ?'selected':''}>{$v}</option>
  39. {/foreach}
  40. </select>
  41. <select name="searchweek_week" class="querySelect">
  42. {foreach name="week_arr" item="v"}
  43. <option value="{$v.key}" {$search_arr.week.current_week == $v.key ?'selected':''}>{$v.val}</option>
  44. {/foreach}
  45. </select>
  46. </div>
  47. <div id="searchtype_month" style="display:none;" class="fl">
  48. <select name="searchmonth_year" class="querySelect">
  49. {foreach name="year_arr" item="v"}
  50. <option value="{$key}" {$search_arr.month.current_year == $key ?'selected':''}>{$v}</option>
  51. {/foreach}
  52. </select>
  53. <select name="searchmonth_month" class="querySelect">
  54. {foreach name="month_arr" item="v"}
  55. <option value="{$key}" {$search_arr.month.current_month == $key ?'selected':''}>{$v}</option>
  56. {/foreach}
  57. </select>
  58. </div>
  59. </div>
  60. </td>
  61. </tr>
  62. </table>
  63. </form>
  64. <div id="stat_tabs" class="ui-tabs" style="min-height:500px;padding-top:10px;">
  65. <div class="tabmenu">
  66. <ul class="tab pngFix">
  67. <li><a href="#membernum_div" ds_type="showdata" data-param='{"type":"membernum"}'>{$Think.lang.number_members_placed}</a></li>
  68. <li><a href="#orderamount_div" ds_type="showdata" data-param='{"type":"orderamount"}'>{$Think.lang.place_order_amount}</a></li>
  69. <li><a href="#ordernum_div" ds_type="showdata" data-param='{"type":"ordernum"}'>{$Think.lang.order_quantity}</a></li>
  70. </ul>
  71. </div>
  72. <!-- 下单会员数 -->
  73. <div id="membernum_div" ds_type="datacontainer" class="tc">
  74. {if $stat_json_map}
  75. <div class="stat-map-color">{$Think.lang.high}&nbsp;&nbsp;<span style="background-color: #fd0b07;">&nbsp;</span>
  76. <span style="background-color: #ff9191;">&nbsp;</span><span style="background-color: #f7ba17;">&nbsp;</span><span style="background-color: #fef406;">&nbsp;</span><span style="background-color: #25aae2;">&nbsp;</span>&nbsp;&nbsp;{$Think.lang.low}
  77. <p>{$Think.lang.ranking_interpretation_information}</p>
  78. </div>
  79. <div id="map_membernum" style="width:400px; height:400px; float:left;"></div>
  80. <div id="bar_membernum" style="width:500px; height:400px; float:left;"></div>
  81. {else /}
  82. <div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.there_qualified_data_record}</span></div>
  83. {/if}
  84. </div>
  85. <!-- 下单金额 -->
  86. <div id="orderamount_div" ds_type="datacontainer" class="tc" style="display:none;">
  87. {if $stat_json_map}
  88. <div class="stat-map-color">{$Think.lang.high}&nbsp;&nbsp;<span style="background-color: #fd0b07;">&nbsp;</span><span style="background-color: #ff9191;">&nbsp;</span><span style="background-color: #f7ba17;">&nbsp;</span><span style="background-color: #fef406;">&nbsp;</span><span style="background-color: #25aae2;">&nbsp;</span>&nbsp;&nbsp;{$Think.lang.low}
  89. <p>{$Think.lang.ranking_interpretation_information}</p>
  90. </div>
  91. <div id="map_orderamount" style="width:400px; height:400px; float:left;"></div>
  92. <div id="bar_orderamount" style="width:500px; height:400px; float:left;"></div>
  93. {else /}
  94. <div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.there_qualified_data_record}</span></div>
  95. {/if}
  96. </div>
  97. <!-- 下单量 -->
  98. <div id="ordernum_div" ds_type="datacontainer" class="tc" style="display:none;">
  99. {if $stat_json_map}
  100. <div class="stat-map-color">{$Think.lang.high}&nbsp;&nbsp;<span style="background-color: #fd0b07;">&nbsp;</span><span style="background-color: #ff9191;">&nbsp;</span><span style="background-color: #f7ba17;">&nbsp;</span><span style="background-color: #fef406;">&nbsp;</span><span style="background-color: #25aae2;">&nbsp;</span>&nbsp;&nbsp;{$Think.lang.low}
  101. <p>{$Think.lang.ranking_interpretation_information}</p>
  102. </div>
  103. <div id="map_ordernum" style="width:400px; height:400px; float:left;"></div>
  104. <div id="bar_ordernum" style="width:500px; height:400px; float:left;"></div>
  105. {else /}
  106. <div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.there_qualified_data_record}</span></div>
  107. {/if}
  108. </div>
  109. </div>
  110. <div id="statlist" class=""></div>
  111. <script src="{$Think.PLUGINS_SITE_ROOT}/statistics.js"></script>
  112. <script src="{$Think.PLUGINS_SITE_ROOT}/highcharts/highcharts.js"></script>
  113. <link rel="stylesheet" type="text/css" href="{$Think.PLUGINS_SITE_ROOT}/map/jquery.vector-map.css">
  114. <script src="{$Think.PLUGINS_SITE_ROOT}/map/jquery.vector-map.js"></script>
  115. <script src="{$Think.PLUGINS_SITE_ROOT}/map/china-zh.js"></script>
  116. <script type="text/javascript">
  117. //展示搜索时间框
  118. function show_searchtime(){
  119. s_type = $("#search_type").val();
  120. $("[id^='searchtype_']").hide();
  121. $("#searchtype_"+s_type).show();
  122. }
  123. $(function(){
  124. //切换登录卡
  125. $('#stat_tabs').tabs();
  126. //统计数据类型
  127. var s_type = $("#search_type").val();
  128. $('#search_time').datepicker({dateFormat: 'yy-mm-dd'});
  129. show_searchtime();
  130. $("#search_type").change(function(){
  131. show_searchtime();
  132. });
  133. //更新周数组
  134. $("[name='searchweek_month']").change(function(){
  135. var year = $("[name='searchweek_year']").val();
  136. var month = $("[name='searchweek_month']").val();
  137. $("[name='searchweek_week']").html('');
  138. $.getJSON(HOMESITEURL+'/Index/getweekofmonth.html',{y:year,m:month},function(data){
  139. if(data != null){
  140. for(var i = 0; i < data.length; i++) {
  141. $("[name='searchweek_week']").append('<option value="'+data[i].key+'">'+data[i].val+'</option>');
  142. }
  143. }
  144. });
  145. });
  146. {if $stat_json_map}
  147. getMap({$stat_json_map.membernum|raw},'map_membernum');
  148. getMap({$stat_json_map.orderamount|raw},'map_orderamount');
  149. getMap({$stat_json_map.ordernum|raw},'map_ordernum');
  150. $('#bar_membernum').highcharts({$stat_json_bar.membernum|raw});
  151. $('#bar_orderamount').highcharts({$stat_json_bar.orderamount|raw});
  152. $('#bar_ordernum').highcharts({$stat_json_bar.ordernum|raw});
  153. {/if}
  154. });
  155. </script>
  156. {/block}