WebMagazineMain_frm.jsp
7.97 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
205
206
207
208
209
210
211
212
213
214
215
216
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.Timestamp" %>
<%@ page import="weaver.systeminfo.menuconfig.LeftMenuInfoHandler" %>
<%@ page import="weaver.systeminfo.menuconfig.LeftMenuInfo" %>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="MainCategoryComInfo" class="weaver.docs.category.MainCategoryComInfo" scope="page" />
<jsp:useBean id="SubCategoryComInfo" class="weaver.docs.category.SubCategoryComInfo" scope="page" />
<jsp:useBean id="ResourceComInfo" class="weaver.hrm.resource.ResourceComInfo" scope="page"/>
<jsp:useBean id="DepartmentComInfo" class="weaver.hrm.company.DepartmentComInfo" scope="page"/>
<jsp:useBean id="CheckUserRight" class="weaver.systeminfo.systemright.CheckUserRight" scope="page" />
<jsp:useBean id="ManageDetachComInfo" class="weaver.hrm.moduledetach.ManageDetachComInfo" scope="page" />
<jsp:useBean id="SubCompanyComInfo" class="weaver.hrm.company.SubCompanyComInfo" scope="page" />
<HTML><HEAD>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<link type="text/css" rel="stylesheet" href="/css/xtree_wev8.css">
<script type="text/javascript" src="/js/xtree_wev8.js"></script>
<script type="text/javascript" src="/js/xmlextras_wev8.js"></script>
<script type="text/javascript" src="/js/cxloadtree_wev8.js"></script>
</head>
<%
String imagefilename = "/images/hdDOC_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(58,user.getLanguage())+":"+SystemEnv.getHtmlLabelName(341,user.getLanguage());
String needfav ="1";
String needhelp ="";
//人力资源模块是否开启了管理分权,如不是,则不显示框架,直接转向到列表页面(新的分权管理)
String docdetachable="0";
boolean isUseDocManageDetach=ManageDetachComInfo.isUseDocManageDetach();
if(isUseDocManageDetach){
docdetachable="1";
session.setAttribute("detachable","1");
session.setAttribute("docdetachable",docdetachable);
String hasRightSub=SubCompanyComInfo.getRightSubCompany(user.getUID(),"WebMagazine:Main",-1);
session.setAttribute("docdftsubcomid",hasRightSub);
}else{
docdetachable="0";
session.setAttribute("detachable","0");
session.setAttribute("docdetachable",docdetachable);
session.setAttribute("docdftsubcomid","0");
}
//如果未开启人力资源模块管理分权则直接跳转到角色页面(不显示左边的树)
if("0".equals(docdetachable)){
response.sendRedirect("WebMagazineMain.jsp");
return;
}
%>
<BODY scroll="no">
<%@ include file="/systeminfo/leftMenuCommon.jsp" %>
<table cellspacing="0" cellpadding="0" class="flowsTable" style="width:100%;height:100%;" >
<tr>
<td class="leftTypeSearch">
<div>
<span class="leftType">
<span><img style="vertical-align:middle;" src="/images/ecology8/request/alltype_wev8.png" width="18"></span>
<span><%=SystemEnv.getHtmlLabelName(141,user.getLanguage()) %></span>
<span id="totalDoc"></span>
</span>
<span class="leftSearchSpan">
<input type="text" class="leftSearchInput"/>
</span>
</div>
</td>
<td rowspan="2">
<iframe src="WebMagazineMain.jsp" id="outcontentframe" name="outcontentframe" class="flowFrame" frameborder="0" height="100%" width="100%;"></iframe>
</td>
</tr>
<tr>
<td class="flowMenusTd" style="width:226px;">
<div class="flowMenuDiv" >
<!--<div class="flowMenuAll"><span class="allText">全部 </span></div>-->
<div style="overflow:hidden;height:300px;position:relative;" id="overFlowDiv">
<div class="ulDiv" ></div>
</div>
</div>
</td>
</tr>
</table>
<script type="text/javascript">
jQuery(document).ready(function(){
e8_initTree("/docs/category/subcompany_left.jsp?rightStr=WebMagazine:Main&url=WebMagazineMain.jsp");
});
</script>
<!-- <TABLE class=viewform width=100% id=oTable1 height=100% cellpadding="0px" cellspacing="0px">
<TBODY>
<tr><td height=100% id=oTd1 name=oTd1 width="220px" style=’padding:0px’>
<IFRAME name=leftframe id=leftframe src="DocCategoryTreeLeft.jsp" width="100%" height="100%" frameborder=no scrolling=yes>
浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</IFRAME>
</td>
<td height=100% id=oTd0 name=oTd0 width="10px" style=’padding:0px’>
<IFRAME name=middleframe id=middleframe src="/framemiddle.jsp" width="100%" height="100%" frameborder=no scrolling=no noresize>
浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</IFRAME>
</td>
<td height=100% id=oTd2 name=oTd2 width="*" style=’padding:0px’>
<IFRAME name=contentframe id=contentframe src="DocCategoryEdit.jsp" width="100%" height="100%" frameborder=no scrolling=auto>
浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</IFRAME>
</td>
</tr>
</TBODY>
</TABLE>-->
</body>
</html>
<%--
<%@ page import="weaver.general.Util" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ include file="/systeminfo/init_wev8.jsp" %>
<jsp:useBean id="MainCategoryManager" class="weaver.docs.category.MainCategoryManager" scope="page" />
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
<HTML><HEAD>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
</head>
<%
String imagefilename = "/images/hdMaintenance_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(65,user.getLanguage());
String needfav ="1";
String needhelp ="";
%>
<BODY>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
if(HrmUserVarify.checkUserRight("DocMainCategoryAdd:add", user)){
RCMenu += "{"+SystemEnv.getHtmlLabelName(82,user.getLanguage())+",javascript:onNew(),_top} " ;
RCMenuHeight += RCMenuHeightStep ;
}
if(HrmUserVarify.checkUserRight("DocMainCategory:log", user)){
if(rs.getDBType().equals("db2")){
RCMenu += "{"+SystemEnv.getHtmlLabelName(83,user.getLanguage())+",javascript:location='/systeminfo/SysMaintenanceLog.jsp?sqlwhere=where int(operateitem0 =1',_top} " ;
}else{
RCMenu += "{"+SystemEnv.getHtmlLabelName(83,user.getLanguage())+",javascript:location='/systeminfo/SysMaintenanceLog.jsp?sqlwhere=where operateitem =1',_top} " ;
}
RCMenuHeight += RCMenuHeightStep ;
}
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<table width=100% height=100% border="0" cellspacing="0" cellpadding="0">
<colgroup>
<col width="10">
<col width="">
<col width="10">
<tr>
<td height="10" colspan="3"></td>
</tr>
<tr>
<td ></td>
<td valign="top">
<TABLE class=Shadow>
<tr>
<td valign="top">
<TABLE class=ListStyle cellspacing=1>
<COLGROUP>
<COL width="20%">
<COL width="60%">
<COL width="20%">
<TBODY>
<TR class=header>
<TH colSpan=4><%=SystemEnv.getHtmlLabelName(65,user.getLanguage())%></TH></TR>
<TR class=Header>
<TD><%=SystemEnv.getHtmlLabelName(84,user.getLanguage())%></TD>
<TD><%=SystemEnv.getHtmlLabelName(85,user.getLanguage())%></TD>
<TD><%=SystemEnv.getHtmlLabelName(89,user.getLanguage())%><%=SystemEnv.getHtmlLabelName(88,user.getLanguage())%></TD>
</TR>
<TR class=Line><TD colSpan=4></TD></TR>
<%
MainCategoryManager.resetParameter();
MainCategoryManager.selectCategoryInfo();
int i=0;
while(MainCategoryManager.next()){
int id = MainCategoryManager.getCategoryid();
String name = MainCategoryManager.getCategoryname();
String imageid = Util.null2String(MainCategoryManager.getCategoryiamgeid());
int order = MainCategoryManager.getCategoryorder();
if(i==0){
i=1;
%>
<TR class=datalight>
<%
}else{
i=0;
%>
<TR class=datadark>
<% }
%>
<TD><a href="DocMainCategoryEdit.jsp?id=<%=id%>"><%=id%></a></TD>
<TD><%=name%></TD>
<TD><%=order%></TD></TR>
<%}
MainCategoryManager.closeStatement();%>
</TBODY></TABLE>
<script>
function onNew(){
location="DocMainCategoryAdd.jsp"
}
</script>
</td>
</tr>
</TABLE>
</td>
<td></td>
</tr>
<tr>
<td height="10" colspan="3"></td>
</tr>
</table>
</BODY></HTML>
--%>