0
0

daily.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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="daily" 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">
  16. <span class="input-group-btn">
  17. <button class="btn-sm btn-primary" type="submit" ><i class="fa fa-search"></i></button>
  18. </span>&nbsp;
  19. <span class="input-group-btn">
  20. <button class="btn-sm btn-warning" type="reset" onclick="empty_search()"><i class="fa fa-undo"></i></button>
  21. </span>
  22. </div>
  23. </form>
  24. </div>
  25. <div class="panel-group">
  26. <div class="panel panel-default">
  27. <div class="panel-heading clearfix">
  28. <div class="btn-group pull-left">
  29. 日常工作统计
  30. </div>
  31. </div>
  32. <div class="panel-body" id="printer">
  33. <table class="table table-bordered">
  34. <thead>
  35. <tr>
  36. <th>ID</th>
  37. <th>任务地点名称</th>
  38. <th>工作记录(数量)</th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. {foreach $list as $k=>$v}
  43. <tr>
  44. <td>{$v['daily_id']}</td>
  45. <td>{$v['title']}</td>
  46. <td>{$v['count']}</td>
  47. </tr>
  48. {/foreach}
  49. </tbody>
  50. </table>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. {/block}
  57. {block name="script"}
  58. <script src="/static/layDate-v5.0.9/laydate.js"></script>
  59. <script src="/static/browser.js"></script>
  60. <script src="/static/jquery.jqprint-0.3.js"></script>
  61. <script>
  62. $(function () {
  63. laydate.render({
  64. elem: '#startTime',
  65. trigger: 'click',
  66. theme: '#148d8f'
  67. });
  68. laydate.render({
  69. elem: '#endTime',
  70. trigger: 'click',
  71. theme: '#148d8f'
  72. });
  73. });
  74. function empty_search(){
  75. window.location.href = 'daily';
  76. }
  77. function printer(){
  78. $('#printer').jqprint();
  79. }
  80. </script>
  81. {/block}