stat_memberanalyze_info.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <div style="text-align:right;">
  2. <input type="hidden" id="export_type_{$stat_field}" name="export_type" data-param='{"url":"analyzeinfo?type={$stat_field}&t={$Request.get.t}&exporttype=excel"}' value="excel"/>
  3. <a class="btn btn-mini" href="javascript:void(0);" ds_type="export_btn" data-param='{"type":"{$stat_field}"}'>{$Think.lang.ds_export}Excel</a>
  4. </div>
  5. <table class="ds-default-table">
  6. <thead>
  7. <tr class="thead">
  8. <th>{$Think.lang.statstore_number}</th>
  9. <th class="align-center">{$Think.lang.ds_member_name}</th>
  10. <th class="align-center">{$caption}</th>
  11. </tr>
  12. <tbody id="datatable">
  13. {notempty name="memberlist"}
  14. {foreach name="memberlist" item="v"}
  15. <tr class="hover member">
  16. <td class="w24">{$v.number}</td>
  17. <td class="align-center">{$v.statm_membername}</td>
  18. <td class="w150 align-center">{$v[$stat_field]}</td>
  19. </tr>
  20. {/foreach}
  21. {else /}
  22. <tr class="no_data">
  23. <td colspan="11">{$Think.lang.no_record}</td>
  24. </tr>
  25. {/notempty}
  26. </tbody>
  27. </table>
  28. {$show_page|raw}
  29. <script type="text/javascript">
  30. $(document).ready(function(){
  31. $('#list_{$stat_field}').on('click', '.pagination li a', function() {
  32. $('#list_{$stat_field}').load($(this).attr('href'));
  33. return false;
  34. });
  35. //导出图表
  36. $("[ds_type='export_btn']").on('click',function(){
  37. var data = $(this).attr('data-param');
  38. if(data == undefined || data.length<=0){
  39. layer.alert('{$Think.lang.param_error}');
  40. return false;
  41. }
  42. eval("data = "+data);
  43. var item = $("#export_type_"+data.type);
  44. var type = $(item).val();
  45. if(type == 'excel'){
  46. download_excel(item);
  47. }
  48. });
  49. });
  50. </script>