<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<!--#include file="admin/inc/md5.asp"-->
<%
set rs=server.createobject("adodb.recordset")
if not isempty(request.Form("password")) then
    password=request.Form("password")
	username=request.Form("username")
	sql="update [user] set password='"&password&"' where username='"&username&"'"
	conn.execute(sql)
	response.Write("<script language='javascript'>alert('密码修改成功!请记住新密码');window.close();</script>")
	set rs=nothing
	conn.close
	set conn=nothing
	response.end
end if
if not isempty(request.Form("username")) and request.form("username")<>"" then
    username=trim(request.Form("username"))
	rename=request.Form("rename")
	email=request.Form("email")
	sql="select * from [user] where username='"&username&"' and rename='"&rename&"' and email='"&email&"'"
	rs.open sql,conn,1,1
	if rs.eof or rs.bof then
	 ' Response.Write("<TABLE  cellSpacing=0 cellPadding=0 align=center border=0>")
	  'response.Write("<TBODY>")
	  'response.Write("<tr>")
	  'response.Write("<td>")
	  response.write("<script language='javascript'>alert('错误了,请查证再输!！');history.back();</script>")   
	  'response.Write("</td>")
	  'response.Write("</tr>")
	  'response.Write("</TBODY>")
	  'response.Write("</table>")
	  rs.close
	  conn.close
	  set rs=nothing
	  set conn=nothing
	  response.end
	else
	  action="yes"
	end if
	rs.close
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>盛达玩具，玩具,智力玩具,澄海盛达玩具,澄海盛达,盛达玩具,盛达公司，博迪</title>
<META content="盛达玩具,玩具,智力玩具,澄海盛达玩具,澄海盛达,盛达玩具,盛达公司" name=keywords>
<META content="盛达玩具,玩具,智力玩具,澄海盛达玩具,澄海盛达,盛达玩具,盛达公司" name=description>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<script language='javascript'>
  function checkform(){
   form=document.form1 
    if (form.password.value.length<6){
	  alert("密码少于6位");
	  form.password.focus();
      return false;
    }
   if (form.password.value!=form.surepwd.value){
      alert("两次密码输入不同");
	  form.surepwd.focus();
	  return false;
	} 
  }
</script>

</head>

<body bgcolor="#1C4C98">
<!--#include file ="Etop.asp"-->
<table width="1003" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1003"><table width="1003" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="237" valign="top" bgcolor="#1C4C98"><table width="237" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="237"><img src="images/EJK_02.jpg" width="237" height="47"  /></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td background="images/JK_122.jpg">
				  <!--#include file ="Elog.asp"--></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td valign="top">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><img src="images/EJK_zc.jpg" width="237" height="31"  /></td>
                </tr>
                <tr>
                  <td height="119" valign="top" background="images/JK_14.jpg"><table width="60%" border="0" align="center" cellpadding="5" cellspacing="5">
                    <tr>
                      <td align="center">|&nbsp; <a href="Erege.asp">Register</a>&nbsp; |</td>
                    </tr>
                    <tr>
                      <td align="center">|&nbsp; <a href="Egetpwd.asp">Getpwd</a>&nbsp; |</td>
                    </tr>
                  </table></td>
                </tr>
                <tr>
                  <td><img src="images/JK_15.jpg" width="237" height="17"  /></td>
                </tr>
              </table>
			</td>
          </tr>
          <tr>
            <td height="106" valign="top" bgcolor="#1C4C98">
			<!--#include file="Exl.asp"-->	
			</td>
          </tr>
        </table></td>
        <td width="766" valign="top" bgcolor="#1C4C98"><table width="766" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td colspan="3">
			<!--#include file="Emenu.asp"-->			</td>
          </tr>
          <tr>
            <td colspan="3" background="images/title_bg.jpg">
			<img src="images/title_Egetpwd.jpg" width="766" height="58"  />
			</td>
            </tr>
          <tr>
            <td width="26" valign="top" bgcolor="#1C4C98"><img src="images/JK_09.jpg" width="26" height="374"  /></td>
            <td width="711" valign="top" background="images/JK_10.jpg"><table width="90%" border="0" align="center" cellpadding="3" cellspacing="2">
              <tr>
                <td><%
				if action="" then
				%>
                    <!--#include file="Epwd.asp"-->
                    <%end if%>
                </td>
              </tr>
            </table></td>
            <td width="29" valign="top" bgcolor="#1C4C98"><img src="images/JK_11.jpg" width="29" height="374"  /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<!--#include file="Ebottom.asp"-->
</body>
</html>
<%
conn.close
set conn=nothing
%>