?? showquestion.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<jsp:useBean id="pool" scope="application" class="PoolBean"/>
<%
String username=new String(request.getParameter("username").getBytes("8859_1"));
Connection conn=pool.getConnection();
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
String sql="SELECT * FROM Customers WHERE username='"+username+"'";
ResultSet rsLogin=stmt.executeQuery(sql);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>找回密碼第2步:回答問題 </title>
<link href="yc12" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.yc {
font-size: 12px;
}
body {
margin-top: 0px;
}
.style1 {color: #FF0000}
-->
</style>
</head>
<body>
<table width="67%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><img src="img/lostPassword_r1_c1.jpg" width="799" height="94"></div></td>
</tr>
<tr>
<td height="43" bgcolor="#73AECE"><div align="center" class="yc"><font color="#2d5bbb">找回密碼第</font><span class="style1">2</span><font color="#2d5bbb">步:回答問題</font></div></td>
</tr>
<tr>
<td bgcolor="#73AECE"><div align="center">
<center>
<%
if(rsLogin.next()){
%>
<form name="form1" method="post" action="showPassword.jsp">
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150" align="right" class="yc">您的用戶名是:</td>
<td align="left" class="yc"><%= rsLogin.getString("Username") %></td>
</tr>
<tr>
<td align="right" class="yc">密碼提示問題:</td>
<td align="left" class="yc"><%= rsLogin.getString("Question") %></td>
</tr>
<tr>
<td align="right" class="yc">提示問題答案:</td>
<td align="left"><input name="answer" type="text" id="answer"></td>
</tr>
</table>
<p>
<input name="username" type="hidden" id="username" value="<%= username%>">
<input name="Button" type="button" class="yc" onClick="JavaScript:history.go(-1)" value="上一步">
<input name="Reset" type="reset" class="yc" value="重 設">
<input name="Submit" type="submit" class="yc" value="下一步">
</p>
</form>
<span class="yc">
<%
}else{
%>
</span>
<p class="yc">您輸入的用戶名無效!</p>
<p>
<input name="Button" type="button" class="yc" onClick="JavaScript:history.go(-1)" value="上一步">
</p>
<span class="yc">
<%
}
rsLogin.close();
stmt.close();
pool.releaseConnection(conn);
%>
</span> </div></td>
</tr>
<tr>
<td bgcolor="#73AECE"><div align="center"></div></td>
</tr>
<tr>
<td><div align="center"><img src="img/admin_r3_c1.jpg" width="802" height="26"><br>
<span class="yc">版權所有:ABCD<br>
EasyBuy工作組:ABCD<br>
最后修改日期:2005.7.11</span> </div></td>
</tr>
</table>
<p align="center"> </p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -