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

📄 password.asp

📁 电子商务系统Easy_Buy是一个在线销售系统
💻 ASP
字号:
<!--#include file="0.asp"-->
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../conn/email.asp"-->
<!--#include file="../../conn/nosql.asp" -->
<% name=nosql(session("www.wygk.cn"))
if request("x")<>"" then
Set s= Server.CreateObject("abodb.recordset")
set bbsinfo = conn.execute("select * from bbs_info")
set rs = conn.execute("select * from user_name where  name='"&name&"'")
if request("password")=trim(rs("password")) then
conn.execute("Update user_name set password = '"&nosql(replace(request("password2"),"'",""))&"' where  name='"&name&"'")
'发信
if email=rs("email")&"@"&rs("email2")<>"" then
html="<html><head><title>提醒:您在"&bbsinfo("mc")&"的店铺密码己经更改!</title><meta http-equiv=Content-Type content=text/html; charset=gb2312></head><body bgcolor=#FFFFFF text=#000000>"
html=html&"亲爱的"&rs("name")&"店主,您好!<br><br>  感谢您运用"&bbsinfo("mc")&"电子商务平台。<br>"
html=html&"  你的"&rs("name")&"店铺的新密码更改如下:<br>"
html=html&"  新密码:"&request("password2")&"<br>"
html=html&"  管理员登陆网址:http://www."&bbsinfo("webmi")&"/shop/user/admin/login.asp"
html=html&"<br><br>"&bbsinfo("mc")&"电子商务平台 ◎ 客户服务中心<br>" 
html=html&"================================================== <br>电话:+"&bbsinfo("tel")&" <br>"
email=rs("email")&"@"&rs("email2")
bt = "密码修改成功!"
if my_mailto="0" then
smtp email,bt,html
elseif my_mailto="1" then
jmail email,bt,html
end if
end if
'发信结束
Response.Write("<script>alert(""设置成功"");location.href=""password.asp"";</script>")
else
Response.Write("<script>alert(""原密码错误,请检查!"");history.back();</script>")
end if
rs.close
end if
set rs = conn.execute("select ps from user_name where name='"&name&"'")
 %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
<STYLE>
BODY {
	SCROLLBAR-FACE-COLOR: #799ae1;
	SCROLLBAR-HIGHLIGHT-COLOR: #799ae1;
	SCROLLBAR-SHADOW-COLOR: #799ae1;
	SCROLLBAR-3DLIGHT-COLOR: #799ae1;
	SCROLLBAR-ARROW-COLOR: #fcfcfc;
	SCROLLBAR-TRACK-COLOR: #aabfec;
	SCROLLBAR-DARKSHADOW-COLOR: #799ae1;
	SCROLLBAR-BASE-COLOR: #799ae1;
	background-color: #CAD7F7;
}
</STYLE>
<style type="text/css">
<!--
.STYLE3 {
	font-size: 12px;
	color: #FFFFFF;
}
-->
</style>
</head>
<body><br>
<script language="javascript">
	<!--//
	function checksignup() {
		if ( document.form.password.value == '' ) {
			window.alert('请输入原管理员密码!!');
			document.form.password.focus();
			return false;
		}
		if (( document.form.password2.value == '' )||( document.form.password2.value.length<6)) {
			window.alert('请输入6位以上新管理员密码!!');
			document.form.password2.focus();
			return false;
		}
		if ( document.form.password3.value == '' ) {
			window.alert('请确认新管理员密码!!');
			document.form.password3.focus();
			return false;
		}
		if ( document.form.password2.value!=document.form.password3.value ) {
			window.alert('新管理员密码与确认密码不一致,请重新输入!!');
			document.form.password2.focus();
			return false;
		}
			return true;
			}
	//-->
</script>
<form name="form" method="post" action="?x=yes">
  <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
    <tr> 
      <td height="25" colspan="2" background="../../images/admin_bg_11.gif">&nbsp; <strong><span class="STYLE3">网店管理员密码修改</span></strong><font color="#FF3333" size="3"><strong>&nbsp;      </strong></font></td>
    </tr>
    <tr>
      <td align="right" bgcolor="#E8F1FF">原密码:</td>
      <td bgcolor="#E8F1FF"><input name="password" type="password" id="password" size="20" maxlength="20"></td>
    </tr>
    <tr> 
      <td align="right" bgcolor="#E8F1FF">新密码:</td>
      <td bgcolor="#E8F1FF"><input name="password2" type="password" id="password2" size="20" maxlength="20"></td>
    </tr>
    <tr> 
      <td width="153" align="right" bgcolor="#E8F1FF">新密码确认:</td>
      <td width="829" bgcolor="#E8F1FF"> <input name="password3" type="password" id="password3" size="20" maxlength="20"></td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#E8F1FF">&nbsp;</td>
      <td bgcolor="#E8F1FF"> <input name="Submit" type="submit" value="提 交" onClick="javascript:return checksignup()"> 
      <input name="Submit2" type="reset" value="重 置"></td>
    </tr>
  </table>

</form>
</body>
</html>
<%rs. close
set rs=nothing
conn.close
set conn=nothing
%>

⌨️ 快捷键说明

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