service_count.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <style>
  4. .ibox-title h5{
  5. margin-top: 6px;
  6. }
  7. </style>
  8. <div class="row">
  9. <div class="col-sm-12">
  10. <div class="ibox float-e-margins">
  11. <div class="ibox-title" style="min-height:58px">
  12. <h5>{$meta_title}</h5>
  13. <div class="col-xs-11" style="text-align: right;">
  14. <form class="form-inline" id="form-search" action="{:url('ServiceCount')}">
  15. <input type="hidden" name="type" value="{$type}">
  16. <div class="input-group" style="width: 250px">
  17. <span class="input-group-addon">开始时间</span>
  18. <input class="form-control dialog-datetime" id="startTime" name="start" type="text" data-date-format="yyyy-mm-dd" value="{$start}" placeholder="" readonly style="width: 160px"/>
  19. </div>
  20. <div class="input-group" style="width: 250px">
  21. <span class="input-group-addon">结束时间</span>
  22. <input class="form-control dialog-datetime" id="endTime" name="end" type="text" data-date-format="yyyy-mm-dd" value="{$end}" placeholder="" readonly style="width: 160px"/>
  23. </div>
  24. <div class="input-group">
  25. <span class="input-group-btn">
  26. <button class="btn-sm btn-primary" type="submit" id ="search-btn" ><i class="fa fa-search"></i></button>
  27. </span>
  28. </div>
  29. </form>
  30. </div>
  31. </div>
  32. <div class="panel-group">
  33. <div class="panel panel-default">
  34. {if ($type == 1) or ($type ==2)}
  35. <div class="panel-body">
  36. <table class="table table-bordered">
  37. <thead>
  38. <tr>
  39. <th>名称</th>
  40. {if isset($cateList)}
  41. {foreach $cateList as $k=>$v}
  42. <th>{$v.title} (预约人数)</th>
  43. {/foreach}
  44. {/if}
  45. </tr>
  46. </thead>
  47. {foreach $data as $k=>$v}
  48. <tbody>
  49. <tr>
  50. <td>{$v['title']}</td>
  51. {if isset($v['list'])}
  52. {foreach $v['list'] as $kk=>$vv}
  53. <td>{$vv}</td>
  54. {/foreach}
  55. {/if}
  56. </tr>
  57. </tbody>
  58. {/foreach}
  59. <tr>
  60. <td><strong>合计</strong></td>
  61. {foreach $count as $k=>$v}
  62. <td>{$v.count}</td>
  63. {/foreach}
  64. </tr>
  65. </table>
  66. </div>
  67. {elseif($type == 3)}
  68. <div class="panel-body" id="printer">
  69. <table class="table table-bordered">
  70. <thead>
  71. <tr>
  72. <th>#</th>
  73. <th>预约总人数</th>
  74. </tr>
  75. </thead>
  76. <tbody>
  77. <tr>
  78. <td>{$data['k']}</td>
  79. <td>{$data['count']}</td>
  80. </tr>
  81. </tbody>
  82. </table>
  83. </div>
  84. {elseif($type == 4 || $type == 5)}
  85. <div class="panel-body" id="printer">
  86. <table class="table table-bordered">
  87. <thead>
  88. <tr>
  89. <th>#</th>
  90. <th>名称</th>
  91. <th>预约总人数</th>
  92. </tr>
  93. </thead>
  94. {foreach $data as $k=>$v}
  95. <tbody>
  96. <tr>
  97. <td>{$v['id']}</td>
  98. <td>{$v['title']}</td>
  99. <td>{$v['count']}</td>
  100. </tr>
  101. </tbody>
  102. {/foreach}
  103. <tr>
  104. <td><strong>合计</strong></td>
  105. <td></td>
  106. <td>{$countNum}</td>
  107. </tr>
  108. </table>
  109. </div>
  110. {/if}
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. {/block}
  117. {block name="script"}
  118. <script src="/static/layDate-v5.0.9/laydate.js"></script>
  119. <script>
  120. //日期时间选择器
  121. laydate.render({
  122. elem: '#startTime',
  123. type: 'datetime',
  124. trigger: 'click' ,
  125. });
  126. laydate.render({
  127. elem: '#endTime',
  128. type: 'datetime',
  129. trigger: 'click' ,
  130. });
  131. </script>
  132. {/block}