123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- {extend name="common/common2" /}
- {block name="main"}
- <style>
- table tbody tr td{
- text-align: center;
- }
- </style>
- <style type="text/css">
- </style>
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <div class="panel panel-default">
- <div class="panel-body">
- <div id="printer" style="border: 1px solid transparent; ">
- <h3 style="text-align: center">分餐列表</h3>
- <span class="pull-right" style="font-weight: 400;">发饭时间:{$day}</span>
- <table class="table table-bordered">
- <thead>
- <tr>
- <th>地址</th>
- <th>床号及备注</th>
- <th>姓名</th>
- <th>手机号</th>
- <th>餐别</th>
- <th>总价</th>
- <th>内容</th>
- </tr>
- </thead>
- <tbody>
- {foreach $data['list'] as $k=>$v}
- <tr>
- <td>{$v.address}</td>
- <td>{$v.remark}</td>
- <td>{$v.name}</td>
- <td>{$v.mobile}</td>
- <td>{$v.tName}</td>
- <td>{$v.price}</td>
- <td>{$v.item}</td>
- </tr>
- {/foreach}
- <tr>
- <td colspan="7" style="font-size: 20px;font-weight: bold;">
- 合计:{$data.total}
- </td>
- </tr>
- </tbody>
- </table>
- <table style="width: 100%">
- <tr>
- <td style="width: 50%;padding-left: 30px;">送餐人:</td>
- <td style="width: 50%;padding-left: 30px;">接收人:</td>
- </tr>
- </table>
- </div>
- <p><br></p>
- <div class="text-center">
- <button type="button" onclick="print()" class="btn btn-sm btn-primary">打印</button>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script src="/static/browser.js"></script>
- <script src="/static/jquery.jqprint-0.3.js"></script>
- <script type="text/javascript">
- function print(){
- $("#printer").jqprint();
- }
- </script>
- {/block}
|