aftersale_refund.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_stataftersale}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <div class="fixed-empty"></div>
  13. <form method="get" name="formSearch" id="formSearch">
  14. <div class="ds-search-form">
  15. <dl>
  16. <dd>
  17. <select name="search_type" id="search_type" class="querySelect">
  18. <option value="day" {if isset($search_arr.search_type) && $search_arr.search_type == 'day'}selected{/if}>{$Think.lang.search_type_day}</option>
  19. <option value="week" {if isset($search_arr.search_type) && $search_arr.search_type == 'week'}selected{/if}>{$Think.lang.search_type_week}</option>
  20. <option value="month" {if isset($search_arr.search_type) && $search_arr.search_type == 'month'}selected{/if}>{$Think.lang.search_type_month}</option>
  21. </select>
  22. </dd>
  23. <dd id="searchtype_day" style="display:none;">
  24. <input class="txt date" type="text" value="{:date('Y-m-d',$search_arr.day.search_time)}" id="search_time" name="search_time">
  25. </dd>
  26. <dd id="searchtype_week" style="display:none;">
  27. <select name="searchweek_year" class="querySelect">
  28. {foreach name="year_arr" item="v"}
  29. <option value="{$key}" {$search_arr.week.current_year == $key ?'selected':''}>{$v}</option>
  30. {/foreach}
  31. </select>
  32. <select name="searchweek_month" class="querySelect">
  33. {foreach name="month_arr" item="v"}
  34. <option value="{$key}" {$search_arr.week.current_month == $key ?'selected':''}>{$v}</option>
  35. {/foreach}
  36. </select>
  37. <select name="searchweek_week" class="querySelect">
  38. {foreach name="week_arr" item="v"}
  39. <option value="{$v.key}" {$search_arr.week.current_week ?'selected':''}>{$v.val}</option>
  40. {/foreach}
  41. </select>
  42. </dd>
  43. <dd id="searchtype_month" style="display:none;">
  44. <select name="searchmonth_year" class="querySelect">
  45. {foreach name="year_arr" item="v"}
  46. <option value="{$key}" {$search_arr.month.current_year == $key ?'selected':''}>{$v}</option>
  47. {/foreach}
  48. </select>
  49. <select name="searchmonth_month" class="querySelect">
  50. {foreach name="month_arr" item="v"}
  51. <option value="{$key}" {$search_arr.month.current_month == $key ?'selected':''}>{$v}</option>
  52. {/foreach}
  53. </select>
  54. </dd>
  55. </dl>
  56. <div class="btn_group">
  57. <input type='text' style='display:none' name='t' value='{$searchtime}'>
  58. <a href="javascript:void(0);" id="dssubmit" class="btn tooltip" >{$Think.lang.ds_query}</a>
  59. <a href="{:url('Stataftersale/refund')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  60. </div>
  61. </div>
  62. </form>
  63. <div class="explanation" id="explanation">
  64. <div class="title" id="checkZoom">
  65. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  66. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  67. </div>
  68. <ul>
  69. <li>{$Think.lang.stataftersale_refund_help1}</li>
  70. <li>{$Think.lang.stataftersale_refund_help2}</li>
  71. </ul>
  72. </div>
  73. <div id="container" class="w100pre close_float" style="max-height:400px;margin-bottom:20px;"></div>
  74. <div id="statlist" class="w100pre close_float"></div>
  75. </div>
  76. <script src="{$Think.PLUGINS_SITE_ROOT}/highcharts/highcharts.js"></script>
  77. <script src="{$Think.PLUGINS_SITE_ROOT}/statistics.js"></script>
  78. <script src="{$Think.PLUGINS_SITE_ROOT}/jquery.ajaxContent.pack.js" type="text/javascript"></script>
  79. <script>
  80. //展示搜索时间框
  81. function show_searchtime(){
  82. s_type = $("#search_type").val();
  83. $("[id^='searchtype_']").hide();
  84. $("#searchtype_"+s_type).show();
  85. }
  86. $(function () {
  87. //统计数据类型
  88. var s_type = $("#search_type").val();
  89. $('#search_time').datepicker({dateFormat: 'yy-mm-dd'});
  90. show_searchtime();
  91. $("#search_type").change(function(){
  92. show_searchtime();
  93. });
  94. //更新周数组
  95. $("[name='searchweek_month']").change(function(){
  96. var year = $("[name='searchweek_year']").val();
  97. var month = $("[name='searchweek_month']").val();
  98. $("[name='searchweek_week']").html('');
  99. $.getJSON(ADMINSITEURL+'/Common/getweekofmonth',{y:year,m:month},function(data){
  100. if(data != null){
  101. for(var i = 0; i < data.length; i++) {
  102. $("[name='searchweek_week']").append('<option value="'+data[i].key+'">'+data[i].val+'</option>');
  103. }
  104. }
  105. });
  106. });
  107. $('#container').highcharts({$stat_json|raw});
  108. $('#statlist').load(ADMINSITEURL+'/Stataftersale/refundlist?t={$searchtime}');
  109. $('#dssubmit').click(function(){
  110. $('#formSearch').submit();
  111. });
  112. });
  113. </script>