org_user.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="ibox-content">
  4. <div class="ibox">
  5. <style>
  6. #search_form .input-group{
  7. width: 170px;
  8. }
  9. #search_form .btn{
  10. margin-right: 5px;
  11. }
  12. </style>
  13. <div class="panel-group">
  14. <div class="panel panel-default">
  15. <div class="panel-heading clearfix">
  16. <div class="btn-group pull-left">
  17. 各项目人员统计
  18. </div>
  19. <div class="btn-group pull-right">
  20. <a href="javascript:;" onclick="printer()" class="btn btn-sm btn btn-primary"><i class="glyphicon glyphicon-print"></i>打印</a>
  21. <a href="javascript:;" onclick="exportExcel()" class="btn btn-success btn-sm"><i class="glyphicon glyphicon-download"></i>导出</a>
  22. </div>
  23. </div>
  24. <div class="panel-body" id="printer">
  25. <table class="table table-bordered">
  26. <thead>
  27. <tr>
  28. <th>项目</th>
  29. <th>总数</th>
  30. <th>客户</th>
  31. <th>综合</th>
  32. <th>保安</th>
  33. <th>运送</th>
  34. <th>维修</th>
  35. <th>保洁</th>
  36. <th>调度</th>
  37. <th>管理层</th>
  38. </tr>
  39. </thead>
  40. <tbody>
  41. {foreach $list as $k=>$v}
  42. <tr>
  43. <td>{$v['name']}</td>
  44. <td>{$v['count']}</td>
  45. <td>{if isset($v['user'][0])}{$v['user'][0]['value']}{else}0{/if}</td>
  46. <td>{if isset($v['user'][1])}{$v['user'][1]['value']}{else}0{/if}</td>
  47. <td>{if isset($v['user'][2])}{$v['user'][2]['value']}{else}0{/if}</td>
  48. <td>{if isset($v['user'][3])}{$v['user'][3]['value']}{else}0{/if}</td>
  49. <td>{if isset($v['user'][4])}{$v['user'][4]['value']}{else}0{/if}</td>
  50. <td>{if isset($v['user'][5])}{$v['user'][5]['value']}{else}0{/if}</td>
  51. <td>{if isset($v['user'][6])}{$v['user'][6]['value']}{else}0{/if}</td>
  52. <td>{if isset($v['user'][7])}{$v['user'][7]['value']}{else}0{/if}</td>
  53. </tr>
  54. {/foreach}
  55. </tbody>
  56. </table>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. {/block}
  63. {block name="script"}
  64. <script src="/static/layDate-v5.0.9/laydate.js"></script>
  65. <script src="/static/browser.js"></script>
  66. <script src="/static/jquery.jqprint-0.3.js"></script>
  67. <script>
  68. function printer(){
  69. $('#printer').jqprint();
  70. }
  71. function exportExcel() {
  72. window.location.href = "orgUserExport";
  73. }
  74. </script>
  75. {/block}