userpopemodify.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>
- </head>
- <body bgcolor="#ffffff">
- <h4>
- 权限组用户修改
- </h4>
- <%
- String message = request.getAttribute("msg")==null?"":request.getAttribute("msg").toString();
- out.print(message);
- String ugmd5 =request.getParameter("ug");
- String sql = "select * from groupmanage where ugmd5 ='"+ugmd5+"'";
- DBConn dbc = new DBConn();
- String[][] gm = dbc.getArray(sql);
- String pgsql = "select popegroup from popedomgroup group by popegroup";
- String[][] pg = dbc.getArray(pgsql);
- if(pg!=null){
- %>
- <form name="form1" method="post" action="userPopeModAction.do">
- <table width="90%" border="1">
- <tr>
- <td>用户组</td>
- <td>
- <input type="hidden" value="<%=gm[0][0]%>" name="ug"/> <%=gm[0][0]%> </td>
- <td> </td>
- </tr>
- <tr>
- <td>权限组</td>
- <td>
- <select name="pg">
- <%
- for(int i = 0; i < pg.length; i++){
- String tm = "";
- if(pg[i][0].equals(gm[0][2])){
- tm = "selected="selected"";
- }
- %>
- <option value="<%=pg[i][0]%>" <%=tm%> ><%=pg[i][0] %></option>
- <%
- }
- %>
- </select> </td>
- <td> </td>
- </tr>
- <tr>
- <td>说明</td>
- <td><textarea name="sm" cols="50" rows="5"><%=gm[0][3] %></textarea></td>
- <td> </td>
- </tr>
- <tr>
- <td colspan="3"><input type="submit" name="Submit" value="保存"></td>
- </tr>
- </table>
- </form>
- <p> </p>
- <%
- }else{
- out.print("没有权限组!");
- }
- %>
- </body>
- </html>