userpopeadd.jsp
资源名称: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">
- <h4>
- 用户权限添加
- </h4>
- <p><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="userPopeAddAction.do">
- <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="pg">
- <%
- for(int i = 0; i < pg.length; i++){
- %>
- <option value="<%=pg[i][0]%>"><%=pg[i][0] %></option>
- <%
- }
- %>
- </select> </td>
- <td> </td>
- </tr>
- <tr>
- <td>说明</td>
- <td><textarea name="sm" cols="50" rows="5"></textarea></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>