📄 inf_edit.jsp
字号:
<%@ page language="java" import="java.sql.*" contentType="text/html;charset=gb2312"%>
<jsp:useBean id="search" class="com.db.Common" scope="page"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>控制面板</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/mm_lodging1.css" type="text/css">
</head>
<%
request.setCharacterEncoding("gb2312");
if(session.getAttribute("isLogin")==null)
{
%>
<jsp:forward page="../login/login.html"/>
<%
}
String username=session.getAttribute("user").toString();
String sql="select * from userinf where username='"+username+"'";
%>
<body text=#003300 vLink=#002200 leftMargin=0 topMargin=0>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr width="600">
<td><img src="../image/16.gif"></td>
</tr>
</table>
<table cellSpacing=0 cellPadding=0 width=600 align="center" bgcolor="#033D7C">
<TBODY>
<tr width="600" bgcolor="#a4c2c2">
<td height="36" colspan="3" id="navigation" class="navText" align="center"><a href="../user/index.jsp">首页</a>
<a href="../user/inf_edit.jsp">控制面板</a> <a href="../common/exit.jsp">退出</a> </td>
</tr>
</TBODY>
</table>
<br>
<%
ResultSet rs=search.getResultSetBySql(sql);
if(rs!=null&&rs.next())
{
%>
<table cellSpacing=0 cellPadding=0 width=600 align="center" align="center">
<tr>
<td width="600" align="center" bgcolor="#cccccc">
以下是您的详细信息列表
</td>
</tr>
</table>
<table cellSpacing=0 cellPadding=0 width=600 align="center" align="center">
<form action="../user/do_edit.jsp?username=<%=username%>" method="post">
<tr>
<td width="600" align="center" bgcolor="#EBEBEB">
密码:
</td>
<td width="600" align="center" bgcolor="#EBEBEB">
<input type="password" name="f_psd" value="<%=rs.getString(2)%>">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#EBEBEB">
重复密码:
</td>
<td width="600" align="center" bgcolor="#EBEBEB">
<input type="password" name="s_psd" value="<%=rs.getString(2)%>">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#EBEBEB">
真实姓名:
</td>
<td width="600" align="center" bgcolor="#EBEBEB">
<input type="text" name="realname" value="<%=rs.getString(3)%>">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#EBEBEB">
性别:
</td>
<td width="600" align="center" bgcolor="#EBEBEB">
男:<input type="radio" name="sect" value="男" checked>
女:<input type="radio" name="sect" value="女">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#EBEBEB">
年龄:
</td>
<td width="600" align="center" bgcolor="#EBEBEB">
<input type="text" name="age" value="<%=rs.getInt(5)%>">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#EBEBEB">
身份证号:
</td>
<td width="600" align="center" bgcolor="#EBEBEB">
<input type="text" name="idcard" value="<%=rs.getString(6)%>">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#EBEBEB">
地址:
</td>
<td width="600" align="center" bgcolor="#EBEBEB">
<input type="text" name="adress" value="<%=rs.getString(7)%>">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#EBEBEB">
电子邮箱:
</td>
<td width="600" align="center" bgcolor="#EBEBEB">
<input type="text" name="mail" value="<%=rs.getString(8)%>">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#EBEBEB">
电话
</td>
<td width="600" align="center" bgcolor="#EBEBEB">
<input type="text" name="phone" value="<%=rs.getString(9)%>">
</td>
</tr>
<tr>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
<td width="600" align="center" bgcolor="#cccccc" height="3">
</td>
</tr>
<tr>
<td width="600" align="right" bgcolor="#EBEBEB">
<input type="submit" value="修改">
</td>
<td width="600" align="left" bgcolor="#EBEBEB">
<input type="reset" value="重置">
</td>
</tr>
</form>
</table>
<%
}
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -