📄 my_info_save.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Comm/conn.asp" -->
<!--#INCLUDE file="feedbackconfig.asp" -->
<%
UserId=request("UserId")
Username=request("Username")
UserQQ=request("UserQQ")
UserPassword=request("pw1")
Sex=request("Sex")
Maritalstatus=request("Maritalstatus")
Birthday=request("Birthday")
IncomeRange=request("IncomeRange")
Occupation=request("Occupation")
CompanyName=request("CompanyName")
HomePhone=request("HomePhone")
CompPhone=request("CompPhone")
UserMail=request("UserMail")
Country=request("Country")
Province=request("Province")
City=request("City")
Address=request("Address")
ZipCode=request("ZipCode")
Memo=request("Memo")
WantMessage=request("WantMessage")
%>
<HTML>
<HEAD>
<TITLE>保存个人信息-<%=sitename%>-<%=siteurl%></TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Robots" content="index,follow">
<meta name="Abstract" content="CycooShop">
<meta name="DC.Publisher" content="Cycoo Net Studio">
<link rel="stylesheet" href="shop.css" type="text/css">
</HEAD>
<body bgcolor="#011D32" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="images/fig_background.gif">
<!--#include file="menu/topbar.asp"-->
<table width="760" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" align="center">
<tr>
<td height="1" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td bgcolor="A5B2C6" height="18" class="new"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!--#include file="menu/searchbar.asp"-->
</td>
</tr>
</table></td>
</tr>
</table>
<TABLE width=760 border=0 align=center cellpadding=0 cellspacing=0 bgcolor="#FFFFFF">
<TR>
<TD>
<%
if session("loginpass")<>"ok" or session("estore_userid")="" then
errstr="您没有登陆,或者长时间没有浏览网站页面,请重新登陆一次!<br>前一个页面地址:<br>"
scrname = session("scrname")
response.write errstr & scrname
call re_login()
else
name=session("estore_userid")
call saveinfo()
end if
sub re_login()
%>
<!--#include file="loginbox.asp"-->
</TD>
</TR>
</TABLE>
<%
end sub
sub saveinfo()
sqlinfo = "select * from UserMain where UserId='"&name&"'"
set rsinfo=Server.Createobject("ADODB.RecordSet")
application.lock
rsinfo.Open sqlinfo,conn,3,3
rsinfo("Username")=Username
rsinfo("Sex")=Sex
rsinfo("UserQQ")=UserQQ
rsinfo("UserPassword")=UserPassword
rsinfo("Maritalstatus")=Maritalstatus
rsinfo("Birthday")=Birthday
rsinfo("IncomeRange")=IncomeRange
rsinfo("Occupation")=Occupation
rsinfo("CompanyName")=CompanyName
rsinfo("HomePhone")=HomePhone
rsinfo("CompPhone")=CompPhone
rsinfo("UserMail")=UserMail
rsinfo("Country")=Country
rsinfo("Province")=Province
rsinfo("City")=City
rsinfo("Address")=Address
rsinfo("ZipCode")=ZipCode
rsinfo("Memo")=Memo
rsinfo("WantMessage")=WantMessage
rsinfo.update
application.unlock
set rsinfo = nothing
call ok_modify()
end sub
sub ok_modify()
%>
<TABLE width=760 border=0 align=center cellpadding=0 cellspacing=0 bgcolor="#FFFFFF">
<TR>
<TD width=150 valign="top">
<!--#include file="my_accounts_menu.asp"-->
</TD>
<TD width=6> </TD>
<%
sqlinfo = "select * from UserMain where UserId='"&name&"'"
set rsinfo=Server.Createobject("ADODB.RecordSet")
rsinfo.Open sqlinfo,conn,1,1
Memo=rsinfo("Memo")
if Memo<>"" then Memo=Autolink(Memo)
%>
<TD align=center valign="top"><br>
<table width="569" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFCC99">
<tr>
<td colspan="2" width="559"><strong>这是您修改后的个人资料区,请再仔细查看:</strong></td>
</tr>
<tr>
<td width="188">真实姓名</td>
<td width="365"><%=rsinfo("UserName")%> </td>
</tr>
<tr>
<td width="188">密 码</td>
<td width="365"><%=rsinfo("UserPassword")%> </td>
</tr>
<tr>
<td width="188">Q Q</td>
<td width="365"><%=rsinfo("UserQQ")%> </td>
</tr>
<tr>
<td width="188">性 别</td>
<td width="365">
<% if Sex="1" then %>男 <%else%>女 <%end if%>
</td></tr>
<tr>
<td width="188">婚 否</td>
<td width="365">
<% if Maritalstatus="1" then %>未婚 <%else%>已婚 <%end if%>
</td></tr>
<tr>
<td width="188">生 日</td>
<td width="365"><%=rsinfo("Birthday")%> </td>
</tr>
<tr>
<td height="21" width="188">收 入</td>
<td width="365"><%=rsinfo("IncomeRange")%> </td>
</tr>
<tr>
<td width="188">职 业</td>
<td width="365"><%=rsinfo("Occupation")%> </td>
</tr>
<tr>
<td width="188">公 司</td>
<td width="365"><%=rsinfo("CompanyName")%> </td>
</tr>
<tr>
<td width="188">电 话</td>
<td width="365"><%=rsinfo("HomePhone")%> </td>
</tr>
<tr>
<td height="25" width="188">手 机</td>
<td width="365"><%=rsinfo("CompPhone")%> </td>
</tr>
<tr>
<td width="188">邮 箱</td>
<td width="365"><%=rsinfo("UserMail")%> </td>
</tr>
<tr>
<td width="188">国 家</td>
<td width="365"><%=rsinfo("Country")%> </td>
</tr>
<tr>
<td width="188">省 份</td>
<td width="365"><%=rsinfo("Province")%> </td>
</tr>
<tr>
<td width="188">城 市</td>
<td width="365"><%=rsinfo("City")%> </td>
</tr>
<tr>
<td width="188">地 址</td>
<td width="365"><%=rsinfo("Address")%> </td>
</tr>
<tr>
<td width="188">邮 编</td>
<td width="365"><%=rsinfo("ZipCode")%> </td>
</tr>
<tr>
<td width="188">备 忘</td>
<td width="365"><%=Memo%> </td>
</tr>
<tr>
<td width="188">是否接收邮件通知</td>
<td width="365"><%if WantMessage="1" then%>愿意<%else%>不愿意<%end if%></td>
</tr>
<tr>
<td width="188"> </td>
<td width="365"><input type="submit" name="Submit" value="完成修改" onclick="javascript:window.location.href='my_accounts.asp'">
<input name="Submit2" type="Submit" value="继续修改" onclick="javascript:window.location.href='my_info.asp';self.refresh"></td>
</tr>
</table>
<%
set rsinfo=nothing
%>
</TD>
</TR>
</TABLE>
<%
end sub
%>
</BODY>
</HTML>
<%
conn.close
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -