📄 my_user_modi.asp
字号:
<!-- #include file="conn.asp" -->
<!--#include file="webconfig.asp"-->
<%
'url=request.servervariables("HTTP_REFERER")
if session("userid")="" then
//response.write "<script>alert('你还未登陆,或登陆已超时,请重新登陆!!');</script>"
response.write "<script>this.location.href='login_window.asp';</script>"
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=webname%></title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="include/top.asp" -->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="1" bgcolor="#cccccc"></td>
<td width="160" height="100">
<!--#include file="include/left1.asp" -->
</td>
<td width="1" bgcolor="cccccc"></td>
<td align="center">
<!--#include file="include/search.asp" -->
<%
if session("userid")="" then
response.redirect "login_window.asp"
else
sql="select * from Net008_user where userid='"&session("userid")&"'"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,2
'response.write rs.recordcount
%>
<table width="98%" border="0" cellspacing="0" cellpadding="2" bgcolor="EAF8FD">
<tr>
<td align="center"><b><font color="#0099cc">修改个人资料</font></b></td>
</tr>
<tr>
<td><font
color=#416327><font color="#0099cc"> 为了我们更好的为您服务,更准确及时的将您订购的商品送到您的手中和与您联系,请您务必详细填写您的信息,并核对无误;
国内用户请留下您的真实中文姓名。 请放心:您的资料未经您的允许,我们将只用于处理您的订货信息,对外保密。 (带*号为必填项)</font></font>
<font color="#0099cc"><b><font class="fontshadow"> </font></b></font><b><font color="#ff0099" class="fontshadow">
<script language=javascript1.2>
<!--
function chechreg()
{
if(registername.cardtype.value==""){registername.cardtype.focus();
alert("请选择证件类型!");
return false;
}
if(registername.cardid.value==""){registername.cardid.focus();
alert("请输入你的证件号码!");
return false;
}
if(registername.guestname.value==""){registername.guestname.focus();
alert("请输入你的真实姓名!");
return false;
}
if(registername.birthyear.value==""){registername.birthyear.focus();
alert("你是哪年出生的必须填写!请认真填写便与参加我们的活动!");
return false;
}
if(registername.birthmonth.value==""){registername.birthmonth.focus();
alert("你是哪月出生的必须填写!请认真填写便与参加我们的活动!");
return false;
}
if(registername.birthday.value==""){registername.birthday.focus();
alert("你是哪日出生的必须填写!请认真填写便与参加我们的活动!");
return false;
}
if(registername.email.value.length<5|registername.email.value.indexOf("@")==-1|registername.email.value.indexOf(".")==-1)
{registername.email.focus();
alert("请输入正确的邮箱!便于系统发用户名及密码给你!");
return false;
}
if(registername.tel.value==""){
if(registername.mobilephone.value==""){
registername.tel.focus();
alert("为便于联系,常用电话和手机两者必须填写其中一项!");
return false;
}
}
if(registername.lationtime.value==""){registername.lationtime.focus();
alert("请写下最佳联系时间!");
return false;
}
if(registername.city.value=="0000"){registername.city.focus();
alert("请输入你所在省市!");
return false;
}
if(registername.address.value==""){registername.address.focus();
alert("请输入你的详细地址!");
return false;
}
if(registername.pc.value==""){registername.pc.focus();
alert("请输入你的邮编!");
return false;
}
}
//-->
</script>
</font></b></td>
</tr>
<tr>
<td><font
color=#ffffff><b><font color="#006600">注册信息</font></b></font></td>
</tr>
</table>
<table cellspacing=0 cellpadding=3 border=0 width="98%">
<form action="my_user_modiok.asp" method="post" name="registername" onSubmit="return chechreg()">
<tr>
<td width=90 align="right"><font color=#e71c17>*</font>用 户 名:</td>
<td><font color="#ff0000" size=3><%=session("userid")%> [这是您注册的用户名,不能修改]</font>
</td>
</tr>
<tr>
<td align="right"><font color=#e71c17>*</font>证件类型:</td>
<td><font color="#999999">
<select name=cardtype class="input_cccccc">
<option value=<%=rs("cardtype")%>><%=rs("cardtype")%></option>
<option value="身份证">身份证</option>
<option value="学生证">学生证</option>
<option value="军官证">军官证</option>
<option value="其他">其他</option>
</select>
</font>证件号码:<font color="#999999">
<input
name=cardid value="<%=rs("cardid")%>" class="input_cccccc">
[如:身份证:362523198010261220]</font></td>
</tr>
<tr>
<td align="right"><font color=#e71c17>*</font>您的姓名:</td>
<td>
<input
name=guestname value="<%=rs("guestname")%>" class="input_cccccc">
<font color="#999999">[请留下您的真实姓名,便于我们与您联系以及给您发货]</font>
</td>
</tr>
<tr>
<td align="right"><font color=#000000><font
color=#e71c17>*</font>性 别:</font></td>
<td>
<input type=radio value="女" name=sex class="input_no" <%if rs("sex")="女" then response.write "checked" end if%>>
女
<input type=radio value="男" name=sex class="input_no" <%if rs("sex")="男" then response.write "checked" end if%>>
男 </td>
</tr>
<tr>
<td align="right"><font color=#e71c17>*</font>出生年月:</td>
<td>
<input name=birthyear maxlength=4 size=4 value=<%=rs("birthyear")%> >
<font color="#999999">年</font>
<select name=birthmonth>
<option value="<%=rs("birthmonth")%>" selected><%=rs("birthmonth")%></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
<font color="#999999">月</font>
<select name=birthday>
<option value="<%=rs("birthday")%>" selected><%=rs("birthday")%></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<font color="#999999">日 [请填写真实的生日信息,便于参与我们的活动]</font></td>
</tr>
<tr>
<td align="right"><font color=#e71c17>*</font>QQ 号 码:</td>
<td>
<input maxlength=20 size=15 name=qq value="<%=rs("qq")%>" class="input_cccccc">
<font color="#999999">[ QQ号码用于方便而快捷的联系,建议填写!]</font> </td>
</tr>
<tr>
<td align="right"><font color=#e71c17>*</font>E-MAIL :</td>
<td>
<input
name=email value="<%=rs("email")%>" class="input_cccccc">
<font color="#999999">[ 如:avonshop@163.com]</font> <br>
<font color="#999999">[请您务必填写正确的E-mail地址,因为确认信件都将发往该信箱,同时便于我们与您联系,如发现您的邮箱无法收到确信信件,请修改为其他地址或通知我们
]</font></td>
</tr>
<tr>
<td align="right"><font color=#e71c17>*</font>常用电话:</td>
<td>
<input
name=tel value="<%=rs("tel")%>" class="input_cccccc">
<font color="#999999">(区号、分机号用“-”号隔开,形如:020-88391626)<br>
</font> <font color="#999999">[请填写能随时联系到您的电话,以便你在购物时我们能随时与您取得联系。]
</font></td>
</tr>
<tr>
<td align="right"><font color=#e71c17>*</font>手 机:</td>
<td> <b>
<input name=mobilephone value="<%=rs("mobilephone")%>" class="input_cccccc">
</b> <font color="#999999">[强烈建议您填写准确手机号,这样我们在订单处理的过程中将<br>
可以及时通知您]</font> </td>
</tr>
<tr>
<td align="right"><font color=#e71c17>*</font>最佳联系时间:</td>
<td>
<input name="lationtime" type="text" class="input_cccccc" id="lationtime" value="<%=rs("lationtime")%>" >
<font color="#999999">(白天或晚上等,便于我们更好联系到你)</font></td>
</tr>
<tr>
<td align="right"><font color=#e71c17>*</font>所在省/市:</td>
<td>
<select name=city>
<%
cityid=rs("city")
sql_temp="select * from Net008_province"
set rs_temp=server.createobject("adodb.recordset")
rs_temp.open sql_temp,conn,1,2
for i=1 to rs_temp.recordcount
if rs_temp("cityid")=cityid then
response.write"<OPTION value="&rs_temp("cityid")&" selected>"&rs_temp("cityname")&"</OPTION>"
else
response.write"<OPTION value="&rs_temp("cityid")&">"&rs_temp("cityname")&"</OPTION>"
end if
rs_temp.movenext
next
rs_temp.close
set rs_temp=nothing
%>
</select>
<font color="#999999">[便于准确投递货物]</font></td>
</tr>
<tr>
<td align="right"><font color=#e71c17>*</font>收货地址:</td>
<td>
<input maxlength=200 size=60
name=address value="<%=rs("address")%>" class="input_cccccc">
<br>
<font color="#999999">[请填写您能最直接收到购物的地址,以便我们能尽快将您购的商品递交给您。] </font></td>
</tr>
<tr>
<td align="right"><font color=#e71c17>*</font>邮政编码:</td>
<td>
<input name=pc value="<%=rs("pc")%>" class="input_cccccc" size="6">
<font color="#999999">[很重要,写上你附近邮局的邮政编码,邮局送货是根据这个邮政编码送到目的地址]</font></td>
</tr>
<tr>
<td align="right"> </td>
<td>
<input class=sinput style="FONT-SIZE: 12px" type=submit value=确认修改 name=button1>
</td>
</tr>
<tr>
<td colspan=2></td>
</tr>
</form>
</table>
<%end if%>
</td>
<td width="1" bgcolor="cccccc"></td>
</tr>
</table>
<!-- #include file="include/bottom.asp" -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -