aftersale_evalstore.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. <input type="hidden" id="exporttype" name="exporttype" value=""/>
  15. <input type="hidden" id="orderby" name="orderby" value="{$orderby ?$orderby:'avgdesccredit desc'}"/>
  16. <div class="ds-search-form">
  17. <dl>
  18. <dd id="scategory">
  19. <select class="querySelect" name="store_class">
  20. <option value="0">{$Think.lang.ds_please_choose}...</option>
  21. {notempty name="class_list"}
  22. {foreach name="class_list" item="v"}
  23. <option {if $Request.param.store_class == $v.storeclass_id}selected="selected"{/if} value="{$v.storeclass_id}">{$v.storeclass_name}</option>
  24. {/foreach}
  25. {/notempty}
  26. </select>
  27. </dd>
  28. <dd>
  29. {$Think.lang.ds_store_name}<input type="text" name="storename" value="{present name="search_arr.storename"}{$search_arr.storename}{/present}"/>
  30. </dd>
  31. </dl>
  32. <div class="btn_group">
  33. <a href="javascript:void(0);" id="dssubmit" class="btn tooltip" >{$Think.lang.ds_query}</a>
  34. <a href="{:url('Stataftersale/evalstore')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  35. <a class="btn" href="javascript:void(0);" id="export_btn">{$Think.lang.ds_export}Excel</a>
  36. </div>
  37. </div>
  38. </form>
  39. <div class="explanation" id="explanation">
  40. <div class="title" id="checkZoom">
  41. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  42. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  43. </div>
  44. <ul>
  45. <li>{$Think.lang.stataftersale_evalstore_help1}</li>
  46. <li>{$Think.lang.stataftersale_evalstore_help2}</li>
  47. </ul>
  48. </div>
  49. <table class="ds-default-table">
  50. <thead>
  51. <tr class="thead sortbar-array">
  52. <th class="align-center">{$Think.lang.ds_store_name}</th>
  53. <th class="align-center">
  54. <a href="javascript:void(0);" ds_type="orderitem" data-param='{"orderby":"avgdesccredit"}' class="">{$Think.lang.avgdesccredit}<i></i></a>
  55. </th>
  56. <th class="align-center"><a href="javascript:void(0);" ds_type="orderitem" data-param='{"orderby":"avgservicecredit"}' class="">{$Think.lang.avgservicecredit}<i></i></a></th>
  57. <th class="align-center"><a href="javascript:void(0);" ds_type="orderitem" data-param='{"orderby":"avgdeliverycredit"}' class="">{$Think.lang.avgdeliverycredit}<i></i></a></th>
  58. </tr>
  59. </thead>
  60. <tbody id="datatable">
  61. {notempty name="statlist"}
  62. {foreach name="statlist" item="v"}
  63. <tr class="hover">
  64. <td class="align-center">{$v.seval_storename}</td>
  65. <td class="align-center">{$v.avgdesccredit}</td>
  66. <td class="align-center">{$v.avgservicecredit}</td>
  67. <td class="align-center">{$v.avgdeliverycredit}</td>
  68. </tr>
  69. {/foreach}
  70. {else /}
  71. <tr class="no_data">
  72. <td colspan="4">{$Think.lang.no_record}</td>
  73. </tr>
  74. {/notempty}
  75. </tbody>
  76. </table>
  77. {$show_page|raw}
  78. </div>
  79. <script>
  80. $(function () {
  81. $('#dssubmit').click(function(){
  82. $("#exporttype").val('');
  83. $('#formSearch').submit();
  84. });
  85. //导出图表
  86. $("#export_btn").click(function(){
  87. $("#exporttype").val('excel');
  88. $('#formSearch').submit();
  89. });
  90. $("[ds_type='orderitem']").click(function(){
  91. $("#exporttype").val('');
  92. var data_str = $(this).attr('data-param');
  93. eval( "data_str = "+data_str);
  94. if($(this).hasClass('desc')){
  95. $("#orderby").val(data_str.orderby + ' asc');
  96. } else {
  97. $("#orderby").val(data_str.orderby + ' desc');
  98. }
  99. $('#formSearch').submit();
  100. });
  101. });
  102. </script>