goods_price.html 6.5 KB

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