⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 forget.asp

📁 基于ASP的SQL小区物业管理系统课程设计
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="inc/conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>找回密码</title>
<style type="text/css">
 @import url("inc/body.css");
 @import url("inc/nav.css");
.browser {
    width:100%;
	margin:0px auto;
	border-collapse:collapse;
	text-align:center;
}
.browser th,td {
	height:40px;
}
.browser th {
    text-align:center;
}
.browser .fleft {
    text-align:left;
	padding-left:10px;
}
.browser .fright {
    text-align:right;
}
/*register.asp*/
#lay {
    width:550px;
	margin:0px auto;
	border:1px solid #CCCCCC;
}
#top {
    height:20px;
	width:552px;
	margin:30px auto 0px;
	text-align:center;
	font-weight:bolder;
	font-size:14px;
	color:#EAEAEA;
}
#top .a {
     width:20px;
	 height:20px;
	 float:left;
}
#top .b {
     width:512px;
	 height:18px;
	 float:left;
     background-color:#9AC0CD;
	 padding-top:2px;
}
</style>
<script language="javascript">
function checkForm(){
if(document.forget.oname.value==""){
alert('请填写您的用户名!');
document.forget.oname.focus();
return false;
}
if(document.forget.question.value==0){
alert('请输入提问的问题!');
document.forget.question.focus();
return false;
}
if(document.forget.answer.value==""){
alert('请填写您的密码!');
document.forget.answer.focus();
return false;
}
}
</script>
</head>

<body>
<!--#include file="inc/header.asp"-->
<div id="abody">
    <div id="top">
	    <div class="a"><img src="yanzheng/j1.gif" /></div>
		<div class="b">找回密码</div>
		<div class="a"><img src="yanzheng/j2.gif" /></div>
	</div>
  <div id="lay">
     <form id="forget" name="forget" method="post" action="forget_do.asp" onSubmit="return checkForm();">
	    <table class="browser">
		  <tr bgcolor="#CCCCCC">
		    <td class="fright">请输入您的用户名:</td>
		    <td class="fleft"><input name="oname" type="text" id="oname" size="15" /></td>
		  </tr>
	      <tr bgcolor="#FFFAFA">
		     <td class="fright">密码提问问题:</td>
			 <td class="fleft">
          <select name="question">
		    <option value="0">请选择提问的问题!</option>
            <option value="您的家乡在哪?">您的家乡在哪?</option>
            <option value="您最尊敬的人?">您最尊敬的人?</option>
            <option value="您最喜欢的明星?">您最喜欢的明星?</option>
            <option value="您的出生地点?">您的出生地点?</option>
            <option value="您最喜欢听的音乐?">您最喜欢听的音乐?</option>
          </select>			 </td>
		  </tr>
	      <tr bgcolor="#CCCCCC">
		     <td class="fright">答案:</td>
		    <td class="fleft"><input name="answer" type="text" id="name" size="15" /></td>
		  </tr>
		  <tr bgcolor="#FFFAFA">
		     <td colspan="2"><input class="submitB" name="Sumbit" type="submit" value="找回密码" /></td>
		  </tr>
		  	 <% 
	    dim result,pass,oname
	    result=Request.QueryString("result")
		pass=Request.QueryString("pass")
		username=Request.QueryString("username")
		if result<>"" then
		Response.Write "<tr bgcolor='#CCCCCC'>"
		Response.Write "<td colspan='2'><font color='#FF0000'>"&result&"</font></td>"
		Response.Write "</tr>"
		end if
		if pass<>"" then
		Response.Write "<tr bgcolor='#CCCCCC'>"
		Response.Write "<td colspan='2'>您的用户名是:<font color='#FF0000'>"&username&"</font>&nbsp;&nbsp;密码是:<font color='#FF0000'>"&pass&"</font>&nbsp;&nbsp;(请保存好密码,以防丢失)</td>"
		Response.Write "</tr>"
		end if
	 %>
	   </table>
    </form>
  </div>
</div>
<!--#include file="inc/bottom.asp"-->
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -