HrmRolesShowEdit.jsp
8.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
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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<HTML><HEAD>
<style>
#tabPane tr td{padding-top:2px}
#monthHtmlTbl td,#seasonHtmlTbl td{cursor:hand;text-align:center;padding:0 2px 0 2px;color:#333;text-decoration:underline}
.cycleTD{background-image:url(/images/tab2_wev8.png);cursor:hand;text-align:center;border-bottom:1px solid #879293;}
.cycleTDCurrent{padding-top:2px;background-image:url(/images/tab.active2_wev8.png);cursor:hand;text-align:center;}
.seasonTDCurrent,.monthTDCurrent{color:black;font-weight:bold;background-color:#CCC}
#subTab{border-bottom:1px solid #879293;padding:0}
</style>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
</head>
<%
if(!(user.getLogintype()).equals("1")) {
response.sendRedirect("/notice/noright.jsp") ;
return ;
}
String imagefilename = "/images/hdMaintenance_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(93,user.getLanguage())+":"+SystemEnv.getHtmlLabelName(16527,user.getLanguage());
String needfav ="1";
String needhelp ="";
int id = Util.getIntValue(request.getParameter("id"),0);
int messageid = Util.getIntValue(request.getParameter("message"),0);
int errorcode = Util.getIntValue(request.getParameter("errorcode"),0);
int reftree = Util.getIntValue(request.getParameter("reftree"),0);
int tab = Util.getIntValue(request.getParameter("tab"),0);
String typeid = Util.null2String(request.getParameter("type"));
int detachable=Util.getIntValue(String.valueOf(session.getAttribute("detachable")),0);
int hrmdetachable=Util.getIntValue(String.valueOf(session.getAttribute("hrmdetachable")),0);
%>
<BODY>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<TABLE width=100% height=100% border="0" cellspacing="0" cellpadding="0" id="tabPane">
<input type="hidden" name="id" value="<%=id%>">
<colgroup>
<col width="79"></col>
<col width="79"></col>
<col width="*"></col>
</colgroup>
<TBODY>
<tr>
<td height="10" colspan="3"></td>
</tr>
<tr align=left height="22">
<%if(hrmdetachable==1){%>
<td class="cycleTDCurrent" name="oTDtype_0" id="oTDtype_0" background="/images/tab.active2_wev8.png" width=79px align=center onmouseover="style.cursor='hand'" onclick="resetbanner(0)" ><%=SystemEnv.getHtmlLabelName(15068,user.getLanguage())%></td>
<td class="cycleTD" name="oTDtype_1" id="oTDtype_1" background="/images/tab2_wev8.png" width=79px align=center onmouseover="style.cursor='hand'" onclick="resetbanner(1)" ><%=SystemEnv.getHtmlLabelName(17864,user.getLanguage())%></td>
<td class="cycleTD" name="oTDtype_2" id="oTDtype_2" background="/images/tab2_wev8.png" width=79px align=center onmouseover="style.cursor='hand'" onclick="resetbanner(2)" ><%=SystemEnv.getHtmlLabelName(17865,user.getLanguage())%></td>
<td class="cycleTD" name="oTDtype_3" id="oTDtype_3" background="/images/tab2_wev8.png" width=79px align=center onmouseover="style.cursor='hand'" onclick="resetbanner(3)" ><%=SystemEnv.getHtmlLabelName(431,user.getLanguage())%></td>
<td style="border-bottom:1px solid rgb(145,155,156)"> </td>
<%}else{%>
<td class="cycleTDCurrent" name="oTDtype_0" id="oTDtype_0" background="/images/tab.active2_wev8.png" width=79px align=center onmouseover="style.cursor='hand'" onclick="resetbanner(0)" ><%=SystemEnv.getHtmlLabelName(15068,user.getLanguage())%></td>
<td class="cycleTD" name="oTDtype_1" id="oTDtype_1" background="/images/tab2_wev8.png" width=79px align=center onmouseover="style.cursor='hand'" onclick="resetbanner(1)" ><%=SystemEnv.getHtmlLabelName(17864,user.getLanguage())%></td>
<td class="cycleTD" name="oTDtype_2" id="oTDtype_2" background="/images/tab2_wev8.png" width=79px align=center onmouseover="style.cursor='hand'" onclick="resetbanner(2)" ><%=SystemEnv.getHtmlLabelName(431,user.getLanguage())%></td>
<td style="border-bottom:1px solid rgb(145,155,156)"> </td>
<%}%>
</tr>
<tr>
<td colspan="6" style="padding:0;">
<iframe src="HrmRolesEdit.jsp?id=<%=id%><%=(errorcode>0?"&errorcode="+errorcode:"")%><%=(messageid>0?"&message="+messageid:"")%>" ID="iframeAlert" name="iframeAlert" frameborder="0" style="width:100%;height:100%;border-right:1px solid #879293;border-bottom:1px solid #879293;border-left:1px solid #879293;padding:10px;padding-right:0" scrolling="auto"></iframe>
</td>
</tr>
</TBODY>
</table>
<SCRIPT language="javascript">
if(<%=hrmdetachable%>==1){
if(<%=typeid%>==0){
for(i=0;i<4;i++){
$GetEle("oTDtype_"+i).background="/images/tab2_wev8.png";
$GetEle("oTDtype_"+i).className="cycleTD";
}
$GetEle("oTDtype_0").background="/images/tab.active2_wev8.png";
$GetEle("oTDtype_0").className="cycleTDCurrent";
iframeAlert.document.location="HrmRolesEdit.jsp?id=<%=id%>";
}
else if(<%=typeid%>==1){
for(i=0;i<4;i++){
$GetEle("oTDtype_"+i).background="/images/tab2_wev8.png";
$GetEle("oTDtype_"+i).className="cycleTD";
}
$GetEle("oTDtype_1").background="/images/tab.active2_wev8.png";
$GetEle("oTDtype_1").className="cycleTDCurrent";
$GetEle("iframeAlert").contentWindow.document.location="HrmRolesFucRightSet.jsp?id=<%=id%>";
}
else if(<%=typeid%>==2){
for(i=0;i<4;i++){
$GetEle("oTDtype_"+i).background="/images/tab2_wev8.png";
$GetEle("oTDtype_"+i).className="cycleTD";
}
$GetEle("oTDtype_2").background="/images/tab.active2_wev8.png";
$GetEle("oTDtype_2").className="cycleTDCurrent";
$GetEle("iframeAlert").contentWindow.document.location="HrmRolesStrRightSet.jsp?id=<%=id%>";
}
else if(<%=typeid%>==3){
for(i=0;i<4;i++){
$GetEle("oTDtype_"+i).background="/images/tab2_wev8.png";
$GetEle("oTDtype_"+i).className="cycleTD";
}
$GetEle("oTDtype_3").background="/images/tab.active2_wev8.png";
$GetEle("oTDtype_3").className="cycleTDCurrent";
$GetEle("iframeAlert").contentWindow.document.location="HrmRolesMembers.jsp?id=<%=id%>";
}
}else{
if(<%=typeid%>==0){
for(i=0;i<3;i++){
$GetEle("oTDtype_"+i).background="/images/tab2_wev8.png";
$GetEle("oTDtype_"+i).className="cycleTD";
}
$GetEle("oTDtype_0").background="/images/tab.active2_wev8.png";
$GetEle("oTDtype_0").className="cycleTDCurrent";
$GetEle("iframeAlert").contentWindow.document.location="HrmRolesEdit.jsp?id=<%=id%>";
}
else if(<%=typeid%>==1){
for(i=0;i<3;i++){
$GetEle("oTDtype_"+i).background="/images/tab2_wev8.png";
$GetEle("oTDtype_"+i).className="cycleTD";
}
$GetEle("oTDtype_1").background="/images/tab.active2_wev8.png";
$GetEle("oTDtype_1").className="cycleTDCurrent";
$GetEle("iframeAlert").contentWindow.document.location="HrmRolesFucRightSet.jsp?id=<%=id%>";
}
else if(<%=typeid%>==3){
for(i=0;i<3;i++){
$GetEle("oTDtype_"+i).background="/images/tab2_wev8.png";
$GetEle("oTDtype_"+i).className="cycleTD";
}
$GetEle("oTDtype_2").background="/images/tab.active2_wev8.png";
$GetEle("oTDtype_2").className="cycleTDCurrent";
$GetEle("iframeAlert").contentWindow.document.location="HrmRolesMembers.jsp?id=<%=id%>";
}
}
function resetbanner(objid){
if(<%=hrmdetachable%>==1){
for(i=0;i<4;i++){
$GetEle("oTDtype_"+i).background="/images/tab2_wev8.png";
$GetEle("oTDtype_"+i).className="cycleTD";
}
$GetEle("oTDtype_"+objid).background="/images/tab.active2_wev8.png";
$GetEle("oTDtype_"+objid).className="cycleTDCurrent";
var o = $GetEle("iframeAlert").contentWindow.document;
if(objid==0){
o.location="HrmRolesEdit.jsp?id=<%=id%><%=(errorcode>0?"&errorcode="+errorcode:"")%><%=(messageid>0?"&message="+messageid:"")%>";
}
else if(objid==1){
o.location="HrmRolesFucRightSet.jsp?id=<%=id%>";
}else if(objid==2){
o.location="HrmRolesStrRightSet.jsp?id=<%=id%>";
}else if(objid==3){
o.location="HrmRolesMembers.jsp?id=<%=id%>";
}
}else{
for(i=0;i<3;i++){
$GetEle("oTDtype_"+i).background="/images/tab2_wev8.png";
$GetEle("oTDtype_"+i).className="cycleTD";
}
$GetEle("oTDtype_"+objid).background="/images/tab.active2_wev8.png";
$GetEle("oTDtype_"+objid).className="cycleTDCurrent";
var o = $GetEle("iframeAlert").contentWindow.document;
if(objid==0){
o.location="HrmRolesEdit.jsp?id=<%=id%><%=(errorcode>0?"&errorcode="+errorcode:"")%><%=(messageid>0?"&message="+messageid:"")%>";
}
else if(objid==1){
o.location="HrmRolesFucRightSet.jsp?id=<%=id%>";
}else if(objid==2){
o.location="HrmRolesMembers.jsp?id=<%=id%>";
}
}
}
if("<%=reftree%>"==1) window.parent.iframeAlert("leftframe").window.document.location.reload();
if("<%=tab%>"!="0") resetbanner(<%=tab%>);
//添加或者删除角色成员时刷新父页面列表
function refreshWindow(){
try{
opener.location.href=opener.location.href;
}catch(e){}
}
</script>
</BODY>
</HTML>