ldapAccountList.jsp
3.5 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
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="weaver.general.Util"%>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<html>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(201,user.getLanguage())+",javascript:onClose(),_top} " ;
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+SystemEnv.getHtmlLabelName(311,user.getLanguage())+",javascript:btnclear_onclick(),_top} " ;
RCMenuHeight += RCMenuHeightStep ;
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<head>
<LINK REL=stylesheet type=text/css HREF=/css/Weaver_wev8.css>
<script type="text/javascript">
try{
parent.setTabObjName("<%=SystemEnv.getHtmlLabelNames("81811",user.getLanguage())%>");
}catch(e){
if(window.console)console.log(e+"-->ldapAccountList.jsp");
}
var parentWin = null;
var dialog = null;
try{
dialog = parent.parent.getDialog(parent);
parentWin = parent.parent.getParentWindow(parent);
}catch(e){
}
</script>
<script type="text/javascript">
$(document).ready(function(){
jQuery("#BrowseTable").bind("click",browserTable_onclick);
})
function browserTable_onclick(e) {
var e=e||event;
var target=e.srcElement||e.target;
if(target.nodeName =="TD"||target.nodeName =="A"){
var returnjson = {id:jQuery(jQuery(target).parents("tr")[0].cells[1]).text(),name:jQuery(jQuery(target).parents("tr")[0].cells[1]).text()};
if(dialog){
dialog.callback(returnjson);
}else{
window.parent.returnValue = returnjson;
window.parent.close();
}
}
}
function onClose()
{
if(dialog){
dialog.close();
}else{
window.parent.close() ;
}
}
function btnclear_onclick(){
var returnjson = {id:"",name:""};
if(dialog){
dialog.callback(returnjson);
}else{
window.parent.returnValue = returnjson;
window.parent.close();
}
}
function afterDoWhenLoaded(){
$("#_xTable").find("table.ListStyle tbody").children("tr[class!='Spacing']").each(function(){
var tr = jQuery(this);
tr.bind("click",function(){
var id = tr.children("td:first").next().text();
var name = tr.children("td:first").next().next().text();
var desc = "";
try
{
desc = tr.children("td:first").next().next().next().text();
}
catch(e)
{
}
var returnjson = {'id':id,'name':name};
if(dialog){
try{
dialog.callback(returnjson);
}catch(e){}
try{
dialog.close(returnjson);
}catch(e){}
}else{
window.parent.returnValue = returnjson;
window.parent.close();
}
});
});
}
</script>
</head>
<body>
<%
String tableString=""+
"<table instanceid=\"BrowseTable\" class=\"ListStyle\" datasource=\"weaver.ldap.AccountList.getAccoutList\" pagesize=\"20\" tabletype=\"none\">"+
"<sql backfields=\"*\" sqlform=\"tmptable\" sqlorderby=\"id\" sqlprimarykey=\"id\" sqlsortway=\"asc\" sqldistinct=\"true\" />"+
"<head>";
tableString = tableString + "<col width='47%' text=\""+SystemEnv.getHtmlLabelName(413 ,user.getLanguage())+"\" column='displayName'/>";
tableString = tableString + "<col width='47%' text=\""+SystemEnv.getHtmlLabelName(20970 ,user.getLanguage())+"\" column='account'/>";
tableString = tableString +"</head></table>";
%>
<form>
<TABLE width="100%">
<tr>
<td valign="top">
<wea:SplitPageTag tableString='<%=tableString%>' mode="run" />
</td>
</tr>
</TABLE>
</form>
</body>
</html>