<!--#include file="../conn/conn2.asp" -->
<!--#include file="../conn/function.asp" -->
<!--#include file="member_check.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="qinuoli">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="css/user.css" type="text/css" />
<title>个人中心</title>
</head>
<body>
<%
M_login=session("M_login")
M_id=session("M_id")
action=request.QueryString("action")
if action="edit" then
sql="Select * from SL_member Where M_id="&M_id
		set rs=Server.CreateObject("ADODB.RecordSet")
		rs.open sql,conn,1,1
		M_pwd=rs("M_pwd")
		rs.close
set rs=nothing
		
if request.Form("M_pwd")=M_pwd and request.Form("M_newpwd")=request.Form("M_newpwd2") then
sql="Select * from SL_member Where M_id="&M_id
		set rs=Server.CreateObject("ADODB.RecordSet")
		rs.open sql,conn,1,3
		if not rs.eof then
		rs("M_pwd")=request.Form("M_newpwd")
		rs.update
		rs.close
		end if
call box("修改成功!","member_pwdedit.asp","success")
else
call box("旧密码输入错误或新密码不一致!","back","error")
end if
end if
%>
<!--#include file="top.asp" -->
<form action="member_pwdedit.asp?action=edit" method="post">
<ul class="my_list">
<li class="tiao" >原始密码 <input value="" name="M_pwd" type="password" class="input"></li>
<li class="tiao" >修改密码 <input value="" name="M_newpwd" type="password" class="input"></li>
<li class="tiao" >确认密码 <input value="" name="M_newpwd2" type="password" class="input"></li>
</ul>
<input type="submit" class="button blue" value="提 交">
</form>


</div>

</body>
</html>
