⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 my_info_save.asp

📁 全功能网上商城 免费版
💻 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>&nbsp;</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")%>&nbsp;</td>
        </tr>
        <tr> 
          <td width="188">密&nbsp; 码</td>
          <td width="365"><%=rsinfo("UserPassword")%>&nbsp;</td>
        </tr>
        <tr> 
          <td width="188">Q&nbsp; Q</td>
          <td width="365"><%=rsinfo("UserQQ")%>&nbsp;</td>
        </tr>
        <tr> 
          <td width="188">性&nbsp; 别</td>
          <td width="365">
		  <% if Sex="1" then %>男 <%else%>女 <%end if%>
        </td></tr>
		<tr> 
          <td width="188">婚&nbsp; 否</td>
          <td width="365">
		  <% if Maritalstatus="1" then %>未婚 <%else%>已婚 <%end if%>
        </td></tr>
        <tr> 
          <td width="188">生&nbsp; 日</td>
          <td width="365"><%=rsinfo("Birthday")%>&nbsp;</td>
        </tr>
        <tr> 
          <td height="21" width="188">收&nbsp; 入</td>
          <td width="365"><%=rsinfo("IncomeRange")%>&nbsp;</td>
        </tr>
        <tr> 
          <td width="188">职&nbsp; 业</td>
          <td width="365"><%=rsinfo("Occupation")%>&nbsp;</td>
        </tr>
        <tr> 
          <td width="188">公&nbsp; 司</td>
          <td width="365"><%=rsinfo("CompanyName")%>&nbsp;</td>
        </tr>
        <tr> 
          <td width="188">电&nbsp; 话</td>
          <td width="365"><%=rsinfo("HomePhone")%>&nbsp;</td>
        </tr>
        <tr> 
          <td height="25" width="188">手&nbsp; 机</td>
          <td width="365"><%=rsinfo("CompPhone")%>&nbsp;</td>
        </tr>
        <tr> 
          <td width="188">邮&nbsp; 箱</td>
          <td width="365"><%=rsinfo("UserMail")%>&nbsp;</td>
        </tr>
        <tr> 
          <td width="188">国&nbsp; 家</td>
          <td width="365"><%=rsinfo("Country")%>&nbsp;</td>
        </tr>
        <tr> 
          <td width="188">省&nbsp; 份</td>
          <td width="365"><%=rsinfo("Province")%>&nbsp;</td>
        </tr>
        <tr> 
          <td width="188">城&nbsp; 市</td>
          <td width="365"><%=rsinfo("City")%>&nbsp;</td>
        </tr>
        <tr> 
          <td width="188">地&nbsp; 址</td>
          <td width="365"><%=rsinfo("Address")%>&nbsp;</td>
        </tr>
        <tr> 
          <td width="188">邮&nbsp; 编</td>
          <td width="365"><%=rsinfo("ZipCode")%>&nbsp;</td>
        </tr>
		 <tr> 
          <td width="188">备&nbsp; 忘</td>
          <td width="365"><%=Memo%>&nbsp;</td>
        </tr>
        <tr> 
          <td width="188">是否接收邮件通知</td>
          <td width="365"><%if WantMessage="1" then%>愿意<%else%>不愿意<%end if%></td>
        </tr>
        <tr> 
          <td width="188">&nbsp;</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 + -