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

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");
  14. if(info!=null){
  15.   out.print(info);
  16. }else{
  17.   out.print("info is null");
  18. }
  19. DBConn dbc = new DBConn();
  20. String sql = "select * from popedom";
  21. String[][] pope = dbc.getArray(sql);
  22. %>
  23. <form name="form1" method="post" action="popegroupAddAction.do">
  24.   <p>权限组名
  25.     <input type="text" name="pgname">
  26. </p>
  27.   <p>
  28.   权限
  29.   </p>
  30.   <table width="90%" border="1">
  31.     <tr>
  32.       <td>&nbsp;</td>
  33.       <td>权限编号</td>
  34.       <td>权限说明</td>
  35.       <td>权限类型</td>
  36.       <td>权限字符串</td>
  37.     </tr>
  38.   <%
  39.   int j = 0;
  40.   for(int i = 0; i < pope.length; i++){
  41.     j++;
  42.     %>
  43.     <tr>
  44.       <td><input type="checkbox" name="id<%=i%>" value="<%=pope[i][2]%>"/></td>
  45.       <td><%=pope[i][2]%></td>
  46.       <td><%=pope[i][1] %></td>
  47.       <td><%=pope[i][3] %></td>
  48.       <td><%=pope[i][0] %></td>
  49.     </tr>
  50.     <%
  51.     }
  52.     %>
  53.     <tr>
  54.       <td><input type="hidden" value="<%=j%>" name="num" /></td>
  55.       <td>&nbsp;</td>
  56.       <td>&nbsp;</td>
  57.       <td>&nbsp;</td>
  58.       <td>&nbsp;</td>
  59.     </tr>
  60.   </table>
  61.   <p>
  62.     <input type="submit" name="Submit" value="提交">
  63.   </p>
  64. </form>
  65. <p>&nbsp;</p>
  66. </body>
  67. </html>