ChangeRoleRight1.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:3k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin1.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <%
- Request m_request = new Request(request);
- int iRoleID = m_request.GetInt("RoleID");
- if(iRoleID<1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("请选择正确的用户角色,修改失败!");
- window.top.close();
- </script>
- <%
- }
- else
- {
- String strRoleRightModuleIDs = "," + RoleModuleRightManager.getModuleIDsByRoleID(iRoleID) + ",";
- String strRoleName = RoleManager.getRoleNameByID(iRoleID);
- Vector vt = ModuleManager.getAllRecord();
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>角色权限管理-- GForce OA 2.0</title>
- <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" src="/js/changestyle.js"></script>
- <script language="JavaScript" type="text/javascript">
- function checkchangeright()
- {
- with(document.changeright)
- for(var i=0;i<ModuleID.length;i++)
- {
- if(ModuleID[i].title.indexOf("(必须有效)")>0 && ModuleID[i].checked==false)
- {
- alert("该项必须选择,否则无法使用本系统,请选择本项并检查是否有其他错误!");
- ModuleID[i].focus();
- return false;
- }
- }
- }
- </script>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top">
- <p><br></p>
- <form name="changeright" action="ChangeRoleRightAction.jsp" method="post" onSubmit="javascript:return checkchangeright();" target="_self">
- <input name="RoleID" Value="<%=iRoleID%>" type="hidden">
- <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
- <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
- <th nowrap><font color="#000000">修改“<%=strRoleName%>”系统操作权限</font></th>
- </tr>
- <tr align="left" valign="top">
- <td>
- <%
- for(int i=0;i<vt.size();i++)
- {
- if(i > 0 && (i % 4) == 0)
- {
- out.println("<br>");
- }
- String strID = ((Vector)vt.get(i)).get(0).toString();
- String strModuleName = ((Vector)vt.get(i)).get(1).toString();
- if(strRoleRightModuleIDs.indexOf("," + strID + ",")>-1)
- {
- out.println("<input name="ModuleID" type="checkbox" value="" + strID + "" checked title="" + strModuleName + "">");
- }
- else
- {
- out.println("<input name="ModuleID" type="checkbox" value="" + strID + "" title="" + strModuleName + "">");
- }
- out.println("<font color="#0A0A0A">" + strModuleName + "</font> ");
- }
- %>
- </table>
- <input value="修改" type="submit">
- <input value="重填" type="reset">
- <input value="取消" type="button" onclick="window.top.close();">
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>
- <%
- }
- %>