电子商务源代码
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
</tr>
<tr>
<td bgcolor="#FFFFFF"><strong>新密码</strong></td>
<td bgcolor="#FFFFFF"><input type="text" value="" name="npwd"></td>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="admincheck.asp"-->
<!--#include file="conn.asp"-->
<%
if request.QueryString("act")="edit" then
'check password
sqlCP="select id from [admin] where [password]='"&md5(trim(request.Form("opwd")))&"'"
set rsCP=server.CreateObject("adodb.recordset")
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF"><input type="submit" value="修改"></td>
</tr>
</form>
</table>
</div>
<div style="clear:both"></div>
rsCP.open sqlCP,conn,1,1
if rsCP.eof or rsCP.bof then
rsCp.close
set conn=nothing
response.Redirect("?w=1")
else
sqlUp="update [admin] set [password]='"&md5(trim(request.Form("npwd")))&"'"
<h3 class="bg"></h3>
</div>
<
if request.QueryString("w")="1" then
response.Write("您的密码错误!")
elseif request.QueryString("w")="2" then
response.Write("您的密码已经修改完成!")
end if
response.Write(sqlUp)
conn.execute(sqlUp)
response.Redirect("?w=2")
end if
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "/TR/xhtml1/DTD/xhtml1-transitional.dtd">
%>
<table cellpadding="10" cellspacing="1" align="center" bgcolor="#CCCCCC" border="0">
<form action="?act=edit" method="post" name="f" enctype="application/x-www-form-urlencoded" onSubmit="return c()">
<tr>
<td bgcolor="#FFFFFF"><strong>原始密码</strong></td>
<td bgcolor="#FFFFFF"><input type="text" value="" name="opwd">
<input type="hidden" value="comppwdreset" name="logintype"></td>
alert('重复输入新密码');
document.f.rnpwd.focus();
return false;
}
if(document.f.rnpwd.value!=document.f.npwd.value){
alert('您两次输入的密码不统一');
document.f.rnpwd.focus();
</tr>
<tr>
<td bgcolor="#FFFFFF"><strong>重复密码</strong></td>
<td bgcolor="#FFFFFF"><input type="text" value="" name="rnpwd"></td>
return false;
}
if(document.f.npwd.value==''){
alert('请输入新密码');
document.f.npwd.focus();
return false;
}
if(document.f.rnpwd.value==''){
</head>
<body>
<script language="javascript">
function c(){
//check null
if(document.f.opwd.value==''){
alert('请输入原始密码');
document.f.opwd.focus();
return false;
}
return true;
}
</script>
<h2 class="bg"></h2>
<div class="detial"> <font class="comp-title">安全设置 Safe</font><br />
<br />
<%
<html xmlns="/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理员密码</title>
<link rel="stylesheet" type="text/css" href="skin/skin1/g.css" />
<tr>
<td bgcolor="#FFFFFF"><strong>新密码</strong></td>
<td bgcolor="#FFFFFF"><input type="text" value="" name="npwd"></td>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="admincheck.asp"-->
<!--#include file="conn.asp"-->
<%
if request.QueryString("act")="edit" then
'check password
sqlCP="select id from [admin] where [password]='"&md5(trim(request.Form("opwd")))&"'"
set rsCP=server.CreateObject("adodb.recordset")
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF"><input type="submit" value="修改"></td>
</tr>
</form>
</table>
</div>
<div style="clear:both"></div>
rsCP.open sqlCP,conn,1,1
if rsCP.eof or rsCP.bof then
rsCp.close
set conn=nothing
response.Redirect("?w=1")
else
sqlUp="update [admin] set [password]='"&md5(trim(request.Form("npwd")))&"'"
<h3 class="bg"></h3>
</div>
<
if request.QueryString("w")="1" then
response.Write("您的密码错误!")
elseif request.QueryString("w")="2" then
response.Write("您的密码已经修改完成!")
end if
response.Write(sqlUp)
conn.execute(sqlUp)
response.Redirect("?w=2")
end if
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "/TR/xhtml1/DTD/xhtml1-transitional.dtd">
%>
<table cellpadding="10" cellspacing="1" align="center" bgcolor="#CCCCCC" border="0">
<form action="?act=edit" method="post" name="f" enctype="application/x-www-form-urlencoded" onSubmit="return c()">
<tr>
<td bgcolor="#FFFFFF"><strong>原始密码</strong></td>
<td bgcolor="#FFFFFF"><input type="text" value="" name="opwd">
<input type="hidden" value="comppwdreset" name="logintype"></td>
alert('重复输入新密码');
document.f.rnpwd.focus();
return false;
}
if(document.f.rnpwd.value!=document.f.npwd.value){
alert('您两次输入的密码不统一');
document.f.rnpwd.focus();
</tr>
<tr>
<td bgcolor="#FFFFFF"><strong>重复密码</strong></td>
<td bgcolor="#FFFFFF"><input type="text" value="" name="rnpwd"></td>
return false;
}
if(document.f.npwd.value==''){
alert('请输入新密码');
document.f.npwd.focus();
return false;
}
if(document.f.rnpwd.value==''){
</head>
<body>
<script language="javascript">
function c(){
//check null
if(document.f.opwd.value==''){
alert('请输入原始密码');
document.f.opwd.focus();
return false;
}
return true;
}
</script>
<h2 class="bg"></h2>
<div class="detial"> <font class="comp-title">安全设置 Safe</font><br />
<br />
<%
<html xmlns="/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理员密码</title>
<link rel="stylesheet" type="text/css" href="skin/skin1/g.css" />