<%
'商易仿淘宝4.0(多用户)
'ACCESS版演示网站：http://www.ftaobao.com(商易仿淘宝商城)
'SQL版演示网站：http://sql.ftaobao.com
'电话：0571-56907100
'QQ：1147100
%>
<%qx=6%>
<!--#include file="top.asp"-->
<!--#include file="check.asp"-->
<!--#include file="../include/conn.asp" -->
<!--#include file="../include/md5.asp" -->
<link href="images/css.css" rel="stylesheet" type="text/css">
<%
if request("abc")="pass" then
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from admin where adminname='"&session("rikee.com")&"' and adminpass='"&md5(shopnet("password"))&"'"
rs.open sql,conn,1,3
if rs.eof then
Response.Write("<script>alert(""密码错误，不能修改。请确认您的原密码！"");history.back();</script>")
else
rs("adminpass")=md5(shopnet("pass"))
rs.update
rs.close
set rs=nothing
Response.Write("<script>alert(""密码修改成功，请以后用您的新密码登陆"");location.href=""pass.asp"";</script>")
end if
end if
conn.close
set conn=nothing
%> 
      <script language="javascript">
	function checksignup() {
		if ( document.ff.password.value == '' ) {
			window.alert('请输入您的原密码!!');
			document.ff.password.focus();
			return false;
		}
		if ( document.ff.pass.value == '' ) {
			window.alert('请输入您的新密码!!');
			document.ff.pass.focus();
			return false;
		}
		if ( document.ff.pass2.value == '' ) {
			window.alert('请确认新密码!!');
			document.ff.pass2.focus();
			return false;
		}
		if ( document.ff.pass.value!=document.ff.pass2.value) {
			window.alert('新密码与确认码不一致!!');
			document.ff.pass.focus();
			return false;
		}
			return true;
			}
</script>
<link href="../include/css.css" rel="stylesheet" type="text/css">
<form name="ff" method="post" action=?abc=pass&x=yes>
<table cellspacing="1" cellpadding="4" class="tableborder" align="center">
          <tr > 
            <td height="25" colspan="2" align="center" background="images/admin_bg_4.gif" class="d13"><font color="#ffffff">
              <b>密码修改</b></font></td>
          </tr>
        <tr bgcolor="#FFFFFF">
          <td align="center">
            <table width="300" border="0" align="center" cellpadding="0" cellspacing="0">
        

          <tr > 
            <td width="30%" align="center" class="d13">管理帐号</td>
            <td width="70%" class="d13"><font color="#FF3333"><%=session("rikee.com")%></font></td>
          </tr>
          <tr> 
            <td width="30%" class="d13" align="center">原密码</td>
            <td width="70%" class="d13"> <input name="password" type="password" class="wenbenkuang" id="password" maxlength=20>            </td>
          </tr>
          <tr> 
            <td width="30%" class="d13" align="center">新密码</td>
            <td width="70%" class="d13"> <input name="pass" type="password" class="wenbenkuang" id="pass" maxlength="20">            </td>
          </tr>
          <tr> 
            <td width="30%" class="d13" align="center">新密码确认</td>
            <td width="70%" class="d13"> <input name="pass2" type="password" class="wenbenkuang" id="pass2" maxlength="20">            </td>
          </tr>

       
      </table>		  </td>
        </tr>
          <tr bgcolor="#FFFFFF" > 
            <td height="30" colspan="2" align="center" valign="middle" class="d13">  <input name="Submit22" type="submit" class="go-wenbenkuang" value="修改" onClick="javascript:return checksignup()">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input name="Submit22" type="reset" class="go-wenbenkuang" value="重写"></td>
          </tr>
  </table> </form>
 <p>&nbsp;</p>
      
