<%@ page contentType="text/html;charset=UTF-8"%>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
<c:set var="ctx" value="${pageContext.request.contextPath}" />
|
|
<html>
|
<head>
|
<script type="text/javascript"
|
src="${ctx}/static/jquery/jquery-3.1.0.min.js"></script>
|
<title>架卡界面</title>
|
<style>
|
|
#box{
|
over-flow:hidden;
|
}
|
*{
|
margin: 0px auto;
|
}
|
#content{
|
width: 100%;
|
height:266mm;
|
}
|
#tabbox{
|
width: 100%;
|
border-collapse: collapse;
|
text-align: center;
|
}
|
#tabbox tr td{
|
height:25px;
|
line-height:25px;
|
}
|
.tdcont{
|
width: 38px;
|
}
|
.flttr td{
|
line-height: 24px;
|
height: 50px;
|
|
}
|
|
</style>
|
<script type="text/javascript">
|
var interval = setInterval('refreshStatus()', 60000);
|
|
// 设备页面自动刷新
|
function refreshStatus() {
|
window.location.reload();
|
}
|
|
// 停止页面自动刷新
|
function disableAutoRefresh() {
|
clearInterval(interval);
|
}
|
|
|
function doPrint() {
|
|
bdhtml=window.document.body.innerHTML;
|
sprnstr="<!--startprint-->";
|
eprnstr="<!--endprint-->";
|
prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
|
prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
|
window.document.body.innerHTML=prnhtml;
|
window.print();
|
}
|
</script>
|
</head>
|
<body>
|
<div id="box" class="content-wrapper">
|
<section class="content-header">
|
<h1><a href="#" type='botton' style="float:left;" class='btn btn-success' onclick="doPrint()">打印架卡</a></h1>
|
<ol class="breadcrumb">
|
<li><a href="#">设备<i class="fa fa-dashboard"></i>架卡
|
</a></li>
|
</ol>
|
</section>
|
<!--startprint-->
|
<div style="height:266mm auto;width:97%;">
|
${jiakadataforhtml}
|
</div>
|
<!--endprint-->
|
</div>
|
|
</body>
|
</html>
|