<!--#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" />
<script type="text/javascript" src="../upload/AienUpload/init.js"></script>
<title>修改资料</title>
</head>
<body>
<%
M_login=session("M_login")
M_id=session("M_id")
action=request.QueryString("action")
if action="edit" then
M_pic=request.Form("M_pic")
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_email<>"" then
sql="Select * from SL_member Where M_id="&M_login
		set rs=Server.CreateObject("ADODB.RecordSet")
		rs.open sql,conn,1,3
		if not rs.eof then
		rs("M_email")=M_email
		rs("M_qq")=M_qq
		rs("M_mobile")=M_mobile
		rs("M_add")=M_add
		rs("M_name")=M_name
		rs("M_code")=M_code
		rs("M_pic")=M_pic
		rs.update
		rs.close
		end if
call box("修改成功!","member_edit.asp","success")
else
call box("请填全资料!","back","error")
end if
end if
%>


<!--#include file="top.asp" -->




<form action="member_edit.asp?action=edit" method="post"> 
<ul class="my_list">
<li class="tiao" >会员名称 <%=M_login%></li>
<li class="tiao" >真实姓名 <input value="<%=M_name%>" name="M_name" class="input"></li>
<li class="tiao" >电子邮箱 <input value="<%=M_email%>" name="M_email" class="input"></li>
<li class="tiao" >ＱＱ号码 <input value="<%=M_QQ%>" name="M_qq" class="input"></li>
<li class="tiao" >联系地址 <input value="<%=M_add%>" name="M_add" class="input"></li>
<li class="tiao" >手机号码 <input value="<%=M_mobile%>" name="M_mobile" class="input"></li>
<li class="tiao" >邮政编码 <input value="<%=M_code%>" name="M_code" class="input"></li>
<li class="tiao" >会员头像 <input value="<%=M_pic%>" name="M_pic" id="M_pic" class="input"> <input type="button" value="上传文件" onClick="showUpload('M_pic','M_pic','../media',1,null,'','');" /></li>
</ul>
<input type="submit" class="button blue" value="提 交">
</form>
</div>

</body>
</html>
