print.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 id="printer">
  8. <div class="form-group">
  9. <label class="col-sm-2 control-label">资产名称: <span>{$info.title}</span> </label>
  10. </div>
  11. <div class="form-group">
  12. <label class="col-sm-2 control-label">规格型号: <span>{$info.spec}</span> </label>
  13. </div>
  14. <div class="form-group" style="margin-left: 20px">
  15. <img src="{:url('Barcode/create')}?code={$info['sn']}" alt="">
  16. </div>
  17. <div class="form-group">
  18. <label class="col-sm-2 control-label"><span style="margin-left: 40px">{$info.sn}</span> </label>
  19. </div>
  20. </div>
  21. <br>
  22. <div class="form-group" style="text-align: center">
  23. <a href="javascript:;" class="btn btn-sm btn-primary" onclick="print()"><i class="glyphicon glyphicon-print"> 打印</i></a>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. {/block}
  30. {block name="script"}
  31. <script src="/static/bootstrap-multiselect/docs/js/jquery-2.1.3.min.js"></script>
  32. <script src="/static/browser.js"></script>
  33. <script src="/static/jquery.jqprint-0.3.js"></script>
  34. <script>
  35. function print(){
  36. $("#printer").jqprint();
  37. }
  38. </script>
  39. {/block}