<!--#include file="../conn/conn2.asp" -->
<!--#include file="member_check.asp" -->
<%
M_login=session("M_login")
action=request.QueryString("action")
if action="edit" then
M_pwd=request.Form("M_pwd")
M_email=request.Form("M_email")
M_qq=request.Form("M_qq")
M_mobile=request.Form("M_mobile")
M_add=request.Form("M_add")
M_pic=request.Form("M_pic")
M_name=request.Form("M_name")
M_code=request.Form("M_code")
if M_pwd<>"" then
sql="Select * from member Where M_login='"&M_login&"'"
		set rs=Server.CreateObject("ADODB.RecordSet")
		rs.open sql,conn,1,3
		if not rs.eof then
		rs("M_pwd")=M_pwd
		rs("M_email")=M_email
		rs("M_qq")=M_qq
		rs("M_mobile")=M_mobile
		rs("M_add")=M_add
		rs("M_pic")=M_pic
		rs("M_name")=M_name
		rs("M_code")=M_code
		rs.update
		rs.close
		end if
Response.Write"<script>alert('修改成功!');window.location='member_edit.asp';</script>"
else
Response.Write"<script>alert('请填全资料!');history.back();</script>"
end if
end if
%>
<!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=gb2312" />
<title>会员中心</title>
<script type="text/javascript" src="../upload/AienUpload/init.js"></script>
<style type="text/css">

			html {
				overflow:auto;
			}
			body {
			margin:0px;
				background-color: transparent; 
				font-size:12px;
				line-height:180%;
				font-family:"微软雅黑";
				
			}
			a img {
	border:none;
}
			a{ font-size:12px; color:#000000; text-decoration:none;}
			a:hover {color:#0066ff;text-decoration: underline}
			.input {border-top:1px solid #ABADB3;border-left:1px solid #ABADB3;border-right:1px solid #ddd;border-bottom:1px solid #ddd;height:24px;width:300px;padding:0 5px;}
</style>
</head>
<body>
<!--#include file="left.asp" -->
<div style="width:550px; float:left; padding-left:20px;">
<h2>修改资料</h2>
<hr>
<form action="member_edit.asp?action=edit" method="post">
<table width="100%">
<tr><td>会员名</td><td><%=M_login%></td></tr>
<tr><td>真实姓名</td><td><input value="<%=M_name%>" name="M_name" class="input"></td></tr>
<tr><td>登录密码</td><td><input type="password" value="<%=M_pwd%>" name="M_pwd" class="input"></td></tr>
<tr><td>电子邮箱</td><td><input value="<%=M_email%>" name="M_email" class="input"></td></tr>
<tr><td>QQ号码</td><td><input value="<%=M_QQ%>" name="M_qq" class="input"></td></tr>
<tr><td>联系地址</td><td><input value="<%=M_add%>" name="M_add" class="input"></td></tr>
<tr><td>手机号码</td><td><input value="<%=M_mobile%>" name="M_mobile" class="input"></td></tr>
<tr><td>邮政编码</td><td><input value="<%=M_code%>" name="M_code" class="input"></td></tr>
<tr><td>修改头像</td><td><input value="<%=M_pic%>" name="M_pic" class="input" id="M_pic"> <input type="button" value="上传文件" onclick="showUpload('M_pic','M_pic','',1,null,'','');" /></td></tr>
<tr><td></td><td><input type="submit" value="提交" style="width:80px;height:30px; border:hidden; font-family:'微软雅黑'; font-size:15px;"></td></tr>
</table>
</form>
</div>
</body>
</html>