📄 changepass.asp
字号:
<% if not session("sel") then
Response.redirect "usdl.asp"
end if
j=session("dl")
%>
<!--#include file="conn.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE><%=page_name%> – <%=page_title%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK
href="images/style.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
</HEAD>
<%
char=""
if Trim(Request.QueryString("w"))="save" then
if Trim(Request("password1"))=Trim(Request("password2")) and Trim(Request("password1"))<>"" then
sql="update user set password='"&Trim(Request("password1"))&"' where userid=('"&session("us")&"')"
conn.execute(sql)
char="密码修改成功"
else
char="修改不成功 两次输入密码不正确或是密码为空"
end if
end if
%>
<BODY leftMargin=0 background=images/bg.jpg topMargin=0 marginheight="0"
marginwidth="0">
<!--#include file="head.asp" -->
<TABLE height=288 cellSpacing=0 cellPadding=0 width=760 align=center
bgColor=#ffffff border=0>
<TBODY>
<TR>
<TD width=171 height=288 vAlign=top background="images/bg_l_n.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><img src="images/domain_image.gif" width="174" height="119"></div></td>
</tr>
<tr>
<td height="17" bgcolor="#EEEEEE"><div align="center">欢迎: <font color="#FF0000"><strong><%= session("us") %></strong></font> 光临</div></td>
</tr>
<tr>
<% us=session("us")
sql="select * from user where userid='"&us&"'"
rs.open sql,conn,1,1
%>
<td><p>您的账面存款:</p>
<p align="center"><font color="#FF0000">¥ <%= rs("je") %></font></p>
<p align="center">客户等级: <font color="#FF0000"><%= rs("sf") %>
<% rs.close %>
</font></p></td>
</tr>
<tr>
<td height="1" background="images/2.jpg"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">
<!--#include file="user_inc.asp" -->
</div></td>
</tr>
<tr>
<td><p>
<% us=session("us")
sql="select * from user where userid='"&us&"'"
rs.open sql,conn,1,1
%>
</p></td>
</tr>
<tr>
<td height="1" background="images/2.jpg"></td>
</tr>
</table></TD>
<td height="288" valign="top"><table width="573" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="573"><img src="images/mameger.gif" width="437" height="43"></td>
</tr>
<tr>
<td><form name="form2" method="post" action="changepass.asp?w=save">
<div align="center">
<p> </p>
<p>会员<font color="#FF0000"><strong><%= session("us") %></strong></font>的密码 更改</p>
<p> </p>
<table width="233" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="83" height="28">输入新密码:</td>
<td width="150"><input name="password1" type="password" id="password1" size="15"></td>
</tr>
<tr>
<td height="26">确认新密码:</td>
<td><input name="password2" type="password" id="password2" size="15"></td>
</tr>
<tr>
<td height="32" colspan="2"><div align="center">
<input type="submit" name="Submit2" value="-确定修改-">
</div></td>
</tr>
</table>
</div>
</form></td>
</tr>
</table>
<p align="center"> <font color="#FF0000"><%= char %></font></p></td>
</td>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
<TBODY>
<TR>
<TD bgColor=#999999><IMG height=1 src="images/spacer.gif"
width=1></TD>
</TR>
</TBODY>
</TABLE>
<!--#include file="foot.asp" -->
<%conn.close
set conn= nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -