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.
 
 
 
 
 
 

61 lines
1.9 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. @Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuVolunteerPhone/server.js")
  8. <script src="/Content/js/qrcode.min.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: 80,
  34. height: 80
  35. });
  36. //var EmpName = request('EmpName');
  37. //$('.qrcodeTxt').html(unescape(EmpName));
  38. $(function () {
  39. var url = currentUrl + '/EducationalAdministration/StuVolunteerPhone/Search';
  40. qrcode.makeCode(url);
  41. //$("#btnprint").on("click", function () {
  42. // AddPrintContent3()
  43. //});
  44. });
  45. // 打印表单
  46. function AddPrintContent3() {
  47. $('#btnprint').css('display', 'none')
  48. window.print();
  49. $('#btnprint').css('display', 'block')
  50. }
  51. </script>
  52. </body>
  53. </html>