严智鑫
2024-05-13 cedce4883f0d204f5bf7bf87c0bf4858dabb0c23
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<%@ 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>