123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- {extend name="common/common2" /}
- {block name="main"}
- <style>
- table tbody tr td{
- text-align: center;
- }
- </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">
- <table class="table table-bordered" id="visaReport" style="background: #fff;">
- <tr>
- <td colspan="4" class="text-center">订单号{$info.sn}</td>
- </tr>
- <tr>
- <td colspan="2">下单人:{$info.name}({$info.mobile})</td>
- <td colspan="2">下单时间:{$info.pay_time}</td>
- </tr>
- <tr>
- <td colspan="4">下单地址:{$info.address}</td>
- </tr>
- <tr>
- <td class="text-center">序号</td>
- <td class="text-center">类型</td>
- <td class="text-center">购买物品</td>
- <td class="text-center">购买数量</td>
- </tr>
- {foreach $info.item as $k=>$v}
- <tr>
- <td class="text-center">
- {if $k<10}
- 0{$k}
- {else}
- {$k}
- {/if}
- </td>
- <td>
- <span class="label" style="color: white;background:{$v['color']}"> {$v.dinner_type_name}
- </span>
- </td>
- <td>
- {$v.dinner_name}
- </td>
- <td>
- {$v.num}
- </td>
- </tr>
- {/foreach}
- <tr>
- <td class="text-right" colspan="3">合计:</td>
- <td>{$info.price}</td>
- </tr>
- </table>
- <div class="form-group">
- <div class="col-sm-6 col-sm-offset-2">
- <button class="btn btn-primary" onclick="visa_report()" type="button">打 印</button>
- </div>
- </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>
- function visa_report()
- {
- $("#visaReport").jqprint({});
- }
- </script>
- {/block}
|