worker_patrol.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <div class="ibox-title">
  7. <h5>{$meta_title}</h5>
  8. </div>
  9. <style>
  10. #search_form .input-group{
  11. width: 170px;
  12. }
  13. #search_form .btn{
  14. margin-right: 5px;
  15. }
  16. </style>
  17. <div class="alert alert-info">
  18. <form action="{:url('WorkerPatrol')}" method="GET" id='search_form' class="form-inline">
  19. <div class="input-group" style="width: 200px">
  20. <span class="input-group-addon">开始时间</span>
  21. <input class="form-control dialog-datetime" id="startTime" name="start" type="text" data-date-format="yyyy-mm-dd" value="{$month.start}" placeholder="" readonly/>
  22. </div>
  23. <div class="input-group" style="width: 200px">
  24. <span class="input-group-addon">结束时间</span>
  25. <input class="form-control dialog-datetime" id="endTime" name="end" type="text" data-date-format="yyyy-mm-dd" value="{$month.end}" placeholder="" readonly/>
  26. </div>
  27. <div class="input-group">
  28. <span class="input-group-btn">
  29. <button class="btn btn-primary btn-sm" type="submit"><i class="glyphicon glyphicon-search">搜索</i></button>
  30. </span>
  31. <span class="input-group-btn">
  32. <button class="btn btn-default btn-sm" type="reset" onclick="empty_search()"><i class="glyphicon glyphicon-remove">重置</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 style="display: none;" 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. <th>ID</th>
  53. <th>姓名</th>
  54. <th>工作记录</th>
  55. </tr>
  56. </thead>
  57. <tbody>
  58. {foreach $data as $k=>$v}
  59. <tr>
  60. <td>{$v['user_id']}</td>
  61. <td>{$v['nickname']}</td>
  62. <td>{$v['count']}</td>
  63. </tr>
  64. {/foreach}
  65. </tbody>
  66. </table>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. {/block}
  74. {block name="script"}
  75. <script src="/static/echarts.js"></script>
  76. <script src="/static/browser.js"></script>
  77. <script src="/static/layDate-v5.0.9/laydate.js"></script>
  78. <script type="text/javascript">
  79. function empty_search(){
  80. window.location.href = 'WorkerPatrol';
  81. }
  82. $(function () {
  83. laydate.render({
  84. elem: '#startTime',
  85. trigger: 'click' ,
  86. theme:'#284a94'
  87. });
  88. laydate.render({
  89. elem: '#endTime',
  90. trigger: 'click' ,
  91. theme:'#284a94'
  92. });
  93. })
  94. </script>
  95. {/block}