usergroupmod.jsp
资源名称:bangong.rar [点击查看]
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:1k
源码类别:
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>
- <br />
- <p>
- <%
- String message = request.getAttribute("msg")==null?"":request.getAttribute("msg").toString();
- out.print(message);
- String dmsg = (String )session.getAttribute("dmsg");
- if(dmsg!=null){
- out.print(dmsg);
- session.removeAttribute("dmsg");
- }
- DBConn dbc = new DBConn();
- String sql = "select ug.usergroup,d.deparname,ug.ugmd5,d.id from usergroup as ug inner join [user] as u on ug.userid = u.id inner join deparment as d on ug.depid = d.id group by ug.usergroup,d.deparname,ug.ugmd5,d.id";
- String[][] ug = dbc.getArray(sql);
- if(ug==null){
- out.print("没有用户组!");
- }else{
- %>
- </p>
- <table width="90%" border="1">
- <tr>
- <td>用户组</td>
- <td>用户组所属</td>
- <td>修改用户组</td>
- <td>删除用户组</td>
- </tr>
- <%for(int i = 0; i < ug.length; i++){ %>
- <tr>
- <td><%=ug[i][0] %></td>
- <td><%=ug[i][1] %></td>
- <td><a href="usergroupmodify.jsp?ug=<%=ug[i][2]%>&dep=<%=ug[i][3] %>">修改</a></td>
- <td><a href="usergroupdel.jsp?ug=<%=ug[i][2]%>">删除</a></td>
- </tr>
- <%
- }
- %>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </table>
- <%
- }
- %>
- <p> </p>
- </body>
- </html>