PageBrowser.jsp
6.86 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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%@ taglib uri="/browserTag" prefix="brow"%>
<%@ page import="org.apache.commons.lang.StringEscapeUtils" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="esc" class="weaver.page.style.ElementStyleCominfo" scope="page" />
<jsp:useBean id="mhsc" class="weaver.page.style.MenuHStyleCominfo" scope="page" />
<jsp:useBean id="mvsc" class="weaver.page.style.MenuVStyleCominfo" scope="page" />
<jsp:useBean id="su" class="weaver.page.style.StyleUtil" scope="page" />
<%
String type = Util.null2String(request.getParameter("type"));//pre-登录前 aft-登录后
String t_name = Util.null2String(request.getParameter("t_name"));
String t_desc = Util.null2String(request.getParameter("t_desc"));
String ids = Util.null2String(request.getParameter("ids"));
%>
<html>
<head>
<link href="/css/Weaver_wev8.css" type=text/css rel=stylesheet>
<script language=javascript src="/workplan/calendar/src/Plugins/jquery.form_wev8.js"></script>
<script type="text/javascript" src="/js/ecology8/base/jquery-ui_wev8.js"></script>
<script type="text/javascript" src="/js/dragBox/ajaxmanager_wev8.js"></script>
<script type="text/javascript" src="/js/dragBox/rightspluingForBrowser_wev8.js"></script>
<link type="text/css" href="/js/dragBox/e8browser_wev8.css" rel=stylesheet>
<style>
body,html{
width:100%;
height:100%;
}
table{
width:100%;
}
.e8_box_middle{
height:415px;
}
</style>
<script>
$(function(){
resizeDialog(document);
var dialog = parent.parent.getDialog(parent);
var ids ="";
<%if("pre".equals(type)){%>
//ids =dialog.document.getElementById("preLoginPage");
<%}else{%>
//ids =dialog.document.getElementById("afterLoginPage");
<%}%>
showMultiDocDialog("<%=ids%>");
var btnok_onclick = function(){
jQuery("#btnok").click();
}
var btnclear_onclick = function(){
jQuery("#btnclear").click();
}
function onClose(){
if(dialog){
dialog.close()
}else{
window.parent.close();
}
}
function showMultiDocDialog(selectids){
var config = null;
config= rightsplugingForBrowser.createConfig();
config.srchead=["标题","主目录","文档所有者"];
config.container =$("#colShow");
config.searchLabel="";
config.hiddenfield="id";
config.saveLazy = true;
var transName = encodeURI("<%=t_name%>");
config.srcurl = "/page/exportImport/pageMultiAjax.jsp?src=src&type=<%=type%>&desc=<%=t_desc%>&name="+transName;
config.desturl = "/page/exportImport/pageMultiAjax.jsp?src=dest&type=<%=type%>&ids=<%=ids%>&desc=<%=t_desc%>&name="+transName;
config.pagesize = 10;
config.formId = "weaver";
config.target = "queryIframe";
try{
config.dialog = dialog;
}catch(e){
}
config.selectids = selectids;
config.searchAreaId = "e8QuerySearchArea";
jQuery("#colShow").html("");
rightsplugingForBrowser.createRightsPluing(config);
jQuery("#btnok").bind("click",function(){
rightsplugingForBrowser.system_btnok_onclick(config);
});
jQuery("#btnclear").bind("click",function(){
rightsplugingForBrowser.system_btnclear_onclick(config);
});
jQuery("#btncancel").bind("click",function(){
rightsplugingForBrowser.system_btncancel_onclick(config);
});
jQuery("#btnsearch").bind("click",function(){
rightsplugingForBrowser.system_btnsearch_onclick(config);
});
}
function btnOnSearch(){
jQuery("#btnsearch").trigger("click");
}
});
function onsearch(){
SearchForm.submit();
}
function onClose(){
jQuery("#btncancel").trigger("click");
}
function btnclear_onclick(){
jQuery("#btnclear").trigger("click");
}
</script>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
RCMenu += "{" + SystemEnv.getHtmlLabelName(197, user.getLanguage()) + ",javascript:onsearch(),_self} ";
RCMenuHeight += RCMenuHeightStep;
RCMenu += "{" + SystemEnv.getHtmlLabelName(201, user.getLanguage()) + ",javascript:onClose(),_self} ";
RCMenuHeight += RCMenuHeightStep;
RCMenu += "{" + SystemEnv.getHtmlLabelName(311, user.getLanguage()) + ",javascript:btnclear_onclick(),_self} ";
RCMenuHeight += RCMenuHeightStep;
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
</head>
<BODY style="height:100%;">
<wea:layout attributes="{layoutTableId:topTitle}">
<wea:group context="" attributes="{groupDisplay:none}">
<wea:item attributes="{'customAttrs':'class=rightSearchSpan'}">
<span title="<%=SystemEnv.getHtmlLabelName(86,user.getLanguage()) %>" style="font-size: 12px;cursor: pointer;">
<input class="e8_btn_top middle" onclick="onsearch();" type="button" jQuery1392950000546="32" value="<%=SystemEnv.getHtmlLabelName(197,user.getLanguage()) %>"/>
</span>
<span title="<%=SystemEnv.getHtmlLabelName(83721,user.getLanguage()) %>" class="cornerMenu"></span>
</wea:item>
</wea:group>
</wea:layout>
<FORM NAME="SearchForm" action="PageBrowser.jsp" method="post" id="weaver" >
<input type="hidden" name="pagenum" value=''>
<input type="hidden" name="type" value='<%=type%>'>
<input type="hidden" name="ids" value='<%=ids%>'>
<wea:layout type="4col">
<wea:group context='<%=SystemEnv.getHtmlLabelName(15774,user.getLanguage())%>'>
<wea:item><%=SystemEnv.getHtmlLabelName(195,user.getLanguage())%></wea:item>
<wea:item> <input name='t_name' class='inputstyle' value='<%=t_name%>'></wea:item>
<wea:item><%=SystemEnv.getHtmlLabelName(433,user.getLanguage())%></wea:item>
<wea:item> <input name='t_desc' class='inputstyle' value='<%=t_desc%>'></wea:item>
</wea:group>
</wea:layout>
<TABLE ID=BrowseTable class=BroswerStyle cellspacing="1" style="width:100%;margin-bottom: 50px" cellpadding="0">
<tr>
<td>
<div id="dialog">
<div id='colShow'></div>
</div>
</td>
</tr>
</TABLE>
</FORM>
<div id="zDialog_div_bottom" class="zDialog_div_bottom">
<wea:layout needImportDefaultJsAndCss="false">
<wea:group context="" attributes="{\"groupDisplay\":\"none\"}">
<wea:item type="toolbar">
<input type="button" class=zd_btn_submit accessKey=O id=btnok value="O-<%=SystemEnv.getHtmlLabelName(826,user.getLanguage())%>"></input>
<input type="button" class=zd_btn_submit accessKey=2 id=btnclear value="2-<%=SystemEnv.getHtmlLabelName(311,user.getLanguage())%>"></input>
<input type="button" class=zd_btn_cancle accessKey=T id=btncancel value="T-<%=SystemEnv.getHtmlLabelName(201,user.getLanguage())%>"></input>
</wea:item>
</wea:group>
</wea:layout>
</div>
</BODY>
</HTML>