123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- {extend name="common/common2" /}
- {block name="main"}
- <style>
- #printer{
- margin: 0 auto;
- width: 400px;
- height: 85%;
- background-color: #fff;
- padding: 10px;
- }
- #printer img{
- width: 100%;
- }
- #printer p{
- /*padding-top: 10px;*/
- text-align: center;
- }
- .ibox-tools{
- margin: 5px 10px;
- float: right;
- }
- .text-center{
- text-align: center;
- }
- </style>
- <div class="ibox-tools">
- <a class="toback" href="{:url('index')}">
- 返回上一页
- </a>
- </div>
- <div id="printer" class="text-center">
- <img src="{:url('Qrcode/qrcode')}?code={$code}" alt="">
- <p>{$info['title']}</p>
- </div>
- <div class="text-center">
- <br>
- <a href="javascript:;" class="btn btn-sm btn-primary" onclick="print()"><i class="glyphicon glyphicon-print"> 打印</i></a>
- </div>
- <script src="/static/bootstrap-multiselect/docs/js/jquery-2.1.3.min.js"></script>
- <script src="/static/browser.js"></script>
- <script src="/static/jquery.jqprint-0.3.js"></script>
- <script>
- function print(){
- $("#printer").jqprint();
- }
- </script>
- {/block}
|