|
|
@@ -0,0 +1,63 @@ |
|
|
|
<!DOCTYPE html> |
|
|
|
|
|
|
|
|
|
|
|
<html> |
|
|
|
|
|
|
|
<head> |
|
|
|
<meta name="viewport" content="width=device-width" /> |
|
|
|
<title>CardPrint</title> |
|
|
|
@Html.AppendJsFile("/Content/jquery/jquery-1.10.2.min.js", "/Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js") |
|
|
|
<script src="/Content/js/qrcode.min.js"></script> |
|
|
|
<script src="~/PhonePage/server.js"></script> |
|
|
|
<link href="~/Content/cardprint/CardPrint.css" rel="stylesheet" /> |
|
|
|
<script> |
|
|
|
function request(d) { |
|
|
|
for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) { |
|
|
|
var b = c[a].split("="); |
|
|
|
if (b[0] == d) |
|
|
|
if ("undefined" == unescape(b[1])) break; |
|
|
|
else return unescape(b[1]) |
|
|
|
} |
|
|
|
return "" |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</head> |
|
|
|
|
|
|
|
<body style=""> |
|
|
|
<div id="qrcodeBox" style="text-align:center;margin-top:20px;"> |
|
|
|
<div class="qrcodeBox" style="display:inline-block"> |
|
|
|
<div id="qrcode" style="margin:0 auto 5px;"></div> |
|
|
|
<div class="qrcodeTxt" style="font-size:12px;"></div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
<!--<div id="btnprint" type="button" class="btns" value="打印">打印</div>--> |
|
|
|
<script> |
|
|
|
//标签打印 |
|
|
|
var qrcode = new QRCode(document.getElementById("qrcode"), { |
|
|
|
width: 80, |
|
|
|
height: 80 |
|
|
|
}); |
|
|
|
var keyValue = request('keyValue');//二维码 |
|
|
|
var EmpName = request('EmpName'); |
|
|
|
$('.qrcodeTxt').html(unescape(EmpName)); |
|
|
|
$(function () { |
|
|
|
var url = currentUrl + '/EducationalAdministration/StuEnrollPhone/Link?EmpNo=' + keyValue; |
|
|
|
|
|
|
|
qrcode.makeCode(url); |
|
|
|
//$("#btnprint").on("click", function () { |
|
|
|
// AddPrintContent3() |
|
|
|
//}); |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
// 打印表单 |
|
|
|
function AddPrintContent3() { |
|
|
|
$('#btnprint').css('display', 'none') |
|
|
|
window.print(); |
|
|
|
$('#btnprint').css('display', 'block') |
|
|
|
} |
|
|
|
</script> |
|
|
|
</body> |
|
|
|
|
|
|
|
</html> |