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
| <%@page import="builder.Manager"%>
| <%@page import="ng.db.*"%>
| <%@ page language="java" import="java.sql.*" contentType="text/html; charset=UTF-8"
| pageEncoding="UTF-8"%>
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
| <html>
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
| <script src="../static/js/ng/tb-2.0.js"></script>
|
| <title>Insert title here</title>
| </head>
| <body>
| <div id="tab" style="display:width:100%">
| </div>
| <script type="text/javascript">
| var a=
| <%
| // Manager.appStart(null);
| out.print( Manager.getDevice().toString());
|
| %>;
| console.log(a);
|
| var opt={
| table:{
| trStyles:["background-color:none","background-color:lightblue"],
| style:"width:100%",
| border:1,
| notify:function(message){
| if(message.data.st!="已连接"){
|
| message.tr.children[3].style["color"]="red";
| }
| }
| },
| columns:[
| {
| name:"设备名",
| binding:"name"
|
| },
|
| {
| name:"IP",
| binding:"ip"
|
| },
| {
| name:"port",
| binding:"port",
| }
|
| ,
| {
| name:"状态",
| binding:"st"
| }
| ,
| {
| name:"调用次数",
| binding:"count"
| }
|
|
| ]
| };
|
| var tab=createTable(document.getElementById("tab"),opt);
| tab.update(a);
| tab.notify();
| </script>
| </body>
| </html>
|
|