popegroupmodify.jsp~38~
资源名称:bangong.rar [点击查看]
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:2k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=GBK" import="officeol.mc.tools.*" %>
- <%request.setCharacterEncoding("GBK"); %>
- <html>
- <head>
- <title>
- 天津市河东区经济贸易委员会内部办公网
- </title>
- </head>
- <body bgcolor="#ffffff">
- <h1>
- 权限组修改
- </h1>
- <br />
- <%
- String message = request.getAttribute("msg")==null?"":request.getAttribute("msg").toString();
- out.print(message);
- String pg = request.getParameter("pg");
- if(pg!=null){
- DBConn dbc = new DBConn();
- String sql1 = "SELECT pg.popeid,pg.popegroup FROM popedomgroup AS pg INNER JOIN popedom AS p ON pg.popeid = p.id AND pg.popegroup= '"+pg+"' GROUP BY pg.popeid,pg.popegroup";
- String[][] mpope = dbc.getArray(sql1);
- for(int i = 0; i < mpope.length; i++){
- for(int j = 0; j < mpope[i].length; j++){
- out.println(mpope[i][j]);
- }
- }
- String sql = "select * from popedom";
- String[][] pope = dbc.getArray(sql);
- %>
- <form name="form1" method="post" action="popogroupModAction.do">
- <p>
- 权限
- </p>
- <table width="90%" border="1">
- <tr>
- <td> </td>
- <td>权限编号</td>
- <td>权限说明</td>
- <td>权限类型</td>
- <td>权限字符串</td>
- </tr>
- <%
- int k = 0;
- for(int i = 0; i < pope.length; i++){
- k++;
- %>
- <tr>
- <td>
- <%String check = "";
- for(int x = 0; x < mpope.length; x++){
- if(mpope[x][0].equals(pope[i][2])){
- check = "checked="checked"";
- }
- }
- %><input type="checkbox" name="id<%=i%>" value="<%=pope[i][2]%>" <%=check%> />
- </td>
- <td><%=pope[i][2]%></td>
- <td><%=pope[i][1] %></td>
- <td><%=pope[i][3] %></td>
- <td><%=pope[i][0] %></td>
- </tr>
- <%
- }
- %>
- <tr>
- <td><input type="hidden" value="<%=k%>" name="num" /></td>
- <td><input type="hidden" value="<%=pg%>" name="pgname"/></td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </table>
- <p>
- <input type="submit" name="Submit" value="提交">
- </p>
- </form>
- <%
- }
- %>
- </body>
- </html>