usermodify.jsp~43~
资源名称:bangong.rar [点击查看]
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:3k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=GBK" import="officeol.mc.tools.*" %>
- <%request.setCharacterEncoding("GBK"); %>
- <html>
- <head>
- <title>
- 天津市经贸委在线办公
- </title>
- </head>
- <body bgcolor="#ffffff">
- <h1>
- 用户修改
- </h1>
- <a href="index.jsp">返回首页</a><br />
- <%
- String message = request.getAttribute("msg")==null?"":request.getAttribute("msg").toString();
- out.print(message);
- String un = request.getParameter("un");
- if(un==null){
- request.setAttribute("msg","请选择要修改的用户!");
- response.sendRedirect("userset.jsp");
- }
- DBConn dbc = new DBConn();
- String usql = "select * from [user] where unmd5='"+un+"'";
- String[][] user = dbc.getArray(usql);
- String depsql = "select id,deparname from deparment";
- String[][] depname = dbc.getArray(depsql);
- %>
- <form name="form1" method="post" action="userModAction.do">
- <table width="90%" border="1">
- <tr>
- <td>
- <div align="center">用户名</div></td>
- <td><div align="center">
- <%=user[0][1] %>
- <input type="hidden" name="username" value="<%=un%>">
- <input type="hidden" name="un" value="<%= user[0][1]==null?user[0][1]:""%>"/>
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <tr>
- <td><div align="center">姓名</div></td>
- <td><div align="center">
- <input type="text" name="xm" value="<%=user[0][5]%>"/>
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td><div align="center">性别</div></td>
- <td><div align="center">
- <%
- String m = "";
- String wm ="";
- if(user[0][6]==null){
- m = "checked="checked"";
- wm = "";
- }else{
- if(user[0][6].equals("0")){
- m = "checked="checked"";
- wm = "";
- }else{
- wm = "checked="checked"";
- m = "";
- }
- }
- %>
- <input type="radio" name="sex" <%=m%> value="0" />男
- <input type="radio" name="sex" <%=wm %> value="1"/>女
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td><div align="center"> 办公电话</div></td>
- <td><div align="center">
- <input type="text" name="tel" value="<%=user[0][7]%>"/>
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td><div align="center"> 手机 </div></td>
- <td><div align="center">
- <input type="text" name="tel2" value="<%=user[0][9]%>" />
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td><div align="center"> 邮箱 </div></td>
- <td><div align="center">
- <input type="text" name="email" value="<%=user[0][8]%>"/>
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <td><div align="center"></div></td>
- <tr>
- <td colspan="3"><div align="center">
- <input type="submit" name="Submit" value="提交">
- </div></td>
- </tr>
- </table>
- </form>
- </body>
- </html>