userpopeadd.jsp~24~
上传用户: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. <script type="text/JavaScript">
  9. <!--
  10. function MM_jumpMenu(targ,selObj,restore){ //v3.0
  11.   eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  12.   if (restore) selObj.selectedIndex=0;
  13. }
  14. //-->
  15. </script>
  16. </head>
  17. <body bgcolor="#ffffff">
  18. <h1>
  19. 用户权限添加
  20. </h1>
  21. <p><a href="index.jsp">返回首页</a><br />
  22.   <%
  23. String message = request.getAttribute("msg")==null?"":request.getAttribute("msg").toString();
  24. out.print(message);
  25. DBConn dbc = new DBConn();
  26. String pgsql = "select popegroup from popedomgroup group by popegroup";
  27. String[][] pg = dbc.getArray(pgsql);
  28. String ugsql = "select usergroup from usergroup group by usergroup";
  29. String[][] ug = dbc.getArray(ugsql);
  30. if(pg!=null){
  31.   if(ug!=null){
  32.   %>
  33. </p>
  34. <form name="form1" method="post" action="">
  35. <table width="90%" border="1">
  36.   <tr>
  37.     <td>用户组</td>
  38.     <td>
  39.       <select name="ug">
  40.       <%
  41.       for(int i = 0; i < ug.length; i++){
  42.         %>
  43.         <option value="<%=ug[i][0]%>"><%=ug[i][0] %></option>
  44.         <%
  45.       }
  46.       %>
  47.       </select>      </td>
  48.       <td>&nbsp;</td>
  49.   </tr>
  50.   <tr>
  51.     <td>&nbsp;</td>
  52.     <td>
  53.       <select name="select2">
  54.       <%
  55.       for(int i = 0; i < pg.length; i++){
  56.         %>
  57.         <option value="<%=pg[i][0]%>"><%=pg[i][0] %></option>
  58.         <%
  59.         }
  60.       %>
  61.       </select>
  62.     </td>
  63. <td>&nbsp;</td>
  64.   </tr>
  65.   <tr>
  66.     <td colspan="3"><input type="submit" name="Submit" value="提交"></td>
  67.   </tr>
  68. </table>
  69. </form>
  70. <p>&nbsp;</p>
  71. <%
  72.   }else{
  73.     out.print("没有用户组!");
  74.   }
  75. }else{
  76.   out.print("没有权限组!");
  77. }
  78. %>
  79. </body>
  80. </html>