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

OA系统

开发平台:

Java

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