LdapSettingTestBase.jsp
5.56 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<%@ page import="weaver.general.Util" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.api.integration.ldap.constant.LdapConstant" %>
<%@ page import="com.api.integration.ldap.service.LdapService" %>
<%@ page import="com.alibaba.fastjson.*" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<HTML>
<HEAD>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<SCRIPT language="javascript" src="/js/weaver_wev8.js"></script>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<link rel="stylesheet" href="/wui/theme/ecology8/weaveredittable/css/WeaverEditTable_wev8.css">
<script src="/wui/theme/ecology8/weaveredittable/js/WeaverEditTable_wev8.js"></script>
<script language="javascript" src="/wui/theme/ecology8/jquery/js/zDialog_wev8.js"></script>
<script language="javascript" src="/wui/theme/ecology8/jquery/js/zDrag_wev8.js"></script>
</head>
<%
if (!HrmUserVarify.checkUserRight(LdapConstant.LDAP_RIGHT_KEY, user)) {
response.sendRedirect("/notice/noright.jsp");
return;
}
String ldapId = Util.null2String(request.getParameter("ldapid"));
String isDialog = Util.null2String(request.getParameter("isdialog"));
String titlename = "";
LdapService ldapService = new LdapService(user);
JSONArray basettings =JSONArray.parseArray(ldapService.testbase(ldapId));
%>
<BODY>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
if(HrmUserVarify.checkUserRight("SystemSetEdit:Edit", user)) {
RCMenu += "{"+SystemEnv.getHtmlLabelName(25496,user.getLanguage())+",javascript:test(),_self} ";
RCMenuHeight += RCMenuHeightStep ;
}
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<div id="tabDiv" >
<span style="font-size:14px;font-weight:bold;"><%=titlename %></span>
</div>
<div class="cornerMenuDiv"></div>
<div class="advancedSearchDiv" id="advancedSearchDiv" style='display:none;'>
</div>
<wea:layout>
<%
for(int i=0;i<basettings.size();i++){
JSONObject tempI = basettings.getJSONObject(i);
//列表样式展示
if("list".equals(tempI.getString("showtype"))){
%>
<wea:group context="<%=tempI.getString("groupname")%>" attributes="{'samePair':'BasicParam','groupOperDisplay':'none'}">
<%
for(int j=0;j<tempI.getJSONArray("testdetal").size();j++){
JSONObject tempJ = tempI.getJSONArray("testdetal").getJSONObject(j);
%>
<wea:item>
<%=tempJ.getString("detailname")%>
</wea:item>
<wea:item>
<%=tempJ.getString("detailcontent")%>
</wea:item>
<%
}
%>
</wea:group>
<%
//表格样式展示
}else{
%>
<wea:group context="<%=tempI.getString("groupname")%>" attributes="{'samePair':'BasicParam','groupOperDisplay':'none'}">
<wea:item attributes="{'colspan':'full','isTableList':'true'}">
<TABLE class="ListStyle" cellspacing=1>
<COLGROUP>
<COL width="30%">
<COL width="40%">
<COL width="30%">
</COLGROUP>
<TBODY>
<TR class=header>
<th><nobr><%=tempI.getJSONObject("tablehead").getString("headtitle1")%></nobr></th>
<th><nobr><%=tempI.getJSONObject("tablehead").getString("headtitle2")%></nobr></th>
<th><nobr><%=tempI.getJSONObject("tablehead").getString("headtitle3")%></nobr></th>
</TR>
<%
int colorindex = 0;
int rowindex = 0;
for(int j=0;j<tempI.getJSONArray("testdetal").size();j++){
JSONObject tempJ = tempI.getJSONArray("testdetal").getJSONObject(j);
if(colorindex==0){
%>
<tr class="DataDark">
<%
colorindex=1;
}else{
%>
<tr class="DataLight">
<%
colorindex=0;
}%>
<td>
<%=tempJ.getString("detailname")%>
</td>
<td>
<%=tempJ.getString("detailcontent")%>
</td>
<td>
<%
if("true".equals(tempJ.getString("result"))){
%>
<img src="/integration/images/true.png">
<%
}else{
%>
<img src="/integration/images/false.png">
<%
}
%>
</td>
</tr>
<%
rowindex++;
}
%>
</TBODY>
</TABLE>
</wea:item>
</wea:group>
<%
}
}
%>
</wea:layout>
<script language=javascript>
jQuery(document).ready(function(){
jQuery(".e8tips").wTooltip({html:true});
});
function onBack() {
var dialog = parent.parent.getDialog(parent);
dialog.close();
}
</script>
<%if("1".equals(isDialog)) { %>
<div id="zDialog_div_bottom" class="zDialog_div_bottom">
<input type="button" style="display:none;" class=zd_btn_submit accessKey=S id=btnsearch value="S-<%=SystemEnv.getHtmlLabelName(197,user.getLanguage())%>"></input>
<wea:layout needImportDefaultJsAndCss="false">
<wea:group context="" attributes="{'groupDisplay':'none'}">
<wea:item type="toolbar">
<input type="button" class=zd_btn_cancle accessKey=T id=btncancel value="T-<%=SystemEnv.getHtmlLabelName(309,user.getLanguage())%>" onclick='onBack();'></input>
</wea:item>
</wea:group>
</wea:layout>
<script type="text/javascript">
jQuery(document).ready(function(){
resizeDialog(document);
});
</script>
</div>
</div>
<% } %>
</BODY>
</HTML>