MutiResourceBrowser.jsp
4.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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="java.util.*" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<jsp:useBean id="xssUtil" class="weaver.filter.XssUtil" scope="page" />
<%
String resourceids = Util.null2String(request.getParameter("resourceids"));
String sqlwhere = Util.null2String(request.getParameter("sqlwhere"));
String status = Util.null2String(request.getParameter("status"));
//under Cookie
int uid = user.getUID();
String resourcesingle=(String)session.getAttribute("resourcesingle");
if(resourcesingle==null){
Cookie[] cks= request.getCookies();
for(int i=0;i<cks.length;i++){
if(cks[i].getName().equals("resourcesingle"+uid)){
resourcesingle=cks[i].getValue();
break;
}
}
}
String tabid="0";
if(resourcesingle!=null&&resourcesingle.length()>0){
String[] atts=Util.TokenizerString2(resourcesingle,"|");
tabid=atts[0];
}
//upper Cookie
%>
<HTML><HEAD>
<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>
<TABLE class=form width=100% id=oTable1 height=100%>
<COLGROUP>
<COL width="50%">
<COL width=5>
<COL width="50%">
</colgroup>
<TBODY>
<tr>
<td height=30 colspan=3 background="/images/tab/bg1_wev8.gif" align=left>
<table width=100% border=0 cellspacing=0 cellpadding=0 height=100% >
<tr align="left">
<td nowrap background="/images/tab/bg1_wev8.gif" width=15px height=100% align=center></td>
<td nowrap name="oTDtype_0" id="oTDtype_0" background="/images/tab/bglight_wev8.gif" width=70px height=100% align=center onmouseover="style.cursor='hand'" onclick="resetbanner(0)" title="<%=SystemEnv.getHtmlLabelName(18770,user.getLanguage())%>"><span style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;float:left;width:70px;"><b><%=SystemEnv.getHtmlLabelName(18770,user.getLanguage())%></b></span></td>
<td nowrap name="oTDtype_1" id="oTDtype_1" background="/images/tab/bglight_wev8.gif" width=70px height=100% align=center onmouseover="style.cursor='hand'" onclick="resetbanner(1)" title="<%=SystemEnv.getHtmlLabelName(18771,user.getLanguage())%>"><span style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;float:left;width:70px;"><b><%=SystemEnv.getHtmlLabelName(18771,user.getLanguage())%></b></span></td>
<td nowrap name="oTDtype_2" id="oTDtype_2" background="/images/tab/bglight_wev8.gif" width=70px height=100% align=center onmouseover="style.cursor='hand'" onclick="resetbanner(2)" title="<%=SystemEnv.getHtmlLabelName(18412,user.getLanguage())%>"><span style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;float:left;width:70px;"><b><%=SystemEnv.getHtmlLabelName(18412,user.getLanguage())%></b></span></td>
<td nowrap name="oTDtype_3" id="oTDtype_3" height="100%" > </td>
</tr>
</table>
</td>
</tr>
<tr>
<td id=oTd1 name=oTd1 width=100% height=35%>
<IFRAME name=frame1 id=frame1 width=100% height=100% frameborder=no scrolling=no>
<%=SystemEnv.getHtmlLabelName(15017, user.getLanguage())%>
</IFRAME>
</td>
</tr>
<tr>
<td id=oTd2 name=oTd2 width=100% height=65%>
<IFRAME name=frame2 id=frame2 src="/hrm/resource/browser/retire/MultiSelect.jsp?tabid=<%=tabid%>&resourceids=<%=resourceids%>&sqlwhere=<%=xssUtil.put(sqlwhere)%>" width=100% height=100% frameborder=no scrolling=no>
<%=SystemEnv.getHtmlLabelName(15017, user.getLanguage())%>
</IFRAME>
</td>
</tr>
</TBODY>
</table>
<script language=javascript>
function resetbanner(objid){
for(i=0;i<=2;i++){
document.all("oTDtype_"+i).background="/images/tab/bgdark_wev8.gif";
}
document.all("oTDtype_"+objid).background="/images/tab/bglight_wev8.gif";
if(objid == 0 ){
window.frame1.location="/hrm/resource/browser/retire/SearchByOrgan.jsp?sqlwhere=<%=xssUtil.put(sqlwhere)%>";
try{
window.frame2.btnsub.style.display="none"
}catch(err){}
}
else if(objid == 1){
window.frame1.location="/hrm/resource/browser/retire/SearchByGroup.jsp?sqlwhere=<%=xssUtil.put(sqlwhere)%>";
try{
window.frame2.btnsub.style.display="none"
}catch(err){}
}
else if(objid == 2){
window.frame1.location="/hrm/resource/browser/retire/Search.jsp?status=<%=status%>&sqlwhere=<%=xssUtil.put(sqlwhere)%>";
try{
window.frame2.btnsub.style.display="inline"
}catch(err){}
}
}
resetbanner(<%=tabid%>);
</script>
</body>