popegroupmodify.jsp~37~
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:2k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GBK" import="officeol.mc.tools.*" %>
  2. <%request.setCharacterEncoding("GBK"); %>
  3. <html>
  4. <head>
  5. <title>
  6. 天津市河东区经济贸易委员会内部办公网
  7. </title>
  8. </head>
  9. <body bgcolor="#ffffff">
  10. <h1>
  11. 权限组修改
  12. </h1>
  13. <br />
  14. <%
  15. String message = request.getAttribute("msg")==null?"":request.getAttribute("msg").toString();
  16. //out.print(message);
  17. String pg = request.getParameter("pg");
  18. if(pg ==null){
  19.   out.print("pg");
  20. }
  21. if(pg!=null){
  22.   DBConn dbc = new DBConn();
  23.   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";
  24.   String[][] mpope = dbc.getArray(sql1);
  25.   for(int i = 0; i < mpope.length; i++){
  26.     for(int j = 0; j < mpope[i].length; j++){
  27.       out.println(mpope[i][j]);
  28.     }
  29.   }
  30.   String sql = "select * from popedom";
  31.   String[][] pope = dbc.getArray(sql);
  32.   %>
  33.   <form name="form1" method="post" action="popogroupModAction.do">
  34.   <p>
  35.   权限
  36.   </p>
  37.   <table width="90%" border="1">
  38.     <tr>
  39.       <td>&nbsp;</td>
  40.       <td>权限编号</td>
  41.       <td>权限说明</td>
  42.       <td>权限类型</td>
  43.       <td>权限字符串</td>
  44.     </tr>
  45.     <%
  46.     int k = 0;
  47.     for(int i = 0; i < pope.length; i++){
  48.       k++;
  49.       %>
  50.       <tr>
  51.         <td>
  52.         <%String check = "";
  53.         for(int x = 0; x < mpope.length; x++){
  54.           if(mpope[x][0].equals(pope[i][2])){
  55.             check = "checked="checked"";
  56.           }
  57.         }
  58.         %><input type="checkbox" name="id<%=i%>" value="<%=pope[i][2]%>" <%=check%> />
  59.           </td>
  60.           <td><%=pope[i][2]%></td>
  61.           <td><%=pope[i][1] %></td>
  62.           <td><%=pope[i][3] %></td>
  63.           <td><%=pope[i][0] %></td>
  64.       </tr>
  65.       <%
  66.       }
  67.       %>
  68.       <tr>
  69.         <td><input type="hidden" value="<%=k%>" name="num" /></td>
  70.           <td><input type="hidden" value="<%=pg%>" name="pgname"/></td>
  71.           <td>&nbsp;</td>
  72.           <td>&nbsp;</td>
  73.           <td>&nbsp;</td>
  74.       </tr>
  75.   </table>
  76.   <p>
  77.     <input type="submit" name="Submit" value="提交">
  78.   </p>
  79.   </form>
  80.   <%
  81.   }
  82. %>
  83. </body>
  84. </html>