MutiResourceBrowser.jsp
4.09 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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="org.json.JSONObject"%>
<%@ page import="java.util.*" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%
int tabId = Util.getIntValue(request.getParameter("tabId"), 1);
String resourceids=Util.null2String(request.getParameter("resourceids"));
String publicid=Util.null2String(request.getParameter("publicid"));
//页面传过来的自定义组id
int uid=user.getUID();
String resourcemulti = null;
Cookie[] cks = request.getCookies();
for (int i = 0; i < cks.length; i++) {
//System.out.println("ck:"+cks[i].getName()+":"+cks[i].getValue());
if (cks[i].getName().equals("resourcemulti" + uid)) {
resourcemulti = cks[i].getValue();
break;
}
}
if(resourcemulti!=null&&resourcemulti.length()>0){
String[] atts=Util.TokenizerString2(resourcemulti,"|");
tabId=Util.getIntValue(atts[0])+1;
}
if(tabId==0) tabId=1;
String searchUrl = "";
String ysxxUrl = "/wechat/bowser/hrm/MultiSelect.jsp";
if(tabId==1){
searchUrl = "/wechat/bowser/hrm/SearchByOrgan.jsp";
}else if(tabId==2){
searchUrl = "/wechat/bowser/hrm/SearchByGroup.jsp";
}else if(tabId==3){
searchUrl = "/wechat/bowser/hrm/Search.jsp";
}
%>
<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 href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<STYLE type=text/css>PRE {
}
A {
COLOR:#000000;FONT-WEIGHT: bold; TEXT-DECORATION: none
}
A:hover {
COLOR:#56275D;TEXT-DECORATION: none
}
</STYLE>
</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">
<li class="<%=tabId==1?"current":"" %>">
<a id="tabId1" href="javascript:changeTab(1);">
<%=SystemEnv.getHtmlLabelName(18770,user.getLanguage())%><!-- 按组织结构 -->
</a>
</li>
<li class="<%=tabId==2?"current":"" %>">
<a id="tabId2" href="javascript:changeTab(2);">
<%=SystemEnv.getHtmlLabelName(18771,user.getLanguage())%><!-- 按定义的组 -->
</a>
</li>
<li class="<%=tabId==3?"current":"" %>">
<a id="tabId3" href="javascript:changeTab(3);">
<%=SystemEnv.getHtmlLabelName(18412,user.getLanguage())%><!-- 组合查询 -->
</a>
</li>
</ul>
<div id="rightBox" class="e8_rightBox">
</div>
</div>
</div>
</div>
<div class="tab_box">
<div>
<IFRAME name=frame1 id=frame1 src="<%=searchUrl %>" width="100%" height="180px" frameborder=no scrolling=yes>
浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</IFRAME>
<iframe src="<%=ysxxUrl+"?tabId="+tabId+"&selectids="+resourceids+"&publicid="+publicid %>" onload="update();" id="frame2" name="frame2" class="flowFrame" frameborder="0" height="100%" width="100%;"></iframe>
</div>
</div>
</div>
<script type="text/javascript">
function changeTab(tabId){
if(tabId==1){
document.getElementById("frame1").src = "/wechat/bowser/hrm/SearchByOrgan.jsp";
}else if(tabId==2){
document.getElementById("frame1").src = "/wechat/bowser/hrm/SearchByGroup.jsp";
}else if(tabId==3){
document.getElementById("frame1").src = "/wechat/bowser/hrm/Search.jsp";
}
}
function onCancel(){
try{
var dialog = parent.getDialog(window);
dialog.close();
}catch(ex1){}
doClose();
}
function doClose(){
try{
var parentWin = parent.parent.getParentWindow(window);
parentWin.closeDialog();
}catch(ex1){}
}
jQuery('.e8_box').Tabs({
getLine:1,
iframe:"frame2",
contentID:"#frame1",
mouldID:"<%=MouldIDConst.getID("communicate") %>",
objName:<%=JSONObject.quote(SystemEnv.getHtmlLabelName(33210, user.getLanguage())) %>,
staticOnLoad:true
});
</script>
</body>
</html>