main.jsp
5.08 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="weaver.templetecheck.ConfigSpecialHandle" %>
<%@ page import="weaver.file.Prop" %>
<%@ include file="main_init.jsp" %>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title><%=SystemEnv.getHtmlLabelName(502064,user.getLanguage())%></title>
<link rel="stylesheet" href="/templetecheck/css/bootstrap.css">
<script src="/templetecheck/js/jquery-1.10.2.js"></script>
<script src="/templetecheck/js/bootstrap.js"></script>
<%
//部分配置需要在高版本删除掉,部分配置只能在resin中配置
ConfigSpecialHandle handle = new ConfigSpecialHandle();
handle.deleteXMLConfig_DB();
String showXmlMenu = Util.null2String(Prop.getPropValue("templeteCheckMenu", "showXmlMenu"));
String showPropertiesMenu = Util.null2String(Prop.getPropValue("templeteCheckMenu", "showPropertiesMenu"));
//添加check页面设置
%>
<script type="text/javascript">
$(document).ready(function(){
$("li[role='presentation']").bind("click",function(){
$("li[role='presentation']").removeClass("active");
$(this).addClass("active");
$(".dropdown-menu").width($(this).css("width"));
});
$(".dropdown-menu").bind("mouseout",function(){
//alert(0);
var s = event.toElement || event.relatedTarget;
if(!this.contains(s)) { $(this).parent().removeClass("open"); }
});
});
//维护xml
function editxml(type) {
if(type=='1') {
$("#iframe1").attr("src","/templetecheck/AddXml.jsp");
} else {
$("#iframe1").attr("src","/templetecheck/EditXml.jsp");
}
}
//维护properties
function editproperties(type) {
if(type=='1') {
$("#iframe1").attr("src","/templetecheck/AddProperties.jsp");
} else {
$("#iframe1").attr("src","/templetecheck/EditProperties.jsp");
}
}
//检测
function checkrule(){
$("#iframe1").attr("src", "/templetecheck/checkruleiframe.jsp");
}
//配置文件信息维护
function configmanager() {
$("#iframe1").attr("src", "/templetecheck/ConfigManagerIframe.jsp");
}
</script>
</head>
<body style="width:100%;margin:0px auto;height:100%;">
<div id="tabdiv" style="width:100%;height:93%;">
<!-- Nav tabs -->
<div style="background-color:#87CEFA;height:60px;">
<ul class="nav nav-pills tabclass1" role="tablist">
<li role="presentation" style="width:400px;text-align:center;"><span style="line-height:60px;"><img src="image/title.png"></img> <%=SystemEnv.getHtmlLabelName(502064,user.getLanguage())%></span></li>
<li role="presentation" class="active">
<a id="checkrule" href="javascript:checkrule()" class="dropdown-toggle" aria-controls="messages" role="button" aria-haspopup="true" aria-expanded="false"><%=SystemEnv.getHtmlLabelName(502065,user.getLanguage())%></a>
</li>
<%if(showXmlMenu.equals("1")){ %>
<li role="presentation">
<a class="dropdown-toggle" href="#" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><%=SystemEnv.getHtmlLabelName(502072,user.getLanguage())%><span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="javascript:editxml(1)"><%=SystemEnv.getHtmlLabelName(502074,user.getLanguage())%></a></li>
<li><a href="javascript:editxml(2)"><%=SystemEnv.getHtmlLabelName(502075,user.getLanguage())%></a></li>
</ul>
</li>
<%}%>
<%if(showPropertiesMenu.equals("1")){ %>
<li role="presentation">
<a class="dropdown-toggle" href="#" aria-controls="messages" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><%=SystemEnv.getHtmlLabelName(502073,user.getLanguage())%><span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="javascript:editproperties(1)"><%=SystemEnv.getHtmlLabelName(502076,user.getLanguage())%></a></li>
<li><a href="javascript:editproperties(2)"><%=SystemEnv.getHtmlLabelName(502077,user.getLanguage())%></a></li>
</ul>
</li>
<%}%>
<li role="presentation">
<a id="configmanager" href="javascript:configmanager()" class="dropdown-toggle" aria-controls="messages" role="button" aria-haspopup="true" aria-expanded="false"><%=SystemEnv.getHtmlLabelName(502080,user.getLanguage())%></a>
</li>
</ul>
</div>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="home" style="height:100%"><iframe id="iframe1" style="border: 0px" name="iframe1" src="/templetecheck/checkruleiframe.jsp"></iframe></div>
</div>
</div>
<style>
body{
font-size:20px;
height:100%;
scrolling:none;
overflow-y:hidden;
}
html {
height:100%;
}
.tab-content{
height:100%;
}
.tabclass1>li{
width:225px;
}
.tabclass1>li>a{
line-height:40px;
text-align:center;
}
.dropdown-menu {
background-color:#87CEFA;
}
.tab-pane>iframe {
width:100%;
height:100%;
}
.title {
font-size:16px;
color:#8B8B83
}
</style>
</body>
</html>