ModuleMaint.jsp 4.41 KB

<%@ 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>