price.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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.price_instructions1}</li>
  6. <li>{$Think.lang.price_instructions2}</li>
  7. </ul>
  8. </div>
  9. <form method="get" target="_self">
  10. <table class="search-form">
  11. <tr>
  12. <td class="tr">
  13. <div class="fr">
  14. <input type="submit" class="submit" value="{$Think.lang.ds_common_search}" />
  15. </div>
  16. <div class="fr">
  17. <div class="fl" style="margin-right:3px;">
  18. <select name="search_type" id="search_type" class="querySelect">
  19. <option value="day" {$Request.param.search_type == 'day'?'selected':''}>{$Think.lang.day_statistics}</option>
  20. <option value="week" {$Request.param.search_type == 'week'?'selected':''}>{$Think.lang.weekly_statistics}</option>
  21. <option value="month" {$Request.param.search_type == 'month'?'selected':''}>{$Think.lang.monthly_statistics}</option>
  22. </select>
  23. </div>
  24. <div id="searchtype_day" style="display:none;" class="fl">
  25. <input type="text" class="text w70" name="search_time" id="search_time" value="{:date('Y-m-d',$search_arr.day.search_time)}" />
  26. <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>
  27. </div>
  28. <div id="searchtype_week" style="display:none;" class="fl">
  29. <select name="searchweek_year" class="querySelect">
  30. {foreach name="year_arr" item="v"}
  31. <option value="{$key}" {$search_arr.week.current_year == $key ?'selected':''}>{$v}</option>
  32. {/foreach}
  33. </select>
  34. <select name="searchweek_month" class="querySelect">
  35. {foreach name="month_arr" item="v"}
  36. <option value="{$key}" {$search_arr.week.current_month == $key ?'selected':''}>{$v}</option>
  37. {/foreach}
  38. </select>
  39. <select name="searchweek_week" class="querySelect">
  40. {foreach name="week_arr" item="v"}
  41. <option value="{$v.key}" {$search_arr.week.current_week == $v.key?'selected':''}>{$v.val}</option>
  42. {/foreach}
  43. </select>
  44. </div>
  45. <div id="searchtype_month" style="display:none;" class="fl">
  46. <select name="searchmonth_year" class="querySelect">
  47. {foreach name="year_arr" item="v"}
  48. <option value="{$key}" {$search_arr.month.current_year == $key ?'selected':''}>{$v}</option>
  49. {/foreach}
  50. </select>
  51. <select name="searchmonth_month" class="querySelect">
  52. {foreach name="month_arr" item="v"}
  53. <option value="{$key}" {$search_arr.month.current_month == $key ?'selected':''}>{$v}</option>
  54. {/foreach}
  55. </select>
  56. </div>
  57. </div>
  58. <div class="fr">{$Think.lang.classification_goods}&nbsp;<span id="searchgc_td"></span>
  59. <input type="hidden" id="choose_gcid" name="choose_gcid" value="0"/></div>
  60. </td>
  61. </tr>
  62. </table>
  63. </form>
  64. <div class="alert alert-block alert-info">
  65. <strong>{$Think.lang.passenger_unit_price_distribution}</strong>(<a href="{:url('Statisticsgeneral/pricesetting')}" target="_blank">{$Think.lang.set_price_range}</a>)</div>
  66. <table class="dssc-default-table">
  67. <tbody>
  68. <tr id="row_0">
  69. <td class="tl">
  70. {if $stat_json}
  71. <div id="container_guestprice"></div>
  72. {else /}
  73. <div class="tc h50 mt10">{$Think.lang.before_looking_distribution}<a href="{:url('Statisticsgeneral/pricesetting')}" target="_blank">{$Think.lang.set_up_immediately}</a></div>
  74. {/if}
  75. </td>
  76. </tr>
  77. </tbody>
  78. </table>
  79. <script src="{$Think.PLUGINS_SITE_ROOT}/highcharts/highcharts.js"></script>
  80. <script src="{$Think.PLUGINS_SITE_ROOT}/mlselection.js"></script>
  81. <script type="text/javascript">
  82. //展示搜索时间框
  83. function show_searchtime(){
  84. s_type = $("#search_type").val();
  85. $("[id^='searchtype_']").hide();
  86. $("#searchtype_"+s_type).show();
  87. }
  88. $(function(){
  89. //统计数据类型
  90. var s_type = $("#search_type").val();
  91. $('#search_time').datepicker({dateFormat: 'yy-mm-dd'});
  92. show_searchtime();
  93. $("#search_type").change(function(){
  94. show_searchtime();
  95. });
  96. //更新周数组
  97. $("[name='searchweek_month']").change(function(){
  98. var year = $("[name='searchweek_year']").val();
  99. var month = $("[name='searchweek_month']").val();
  100. $("[name='searchweek_week']").html('');
  101. $.getJSON(HOMESITEURL+'/Index/getweekofmonth.html',{y:year,m:month},function(data){
  102. if(data != null){
  103. for(var i = 0; i < data.length; i++) {
  104. $("[name='searchweek_week']").append('<option value="'+data[i].key+'">'+data[i].val+'</option>');
  105. }
  106. }
  107. });
  108. });
  109. {if $stat_json}
  110. $('#container_guestprice').highcharts({$stat_json|raw});
  111. {/if}
  112. //商品分类
  113. init_gcselect({$gc_choose_json|raw},{$gc_json|raw});
  114. });
  115. </script>
  116. {/block}