ModuleMaint.jsp
4.41 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
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ page import="java.util.*"%>
<%@ page import="java.io.*"%>
<%@ page import="weaver.general.*" %>
<%@ page import="weaver.hrm.*" %>
<%@ page import="weaver.systeminfo.*" %>
<%@ page import="weaver.general.StaticObj,
weaver.general.Util" %>
<%@ page import="weaver.hrm.settings.RemindSettings" %>
<%@ page import="org.apache.commons.logging.Log"%>
<%@ page import="org.apache.commons.logging.LogFactory"%>
<html>
<head>
<link href="/css/Weaver_wev8.css" type=text/css rel=stylesheet>
</head>
<body>
<%
if (user.getUID() != 1) {
response.sendRedirect("/notice/noright.jsp");
return;
}
String imagefilename = "/images/hdMaintenance_wev8.gif";
String titlename ="系统模块显示维护页面";
String needfav ="1";
String needhelp ="";
%>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
RCMenu += "{保存,javascript:frm.submit(),_self} " ;
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{返回,javascript:window.history.go(-1),_self} " ;
RCMenuHeight += RCMenuHeightStep ;
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<TABLE width=100% height=100% border="0" cellspacing="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">
<colgroup>
<col width="1">
<col width="">
<col width="10">
<tr>
<TD></td>
<td valign="top">
<form name="frm" method="post" action="ModuleOprate.jsp">
<table class="viewForm" cellspacing="1" cellpadding="1">
<%
File f = new File(GCONST.getPropertyPath() + "module.properties");
InputStream is =new BufferedInputStream(new FileInputStream(f));
Properties prop = new Properties() ;
prop.load(is);
is.close();
for (Enumeration e = prop.propertyNames() ; e.hasMoreElements() ;) {
String key=e.nextElement().toString();
String value=prop.getProperty(key);
String showName="";
if("portal.status".equals(key)) showName="门户管理";
else if("workflow.status".equals(key)) showName="流程管理";
else if("doc.status".equals(key)) showName="知识管理";
else if("photo.status".equals(key)) showName="相册管理";
else if("car.status".equals(key)) showName="车辆管理";
else if("scheme.status".equals(key)) showName="日程管理";
else if("report.status".equals(key)) showName="报表管理";
else if("meeting.status".equals(key)) showName="会议管理";
else if("message.status".equals(key)) showName="通信管理";
else if("finance.status".equals(key)) showName="财务管理";
else if("cpt.status".equals(key)) showName="资产管理";
else if("proj.status".equals(key)) showName="项目";
else if("crm.status".equals(key)) showName="客户";
else if("info.status".equals(key)) showName="信息中心";
else if("cwork.status".equals(key)) showName="协作区";
else if("setting.status".equals(key)) showName="设置中心";
else if("hrm.status".equals(key)) showName="人力资源";
%>
<tr>
<td width="15%"><%=showName%></td>
<td width="85%" class="field">
<%if("portal.status".equals(key)||
"workflow.status".equals(key)||
"doc.status".equals(key)||
"hrm.status".equals(key)||
"setting.status".equals(key)){
%>
<input type="radio" value="1" disabled checked>开放
<input type="radio" value="0" disabled>关闭
<input type="hidden" value="1" name="<%=key%>">
<%} else { %>
<input type="radio" value="1" name="<%=key%>" <%if("1".equals(value)) out.println("checked");%>>开放
<input type="radio" value="0" name="<%=key%>" <%if("0".equals(value)) out.println("checked");%>>关闭
<%}%>
</td>
</tr>
<TR><TD class=line colspan=2></TD></TR>
<%}%>
</table>
</form>
</td>
</tr>
<TR><TD class=line colspan=3></TD></TR>
<tr>
<td height="10" colspan="3"></td>
</tr>
</table>
</td>
<td></td>
</tr>
<tr>
<td height="10" colspan="3"></td>
</tr>
</TABLE>
</body>
</html>