You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

63 lines
2.0 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="width=device-width" />
  5. <title>CardPrint</title>
  6. @Html.AppendJsFile("/Content/jquery/jquery-1.10.2.min.js", "/Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js")
  7. <script src="/Content/js/qrcode.min.js"></script>
  8. <script src="~/PhonePage/server.js"></script>
  9. <link href="~/Content/cardprint/CardPrint.css" rel="stylesheet" />
  10. <script>
  11. function request(d) {
  12. for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) {
  13. var b = c[a].split("=");
  14. if (b[0] == d)
  15. if ("undefined" == unescape(b[1])) break;
  16. else return unescape(b[1])
  17. }
  18. return ""
  19. };
  20. </script>
  21. </head>
  22. <body style="">
  23. <div id="qrcodeBox" style="text-align:center;margin-top:20px;">
  24. <div class="qrcodeBox" style="display:inline-block">
  25. <div id="qrcode" style="margin:0 auto 5px;"></div>
  26. <div class="qrcodeTxt" style="font-size:12px;"></div>
  27. </div>
  28. </div>
  29. <!--<div id="btnprint" type="button" class="btns" value="打印">打印</div>-->
  30. <script>
  31. //标签打印
  32. var qrcode = new QRCode(document.getElementById("qrcode"), {
  33. width: 130,
  34. height: 130
  35. });
  36. var keyValue = request('keyValue');//二维码
  37. var EmpName = request('EmpName');
  38. $('.qrcodeTxt').html(unescape(EmpName));
  39. $(function () {
  40. var url = currentUrl + '/EducationalAdministration/StuEnrollPhone/Link?EmpNo=' + keyValue;
  41. qrcode.makeCode(url);
  42. //$("#btnprint").on("click", function () {
  43. // AddPrintContent3()
  44. //});
  45. });
  46. // 打印表单
  47. function AddPrintContent3() {
  48. $('#btnprint').css('display', 'none')
  49. window.print();
  50. $('#btnprint').css('display', 'block')
  51. }
  52. </script>
  53. </body>
  54. </html>