userview.jsp~49~
资源名称:bangong.rar [点击查看]
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:4k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=GBK" import="officeol.mc.tools.*" %>
- <%request.setCharacterEncoding("GBK"); %>
- <html>
- <head>
- <title>
- 天津市河东区经济贸易委员会内部办公网
- </title>
- </head>
- <body bgcolor="#ffffff"><br />
- <h4 align="center">
- 用户修改
- </h4>
- <br />
- <%
- String message = request.getAttribute("msg")==null?"":request.getAttribute("msg").toString();
- out.print(message);
- String un = (String)session.getAttribute("UN");
- String login = (String)session.getAttribute("LOGIN");
- DBConn dbc = new DBConn();
- if(login!=null&&login.equals("OK")){
- String usql = "select * from [user] where username='"+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="<%=user[0][4]%>">
- <input type="hidden" name="un" value="<%=user[0][1]%>"/>
- <input type="hidden" name="typpe" value="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]==null?"":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]==null?"":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]==null?"":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]==null?"":user[0][8]%>"/>
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <td><div align="center"></div></td>
- <tr>
- <td colspan="2"><div align="center">
- <input type="submit" name="Submit" value="保存">
- </div></td>
- </tr>
- </table>
- </form>
- <form action="pwdChangeAction.do" method="POST" name="form2">
- <table width="90%" border="1" align="center">
- <tr>
- <td><div align="center">
- 修改密码<input type="hidden" value="<%=un%>" name="un" />
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td><div align="center">原密码 </div></td>
- <td><div align="center">
- <input type="password" name="pwd"/>
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td><div align="center">新密码 </div></td>
- <td><div align="center">
- <input type="password" name="pwd1"/>
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td><div align="center">确认密码 </div></td>
- <td><div align="center">
- <input type="password" name="pwd2"/>
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- <tr>
- <td colspan="2"><div align="center">
- <input type="submit" value="保存" />
- </div></td>
- <td><div align="center"></div></td>
- </tr>
- </table>
- </form>
- <%
- }else{
- response.sendRedirect("userlogin.jsp");
- }
- %>
- </body>
- </html>