getpwd.asp

来自「采用ASP。NET做的网上游戏交易平台」· ASP 代码 · 共 209 行

ASP
209
字号
<!--#include file="top.asp"-->
<!--#include file="jmail.asp"-->

<style>
<!--
a:link.nav {COLOR: #ffffff;TEXT-DECORATION: none}
.navbg {filter : progid:DXImageTransform.Microsoft.DropShadow(color=#ffffff,offX=1,offY=1,positives=true);}
.navbg1 {filter : progid:DXImageTransform.Microsoft.DropShadow(color=#6C2C00,offX=1,offY=1,positives=true);}
a:link.nav1 {COLOR: #434343;TEXT-DECORATION: none}
.toptext {color: #555555;filter:dropshadow(color=#ffffff,offx=1,offy=1,positive=1);}
-->
</style>

<%
if request.form("btnpwd")<>"" then
dim myname,myemail
myname=trim(request.form("t1"))
myemail=trim(request.form("t2"))
sql="select * from userinfo  where username = '"&myname&"' and email='"&myemail&"'"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,3,2
if rs.eof then
Response.Write "<script language=javascript>" &vbCrLf&_
"alert('您输入帐号和邮件地址不匹配!!!');" &vbCrLf&_
"window.close();" &vbCrLf&_
"</script>"
response.end
else
'--------------------------------
BodyText=BodyText&"<center><table width='60%' border='0' cellspacing='1' cellpadding='0' bgcolor='#CCCCCC'>"
BodyText=BodyText&"<tr bgcolor='#eeeeee'><td colspan='2' align='center' height='40'><strong> 找 回 密 码 信 息 </strong></td></tr>"
BodyText=BodyText&"<tr bgcolor='#FFFFFF'><td width='30%' height='25' align='right'>&nbsp;用户名:</td><td width='70%'>&nbsp;"&rs("username")&"</td></tr>"
BodyText=BodyText&"<tr bgcolor='#FFFFFF'><td width='30%' height='25' align='right'>&nbsp;密  码:</td><td width='70%'>&nbsp;"&rs("password")&"</td></tr>"
BodyText=BodyText&"<tr bgcolor='#FFFFFF'><td width='30%' height='25' align='right'>&nbsp;注 册 时  间:</td><td width='70%'>&nbsp;"&rs("regDate")&"</td></tr>"
BodyText=BodyText&"<tr bgcolor='#eeeeee'><td colspan='2' height='25' align='center'>&nbsp;请妥善保存您的资料...</td></tr>"
BodyText=BodyText&"</table></center>"
rs.close
set rs=nothing
SendMail "www.8000wg.com(管理员)",myemail,"找回密码信息",BodyText
Response.Write "<script language=javascript>" &vbCrLf&_
"alert('您的帐号和密码已经发到您的邮箱!!!');" &vbCrLf&_
"window.close();" &vbCrLf&_
"</script>"
end if

end if
%>

<body style="text-align: center">

<table border="0" width="100%" cellspacing="0" cellpadding="0" background="images/bg1.jpg" height="100%">
	<tr>
		<td valign=top>
		<table border="0" width="900" cellspacing="0" cellpadding="0">
			<tr>
				<td width="900" colspan="3" height="7"></td>
			</tr>
			<tr>
				<td width="65"> </td>
				<td width="778" height="50">
				<table border="0" width="778" cellspacing="0" cellpadding="0">
					<tr>
						<td width="9">
						<img border="0" src="images/2vv2_r7_c2.gif" width="9" height="50"></td>
						<td width="759" background="images/2vv2_r7_c4.gif">						
						<table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%">
          <%
		  call getGameName2
		  for i=0 to 20
		  if i=0 then response.write "<tr height=21>"
		  
		  response.write "<td align='center'valign=bottom class=top><a href='search.asp?key="&tmpArr1(i)&"'>"&formatGameName(tmpArr2(i))&"</a> &nbsp;|</td>"
		  if i mod 11 =10 and i>0 then response.write "</tr><tr height=22>"
		  next
		  response.write "<td align='center' valign=bottom class=top><a href='search.asp?key=all'>全 部...</a></td>"
		  %>
        </table>
	</td>
						<td width="10">
						<img border="0" src="images/2vv2_r7_c31.gif" width="10" height="50"></td>
					</tr>
				</table>
				</td>
				<td width="57"> </td>
			</tr>
			<tr>
				<td width="65"></td>
				<td width="778" height="7"></td>
				<td width="57"></td>
			</tr>
			<tr>
				<td width="65"> </td>
				<td width="778">
				
<div align="center">
	<table border="0" width="770" cellspacing="0" cellpadding="0">
		<tr>
			<td background="images/2_r1_c2.gif" width="22">
			<img border="0" src="images/2_r1_c1.gif" width="22" height="33"></td>
			<td background="images/2_r1_c2.gif" width="724" valign=bottom>
			<table border="0" cellspacing="0" cellpadding="0" height="28">
				<tr>
					<td class=navbg>艾维游戏交易平台---找回密码</td>
				</tr>
			</table>
			</td>
			<td background="images/2_r1_c2.gif" width="24">
			<img border="0" src="images/2_r1_c3.gif" width="24" height="33"></td>
		</tr>
		<tr>
			<td background="images/2_r2_c1.gif" width="770" colspan="3" height="30">
			<div align="center">
				<table border="0" width="96%" cellspacing="0" cellpadding="0">
							<tr >
								<td width="748" class=top>


			<b>请注意:</b> 找回密码前,请确认您输入的邮箱地址跟账号是否配对! 密码将发送到您注册时填写的邮箱中!</td>
							</tr>
						</table>
			</div>
</td>
		</tr>
		<tr>
			<td width="770" colspan="3" valign=top>
			<table border="0" width="770" cellspacing="0" cellpadding="0">
				<tr>
					<td width="13" bgcolor="#69B4FE" valign=top>
					<img border="0" src="images/2_r3_c1.gif" width="13" height="185"></td>
					<td width="744" bgcolor="#FFFFFF" valign=top><table border="1" width="100%" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#1965CD" height="300">
						<tr><td valign=top>
<div align="center">
<table width="500" height="190" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
          <form action="getPwd.asp" method="post" name="frmpwd" target="_self"><tr align="center"> 
            <td height="40" colspan="2"><strong><font size="2" color="#800000">找 回 密 码</font></strong></td>
          </tr>
		 
          <tr> 
            <td width="33%" height="30"><div align="right">请输入您的帐号:</div></td>
            <td width="67%" height="30">
			<input name="t1" type="text" id="t1" size="35"></td>
          </tr>
          <tr> 
            <td height="30"><div align="right">请输入您的邮箱:</div></td>
            <td height="30"><input name="t2" type="text" id="t2" size="35">
              <font color="#FF0000"> &nbsp;*</font> <font color="#FF0000">注册时的邮箱地址</font></td>
          </tr>
          <tr> 
            <td> </td>
            <td height="40">    <input name="btnpwd" type="submit" id="btnpwd" value="确  定" style="WIDTH: 100px; HEIGHT: 30px"></td>
          </tr></form>
        </table>							</div>
							</td>
						</tr>
					</table>
					</td>
					<td width="13" bgcolor="#69B4FE" valign=top>
					<img border="0" src="images/2_r3_c1.gif" width="13" height="185"></td>
				</tr>
				<tr>
					<td width="13" height="10">
					<img border="0" src="images/2_r4_c1.gif" width="13" height="10"></td>
					<td width="744" bgcolor="#69B4FE"></td>
					<td width="13" bgcolor="#69B4FE">
					<img border="0" src="images/2_r4_c11.gif" width="13" height="10"></td>
				</tr>
			</table>
			</td>
		</tr>
	</table>
</div>
				
</td>
				<td width="57"> </td>
			</tr>
			<tr>
				<td width="65"></td>
				<td width="778" height="7"></td>
				<td width="57"></td>
			</tr>
			<tr>
				<td width="65"> </td>
				<td width="778">
				<table border="0" width="778" cellspacing="0" cellpadding="0">
					<tr>
						<td width="778" height=7></td>
					</tr>
					<tr>
						<td width="778"><!--#include file="bottom.asp"-->
						 </td>
					</tr>
					<tr>
						<td width="778">
					
								
								</td>
								</tr>
							</table>
						</div>
						</td>
					</tr>
				</table>
				</td>
				<td width="57"> </td>
			</tr>
		</table>
		</td>
	</tr>
</table>

⌨️ 快捷键说明

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