70 lines
2.2 KiB
Plaintext
70 lines
2.2 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=GB18030"
|
|
pageEncoding="GB18030" import="java.sql.*"%>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<jsp:useBean id="db11" class="com.DB" scope="page" />
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
<title>Insert title here</title>
|
|
<link href="../css/style.css" rel="stylesheet" type="text/css">
|
|
</head>
|
|
<body>
|
|
<table width="985" height="548" border="0" cellpadding="0"
|
|
cellspacing="0">
|
|
<tr>
|
|
<td valign="top" background="../image/RIGHT.jpg"><table
|
|
width="985" height="50" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td> </td>
|
|
</tr>
|
|
</table> <%
|
|
//判断是否有该用户信息
|
|
String users=(String)session.getAttribute("ck");
|
|
String sqlo="select * from reg where username='"+users+"'";
|
|
ResultSet rs=db11.GetRs(sqlo);
|
|
if(!rs.next())
|
|
{
|
|
out.println("暂时没有信息");
|
|
}
|
|
else{
|
|
%>
|
|
<form id="form1" name="form1" method="post" action="stu_update.jsp">
|
|
<table width="530" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td height="17" colspan="2"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="27"> </td>
|
|
<td width="503" height="20">账户: <input name="username"
|
|
type="text" id="username" value="<%=rs.getString("username") %>" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td> </td>
|
|
<td height="19">密码: <input name="password" type="password"
|
|
id="password" value="<%=rs.getString("password") %>" /></td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td> </td>
|
|
<td height="20">电话: <input name="tel" type="text" id="tel"
|
|
value="<%=rs.getString("tel") %>" /></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> </td>
|
|
<td height="20">简介: <textarea name="jianjie" cols="40"
|
|
rows="3" id="jianjie"><%=rs.getString("jianjie") %></textarea></td>
|
|
</tr>
|
|
<tr>
|
|
<td> </td>
|
|
<td height="40"><input type="submit" name="Submit"
|
|
value="修改" /> <input type="reset" name="Submit2"
|
|
value="放弃" /></td>
|
|
</tr>
|
|
</table>
|
|
</form> <%} %></td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html> |