LdapSettingTab.jsp
8.74 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
185
186
187
188
189
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.api.integration.ldap.constant.LdapConstant" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<jsp:useBean id="pack" class="weaver.general.ParameterPackage" scope="page"/>
<HTML>
<HEAD>
<script src="/js/tabs/jquery.tabs.extend_wev8.js"></script>
<link type="text/css" href="/js/tabs/css/e8tabs1_wev8.css" rel="stylesheet"/>
<link rel="stylesheet" href="/css/ecology8/request/searchInput_wev8.css" type="text/css"/>
<script type="text/javascript" src="/js/ecology8/request/searchInput_wev8.js"></script>
<link rel="stylesheet" href="/css/ecology8/request/seachBody_wev8.css" type="text/css"/>
<link rel="stylesheet" href="/css/ecology8/request/hoverBtn_wev8.css" type="text/css"/>
<script type="text/javascript" src="/js/ecology8/request/hoverBtn_wev8.js"></script>
<script type="text/javascript" src="/js/ecology8/request/titleCommon_wev8.js"></script>
<%
if (!HrmUserVarify.checkUserRight(LdapConstant.LDAP_RIGHT_KEY, user)) {
response.sendRedirect("/notice/noright.jsp");
return;
}
String navName;
String url;
String operate = Util.null2String(request.getParameter("operate"));
String ldapid = Util.null2String(request.getParameter("ldapid"));
String queryString = request.getQueryString();
if ("edit".equalsIgnoreCase(operate)) {
url = "/integration/ldap/LdapSettingBase.jsp?isdialog=1&" + queryString;
navName = "LDAP" + SystemEnv.getHtmlLabelName(26267, user.getLanguage());
} else if ("test".equalsIgnoreCase(operate)) {
url = "/integration/ldap/LdapSettingTestBase.jsp?isdialog=1&" + queryString;
navName = SystemEnv.getHtmlLabelName(25496, user.getLanguage());
} else if ("pull".equalsIgnoreCase(operate)) {
url = "/integration/ldap/LdapSettingSync.jsp?isdialog=1" + queryString;
navName = SystemEnv.getHtmlLabelName(131194, user.getLanguage());
} else if ("push".equalsIgnoreCase(operate)) {
url = "/integration/ldap/oa/OaSettingSync.jsp?isdialog=1&" + queryString;
navName = SystemEnv.getHtmlLabelName(131272, user.getLanguage());
} else if ("viewlog".equals(operate)) {
navName = SystemEnv.getHtmlLabelName(32940, user.getLanguage());
url = "/systeminfo/SysMaintenanceLog.jsp?_fromURL=3&isdialog=1&operateitem=383&relatedid=" + ldapid;
} else {
navName = "LDAP" + SystemEnv.getHtmlLabelName(26267, user.getLanguage());
url = "/integration/ldap/LdapSettingBase.jsp?isdialog=1&" + queryString;
}
%>
<script type="text/javascript">
$(function () {
$('.e8_box').Tabs({
getLine: 1,
iframe: "tabcontentframe",
mouldID: "<%= MouldIDConst.getID("integration")%>",
staticOnLoad: true,
notRefreshIfrm: true,
objName: "<%=navName%>"
});
});
</script>
</head>
<BODY scroll="no">
<div class="e8_box demo2">
<div class="e8_boxhead">
<div class="div_e8_xtree" id="div_e8_xtree"></div>
<div class="e8_tablogo" id="e8_tablogo"></div>
<div class="e8_ultab">
<div class="e8_navtab" id="e8_navtab">
<span id="objName"></span>
</div>
<div>
<ul class="tab_menu">
<%
if("pull".equalsIgnoreCase(operate)){
%>
<li>
<%--LDAP同步设置--%>
<a href="/integration/ldap/LdapSettingSync.jsp?isdialog=1&<%=queryString%>"
target="tabcontentframe">
<%=SystemEnv.getHtmlLabelName(21952, user.getLanguage()) %>
</a>
</li>
<li>
<%--LDAP字段对应设置--%>
<a href="/integration/ldap/LdapSettingMapping.jsp?isdialog=1&<%=queryString%>"
target="tabcontentframe">
<%=SystemEnv.getHtmlLabelNames("33084,130599", user.getLanguage()) %>
</a>
</li>
<li>
<%--LDAP手动同步--%>
<a href="/integration/ldap/LdapSync.jsp?isdialog=1&<%=queryString%>" target="tabcontentframe">
<%=SystemEnv.getHtmlLabelNames("125166", user.getLanguage()) %>
</a>
</li>
<%
} else if ("push".equalsIgnoreCase(operate)) {
%>
<li>
<%--OA同步设置--%>
<a href="/integration/ldap/oa/OaSettingSync.jsp?isdialog=1&<%=queryString%>"
target="tabcontentframe">
<%=SystemEnv.getHtmlLabelName(21952, user.getLanguage()) %>
</a>
</li>
<li>
<%--OA字段对应设置--%>
<a href="/integration/ldap/oa/OaSettingMapping.jsp?isdialog=1&<%=queryString%>"
target="tabcontentframe">
<%=SystemEnv.getHtmlLabelNames("33084,130599", user.getLanguage()) %>
</a>
</li>
<li>
<%--OA手动同步--%>
<a href="/integration/ldap/oa/OaSync.jsp?isdialog=1&<%=queryString%>" target="tabcontentframe">
<%=SystemEnv.getHtmlLabelNames("125166", user.getLanguage()) %>
</a>
</li>
<%
}else if ("test".equalsIgnoreCase(operate)) {
%>
<li>
<%--OA同步设置--%>
<a href="/integration/ldap/LdapSettingTestBase.jsp?isdialog=1&<%=queryString%>"
target="tabcontentframe">
测试认证
</a>
</li>
<li>
<%--OA字段对应设置--%>
<a href="/integration/ldap/LdapSettingTestLdapSync.jsp?isdialog=1&<%=queryString%>"
target="tabcontentframe">
正向同步
</a>
</li>
<li>
<%--OA手动同步--%>
<a href="/integration/ldap/LdapSettingTestOASync.jsp?isdialog=1&<%=queryString%>" target="tabcontentframe">
反向同步
</a>
</li>
<%
} else {
%>
<li class='current'>
<%--基础设置--%>
<a href="/integration/ldap/LdapSettingBase.jsp?isdialog=1&<%=queryString%>" target="tabcontentframe">
<%=SystemEnv.getHtmlLabelName(82751, user.getLanguage())%>
</a>
</li>
<%
}
%>
</ul>
<div id="rightBox" class="e8_rightBox"></div>
</div>
</div>
</div>
<div class="tab_box">
<div>
<iframe src="<%=url %>" onload="update()" id="tabcontentframe" name="tabcontentframe" class="flowFrame"
frameborder="0" height="100%" width="100%;"></iframe>
</div>
</div>
</div>
</body>
</html>
<script>
function forbiddenPage() {
$("<div class=\"datagrid-mask\" style=\"position:fixed;z-index:2;opacity:0.4;filter:alpha(opacity=40);BACKGROUND-COLOR:#fff;\"></div>").css({
display: "block",
width: "100%",
height: "100%",
top: 0,
left: 0
}).appendTo("body");
$("<div class=\"datagrid-mask-msg\" style=\"background:#fff;position:fixed;z-index:3;padding: 10px;padding-top: 6px;padding-bottom: 6px;border: 1px solid;\"></div>").html("<%=SystemEnv.getHtmlLabelName(25666,user.getLanguage())%>").appendTo("body").css({
display: "block",
left: ($(document.body).outerWidth(true) - 190) / 2,
top: ($(window).height() - 45) / 2
});
}
function releasePage() {
$(".datagrid-mask,.datagrid-mask-msg").hide();
}
</script>