<!--#include file="../conn/conn2.asp" -->
<!--#include file="../conn/function.asp" -->
<!DOCTYPE HTML>

<html>

<head>

<title>设置密码</title>

<meta charset="utf-8" />

<meta content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport" />

<meta content="yes" name="apple-mobile-web-app-capable" />

<meta content="black" name="apple-mobile-web-app-status-bar-style" />

<meta content="telephone=yes" name="format-detection" />

<meta content="email=no" name="format-detection" />

<meta name="keywords" content=""  />

<meta name="description" content="" />



<link href="css/public.css" rel="stylesheet">

<link href="css/login.css" rel="stylesheet">



<script src="js/jquery.js" type="text/javascript" ></script>

<script src="js/common.js" type="text/javascript" ></script>





</head>



<body id="body">
<%
action=Request.QueryString("action")
M_pwdcode=Request.QueryString("M_pwdcode")

sql="Select * from SL_member Where M_pwdcode='"&M_pwdcode&"'"
		set rs=Server.CreateObject("ADODB.RecordSet")
		rs.open sql,conn,1,1
		if not rs.eof then
		M_login=rs("M_login")
		else
		call box("重置码错误!","member_login.asp","error")
		end if
if action="setpwd" then
if request.Form("M_newpwd")=request.Form("M_newpwd2") and request.Form("M_newpwd")<>"" then
conn.execute("update SL_member set M_pwd='"&request.Form("M_newpwd")&"' where M_pwdcode='"&M_pwdcode&"'")
conn.execute("update SL_member set M_pwdcode='' where M_pwdcode='"&M_pwdcode&"'")
call box("重置密码成功，请返回登录!","member_login.asp","success")
else
call box("两次密码不一致!","back","error")
end if

end if
		

%>


<div class="fullscreen per_login">



<div class="alert"></div>

	

<header class="header">

	<div class="header_bar">

<a href="../"><h1 class="logo"><img src="<%=C_dir%>media/<%=W_logo%>" height="50"></h1></a>

         

         <div class="per_login" id="per_login">

		     <div class="account">

                 <div class="per_name">

                     <span id="per_name">其他登录方式</span>

                     <i class="arrowIcon"></i>                 </div>
             </div>

			 <div class="quick_links hide">

			     <ul>

                     <li><a href="<%=C_dir%>qq/qqlogin.asp">QQ登录</a></li>

                 </ul>
             </div>
         </div>
    </div>

</header>



<div class="operate_Bar1 clearfix">

	<div class="text">网站会员注册</div>

</div>



<section class="inner_content">

    <form id="loginform" name="loginform" method="post" action="member_setpwd.asp?action=setpwd&M_pwdcode=<%=M_pwdcode%>">

    <li class="username"> <%=M_login%></li>
	
	<li class="pwd"><input type="text" name="M_newpwd" placeholder="输入密码" id="login_name" value="" /></li>
	<li class="username"><input type="text" name="M_newpwd2" placeholder="确认密码" id="login_pwd" value="" /></li>
	

	<li class="login_free">

        <div><input type="checkbox" value="ok" name="m.zidong" id="login_auto" checked="checked" /></div>

    </li>

	<li class="submit_btn"><button type="submit" id="login_btn">设 置</button></li>

	<li class="reg_findPwd">

		<a href="member_login.asp">立即登录</a>

		<a href="member_found.asp">忘记密码</a>

	</li>

    </form>

</section>
<div id="tFooter" class="footer">

	<footer >




	</footer>

</div>



</div>

</body>
</html>