waste_zc.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <style>
  4. .table th{
  5. text-align: center;
  6. background: #ffffff;
  7. }
  8. .table tr{
  9. background: #ffffff;
  10. }
  11. .table td{
  12. text-align: center;
  13. }
  14. </style>
  15. <div class="ibox-content">
  16. <div class="ibox">
  17. <div class="alert">
  18. <form action="wasteZc" method="GET" id='search_form' class="form-inline">
  19. <div class="input-group" style="width: 200px">
  20. <span class="input-group-addon">选择类型</span>
  21. {:widget_view('common/multiselect',['name'=>'type_id','lists' =>$typeList1, 'val' => $type_id])}
  22. </div>
  23. <div class="input-group" style="width: 200px">
  24. <span class="input-group-addon">选择地点</span>
  25. {:widget_view('common/multiselect',['name'=>'addr_id','lists' =>$addressList, 'val' => $addr_id])}
  26. </div>
  27. <div class="input-group">
  28. <span class="input-group-btn">
  29. <button class="btn-sm btn-primary" type="submit" ><i class="fa fa-search"></i></button>
  30. </span>&nbsp;
  31. <span class="input-group-btn">
  32. <button class="btn-sm btn-warning" type="reset" onclick="empty_search()"><i class="fa fa-undo"></i></button>
  33. </span>
  34. </div>
  35. </form>
  36. </div>
  37. <div class="panel-group">
  38. <div class="panel panel-default">
  39. <div class="panel-heading clearfix">
  40. <div class="btn-group pull-left">
  41. 医废暂存量统计
  42. </div>
  43. <div class="btn-group pull-right">
  44. <a href="javascript:;" onclick="printer()" class="btn btn-sm btn btn-primary"><i class="glyphicon glyphicon-print"></i>打印</a>
  45. <a href="javascript:;" onclick="exportExcel()" class="btn btn-success btn-sm"><i class="glyphicon glyphicon-download"></i>导出</a>
  46. </div>
  47. </div>
  48. <div class="panel-body" id="printer">
  49. <table class="table table-bordered">
  50. <thead>
  51. <tr>
  52. {foreach $typeList as $k=>$v}
  53. <th colspan="2">{$v['title']}</th>
  54. {/foreach}
  55. <th rowspan="2">备注</th>
  56. </tr>
  57. <tr>
  58. {foreach $typeList as $k=>$v}
  59. <th>件数/包</th>
  60. <th>重量/kg</th>
  61. {/foreach}
  62. </tr>
  63. </thead>
  64. <tbody>
  65. <tr>
  66. {foreach $data as $k1=>$v1}
  67. <td>{$v1}</td>
  68. {/foreach}
  69. <td></td>
  70. </tr>
  71. </tbody>
  72. </table>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. {/block}
  79. {block name="script"}
  80. <script src="/static/layDate-v5.0.9/laydate.js"></script>
  81. <script src="/static/browser.js"></script>
  82. <script src="/static/jquery.jqprint-0.3.js"></script>
  83. <script>
  84. $(function () {
  85. laydate.render({
  86. elem: '#startTime',
  87. trigger: 'click',
  88. theme: '#284a94',
  89. type:'year'
  90. });
  91. laydate.render({
  92. elem: '#endTime',
  93. trigger: 'click',
  94. theme: '#284a94'
  95. });
  96. });
  97. function empty_search(){
  98. window.location.href = 'wasteZc';
  99. }
  100. function printer(){
  101. $('#printer').jqprint();
  102. }
  103. function exportExcel() {
  104. window.location.href = "wasteZcExport?"+$('#search_form').serialize();
  105. }
  106. </script>
  107. {/block}