📄 default.asp
字号:
<%@ language="vbscript"%>
<%response.Expires = 0%>
<!--#include file="conn.asp"-->
<%
If Session("LoginSuccess")="" Then
Response.Redirect"login.asp"
End If
%>
<%dim user_id
user_id=Session("LoginSuccess")
set rs_detail=server.createobject("adodb.recordset")
sqltext2="select * from RegUser where UserId='" & user_id & "'"
rs_detail.open sqltext2,conn,1,1
%>
<html>
<head>
<title>会员管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE>BODY {
FONT-SIZE: 9pt
}
TD {
FONT-SIZE: 9pt
}
a { text-decoration: none; color: #000000 }
a:hover { text-decoration: underline; color: #0000FF }
INPUT {
BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: #eeeeee 1px solid; BORDER-LEFT: #aaaaaa 1px solid; BORDER-RIGHT: #eeeeee 1px solid; BORDER-TOP: #aaaaaa 1px solid; HEIGHT: 13pt
}
</STYLE>
<script language="javascript">
<!--
function isok(theform)
{
if (theform.name.value=='')
{
alert("姓名不能为空!");
theform.name.focus();
return (false);
}
if (theform.pwd.value.length<4)
{
alert("密码不能为空且至少4位!");
theform.pwd.focus();
return (false);
}
if (theform.PasswordConfirm.value!=theform.pwd.value)
{
alert("您的密码确认与上面密码不符!");
theform.PasswordConfirm.focus();
return (false);
}
if (theform.email.value.length<5|theform.email.value.indexOf("@")==-1|theform.email.value.indexOf(".")==-1)
{alert("请输入正确的Eail地址!");
theform.email.focus( );
return(false);}
if (theform.usephone.value.length<10)
{alert("请输入带区号的电话!");
theform.usephone.focus( );
return(false);}
if (theform.haddr.value.length<5)
{alert("请正确填写您详细的地址!");
theform.haddr.focus( );
return(false);}
if (theform.postcode.value.length!=6 ||isNaN(theform.postcode.value))
{alert("邮政编码必须为6位数字!");
theform.postcode.focus( );
return(false);}
return (true);
}
-->
</script>
<SCRIPT language=JavaScript>
<!--
function openbag(url,name){
window.open(url,name,"height=200,width=600,left=190,top=0,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no")}
-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" background="../pic/bg.jpg" leftmargin="0" topmargin="0">
<div align="center">
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><iframe src=../top.asp noresize scrolling=no frameborder=0 width=778 height=100 hspace="0" vspace="0" marginheight="0"></iframe>
</td>
</tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="423" background="../pic/user/images/user_06.gif" valign="top"><img src="../pic/user/images/user_01.gif" width="162" height="343" align="top" usemap="#Map" border="0"></td>
<td width="616" valign="top">
<table width="616" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="../pic/user/images/user_03.gif"><img src="../pic/user/images/user_03.gif" width="21" height="18"></td>
</tr>
</table>
<div align="center"><br>
<br>
<font color="#416327">以下是你的注册信息,如要修改,请正确填写信息后按修改注册信息按钮即可! (带*号为必填项)<br>
<br>
</font>
<table width="591" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center">
<table width="580" border="0" cellspacing="2" cellpadding="0">
<tr>
<td width="543">
<DIV align=center>
<form method="POST" action="user_update.asp" onsubmit="return isok(this)" >
<TABLE class=main cellPadding=3 width=569>
<TBODY>
<TR>
<TD width=95 bgColor=#ffffff align="right">您的会员帐号:
</TD>
<TD bgColor=#ffffff width="456"><b><%=rs_detail("userid")%></b>
</TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right"><FONT color=#e71c17>*</FONT>您的姓名:</TD>
<TD bgColor=#ffffff width="456">
<INPUT maxLength=20 size=20 name=name value=<%=rs_detail("name")%>>
[请留下您的真实姓名,便于我们给您发货。] </TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right"><FONT color=#000000><FONT
color=#e71c17>*</FONT>性别:</FONT></TD>
<TD bgColor=#ffffff width="456"><FONT color=#000000>
<%=rs_detail("sex")%></FONT></TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right"><FONT color=#e71c17>*</FONT>密码:</TD>
<TD bgColor=#ffffff width="456"> <FONT color=#000000>
<INPUT type=password maxLength=18 name=pwd value=<%=rs_detail("PassWD")%>>
</FONT> </TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right"><FONT color=#e71c17>*</FONT>密码确认:</TD>
<TD bgColor=#ffffff width="456"><FONT color=#000000>
<INPUT
type=password maxLength=18 name=PasswordConfirm value=<%=rs_detail("PassWD")%>>
</FONT></TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right"><FONT color=#e71c17>*</FONT>E-MAIL:</TD>
<TD bgColor=#ffffff width="456">
<INPUT maxLength=40 name=email value=<%=rs_detail("email")%>>
[请填上正确的E-mail地址,以便密码遗忘时索取] </TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right" valign="top"><FONT color=#e71c17>*</FONT>常用电话:</TD>
<TD bgColor=#ffffff width="456">
<INPUT id=text5 maxLength=30
name=usephone value=<%=rs_detail("phone")%>>
<BR>
[请填写能随时联系到您的电话,以便你在购物时我们能随时与您取得联系。] </TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right" valign="top"><FONT color=#e71c17>*</FONT>收货地址:</TD>
<TD bgColor=#ffffff width="456">
<INPUT maxLength=200 size=60 name=haddr value=<%=rs_detail("address")%>>
<BR>
[请填写您能最直接收到购物的地址,以便我们能尽快将您购的物递交给您。] </TD>
</TR>
<TR>
<TD width=95 bgColor=#ffffff align="right"><FONT color=#e71c17>*</FONT>邮编:</TD>
<TD bgColor=#ffffff width="456">
<INPUT maxLength=15 name=postcode value=<%=rs_detail("zip")%>>
</TD>
</TR>
<TR>
<TD bgColor=#ffffff colSpan=2 width="559">
<p align="center">
<INPUT class=main1 type=submit value=修改注册信息 name=button1>
</TD>
</TR>
</TBODY>
</TABLE>
</FORM>
</DIV>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<br>
</div>
</td>
</tr>
</table>
<map name="Map">
<area shape="rect" coords="19,126,114,149" href="javascript:openbag('../check.asp?shopname=<%=session("shop")%>')">
<area shape="rect" coords="19,160,112,184" href="default.asp">
<area shape="rect" coords="19,194,114,217" href="myinfo.asp">
<area shape="rect" coords="19,228,113,251" href="odrsrchset.asp">
<area shape="rect" coords="23,262,113,283" href="cctsrch.asp">
</map>
</div>
</body>
</html>
<% rs_detail.close
conn.close
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -