print_all.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <style>
  4. table tbody tr td{
  5. text-align: center;
  6. }
  7. </style>
  8. <style type="text/css">
  9. </style>
  10. <div class="row">
  11. <div class="col-sm-12">
  12. <div class="ibox float-e-margins">
  13. <div class="ibox-content">
  14. <div class="panel panel-default">
  15. <div class="panel-body">
  16. <div id="printer" style="border: 1px solid transparent; ">
  17. <h3 style="text-align: center">分餐列表</h3>
  18. <span class="pull-right" style="font-weight: 400;">发饭时间:{$day}</span>
  19. <table class="table table-bordered">
  20. <thead>
  21. <tr>
  22. <th>地址</th>
  23. <th>床号及备注</th>
  24. <th>姓名</th>
  25. <th>手机号</th>
  26. <th>餐别</th>
  27. <th>总价</th>
  28. <th>内容</th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. {foreach $data['list'] as $k=>$v}
  33. <tr>
  34. <td>{$v.address}</td>
  35. <td>{$v.remark}</td>
  36. <td>{$v.name}</td>
  37. <td>{$v.mobile}</td>
  38. <td>{$v.tName}</td>
  39. <td>{$v.price}</td>
  40. <td>{$v.item}</td>
  41. </tr>
  42. {/foreach}
  43. <tr>
  44. <td colspan="7" style="font-size: 20px;font-weight: bold;">
  45. 合计:{$data.total}
  46. </td>
  47. </tr>
  48. </tbody>
  49. </table>
  50. <table style="width: 100%">
  51. <tr>
  52. <td style="width: 50%;padding-left: 30px;">送餐人:</td>
  53. <td style="width: 50%;padding-left: 30px;">接收人:</td>
  54. </tr>
  55. </table>
  56. </div>
  57. <p><br></p>
  58. <div class="text-center">
  59. <button type="button" onclick="print()" class="btn btn-sm btn-primary">打印</button>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. {/block}
  68. {block name="script"}
  69. <script src="/static/browser.js"></script>
  70. <script src="/static/jquery.jqprint-0.3.js"></script>
  71. <script type="text/javascript">
  72. function print(){
  73. $("#printer").jqprint();
  74. }
  75. </script>
  76. {/block}