bxks.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="ibox-content">
  4. <div class="ibox">
  5. <div class="alert">
  6. <form action="bxks" method="GET" id='search_form' class="form-inline">
  7. <div class="input-group" style="width: 200px">
  8. <span class="input-group-addon">开始时间</span>
  9. <input class="form-control dialog-datetime" id="startTime" name="start" type="text" data-date-format="yyyy-mm-dd" value="{$start}" placeholder="" readonly/>
  10. </div>
  11. <div class="input-group" style="width: 200px">
  12. <span class="input-group-addon">结束时间</span>
  13. <input class="form-control dialog-datetime" id="endTime" name="end" type="text" data-date-format="yyyy-mm-dd" value="{$end}" placeholder="" readonly/>
  14. </div>
  15. <div class="input-group" style="width: 200px">
  16. <input class="form-control" name="title" type="text" value="{$title}" placeholder="科室名称"/>
  17. </div>
  18. <div class="input-group">
  19. <span class="input-group-btn">
  20. <button class="btn-sm btn-primary" type="submit" ><i class="fa fa-search"></i></button>
  21. </span>&nbsp;
  22. <span class="input-group-btn">
  23. <button class="btn-sm btn-warning" type="reset" onclick="empty_search()"><i class="fa fa-undo"></i></button>
  24. </span>
  25. </div>
  26. </form>
  27. </div>
  28. <div class="panel-group">
  29. <div class="panel panel-default">
  30. <div class="panel-heading clearfix">
  31. <div class="btn-group pull-left">
  32. 报修科室统计
  33. </div>
  34. <div class="btn-group pull-right">
  35. <a href="javascript:;" onclick="printer()" class="btn btn-sm btn btn-primary"><i class="glyphicon glyphicon-print"></i>打印</a>
  36. <a href="javascript:;" onclick="exportExcel()" class="btn btn-success btn-sm"><i class="glyphicon glyphicon-download"></i>导出</a>
  37. </div>
  38. </div>
  39. <div class="panel-body" id="printer">
  40. <table class="table table-bordered">
  41. <thead>
  42. <tr>
  43. <th>科室名称</th>
  44. <th>报修订单数量</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. {foreach $data as $k=>$v}
  49. <tr>
  50. <td>{$v['title']}</td>
  51. <td>{$v['num']}</td>
  52. </tr>
  53. {/foreach}
  54. </tbody>
  55. </table>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. {/block}
  62. {block name="script"}
  63. <script src="/static/layDate-v5.0.9/laydate.js"></script>
  64. <script src="/static/browser.js"></script>
  65. <script src="/static/jquery.jqprint-0.3.js"></script>
  66. <script>
  67. $(function () {
  68. laydate.render({
  69. elem: '#startTime',
  70. trigger: 'click',
  71. theme: '#284a94'
  72. });
  73. laydate.render({
  74. elem: '#endTime',
  75. trigger: 'click',
  76. theme: '#284a94'
  77. });
  78. });
  79. function empty_search(){
  80. window.location.href = 'bxks';
  81. }
  82. function printer(){
  83. $('#printer').jqprint();
  84. }
  85. function exportExcel() {
  86. window.location.href = "bxksExport?"+$('#search_form').serialize();
  87. }
  88. </script>
  89. {/block}