userpopeadd.jsp~22~
资源名称: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>
- <script type="text/JavaScript">
- <!--
- function MM_jumpMenu(targ,selObj,restore){ //v3.0
- eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
- if (restore) selObj.selectedIndex=0;
- }
- //-->
- </script>
- </head>
- <body bgcolor="#ffffff">
- <h1>
- 用户权限添加
- </h1>
- <p><a href="index.jsp">返回首页</a><br />
- <%
- String message = request.getAttribute("msg")==null?"":request.getAttribute("msg").toString();
- out.print(message);
- DBConn dbc = new DBConn();
- String pgsql = "select popegroup from popedomgroup group by popegroup";
- String[][] pg = dbc.getArray(pgsql);
- String ugsql = "select usergroup from usergroup group by usergroup";
- String[][] ug = dbc.getArray(ugsql);
- if(pg!=null){
- if(ug!=null){
- %>
- </p>
- <form name="form1" method="post" action="">
- <table width="90%" border="1">
- <tr>
- <td> </td>
- <td>
- <select name="ug">
- <%
- for(int i = 0; i < ug.length; i++){
- %>
- <option value="<%=ug[i][0]%>"><%=ug[i][0] %></option>
- <%
- }
- %>
- </select> </td>
- <td> </td>
- </tr>
- <tr>
- <td> </td>
- <td>
- <select name="select2">
- <%
- for(int i = 0; i < pg.length; i++){
- %>
- <option value=""></option>
- <%
- }
- %>
- </select>
- </td>
- <td> </td>
- </tr>
- <tr>
- <td colspan="3"><input type="submit" name="Submit" value="提交"></td>
- </tr>
- </table>
- </form>
- <p> </p>
- <%
- }else{
- out.print("没有用户组!");
- }
- }else{
- out.print("没有权限组!");
- }
- %>
- </body>
- </html>