qrcode.html 978 B

123456789101112131415161718192021222324252627282930
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <div class="ibox-content">
  7. <div class="text-center">
  8. <div id="printer" class="text-center">
  9. <img src="{:url('Qrcode/qrcode',['code'=>$code,'type'=>1])}" width="300" alt="">
  10. <p>{$info.title}</p>
  11. <p><br></p>
  12. </div>
  13. <a href="javascript:;" class="btn btn-sm btn-primary" onclick="print()">
  14. <i class="glyphicon glyphicon-print">打印</i>
  15. </a>
  16. </div>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. {/block}
  22. {block name="script"}
  23. <script src="/static/browser.js"></script>
  24. <script src="/static/jquery.jqprint-0.3.js"></script>
  25. <script>
  26. function print(){
  27. $("#printer").jqprint();
  28. }
  29. </script>
  30. {/block}