作者在 2007-05-09 06:58:00 发布以下内容
<%
If Session("ProductList")="" or Session("ProductList")="'undefined'" Then
Response.Redirect"Loginsb.asp?msg=您没有选购商品,不能够结帐!"
End If
If Session("UserName")<>"" Then
Response.Redirect"Ment1.asp"
Else
%>
<HTML><HEAD><TITLE>会员登录</TITLE>
< name="Author" content="szokorg">
< name="Contact" content="admin@szok.org">
< name="Copyright" content="szok.org">
< http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Inc/Css.css" rel="stylesheet" type="text/css">
< language=java>
CheckForm()
{
if(UserLogin.UserName.=="")
{
alert("请输入用户名!");
UserLogin.UserName.focus();
return false;
}
if(UserLogin.Password. == "")
{
alert("请输入密码!");
UserLogin.Password.focus();
return false;
}
}
</>
</HEAD>
<BODY bgcolor="#D9D9D9" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<br>
<div align="center">
<TABLE width="855" height="95%"
border=0 cellSpacing=1 bgcolor="#666666">
<TBODY>
<TR align=middle>
<TD height="22" bgcolor="#999999" 2> <div align="left"><font color="#FFFFFF">对不起,如要购买商品,必须先进行登录,如果您还没有注册为我们的会员,请<a href="reguser.asp" target="_blank"><font color="#FF0000">注册</font></a>后再购买商品! </font>
<br>
<font color="#FFFFFF">如果您已经是会员,请先登录:</font> </div></TD>
</TR>
<TR vAlign=top align=middle>
<TD height="160" valign="middle" bgcolor="#E6E6E6">
<form action='mentLogin.asp' method='post' name='UserLogin' onSubmit='return CheckForm();'>
<TABLE cellSpacing=0 cellPadding=0 width=100% height="47">
<TBODY>
<TR>
<TD align=middle height="47" width="100%"> <TABLE cellSpacing=1 width=100% height="1">
<TBODY>
<TR>
<TD width=328 height=18><div align="right">会员登录名称:</div></TD>
<TD width=419 height=18><input name='UserName' type='text' id='UserName' size='13' maxlength='16'> </TD>
</TR>
<tr>
<TD width=328 height=1><div align="right">会员登录密码:</div></TD>
If Session("ProductList")="" or Session("ProductList")="'undefined'" Then
Response.Redirect"Loginsb.asp?msg=您没有选购商品,不能够结帐!"
End If
If Session("UserName")<>"" Then
Response.Redirect"Ment1.asp"
Else
%>
<HTML><HEAD><TITLE>会员登录</TITLE>
< name="Author" content="szokorg">
< name="Contact" content="admin@szok.org">
< name="Copyright" content="szok.org">
< http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Inc/Css.css" rel="stylesheet" type="text/css">
< language=java>
CheckForm()
{
if(UserLogin.UserName.=="")
{
alert("请输入用户名!");
UserLogin.UserName.focus();
return false;
}
if(UserLogin.Password. == "")
{
alert("请输入密码!");
UserLogin.Password.focus();
return false;
}
}
</>
</HEAD>
<BODY bgcolor="#D9D9D9" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<br>
<div align="center">
<TABLE width="855" height="95%"
border=0 cellSpacing=1 bgcolor="#666666">
<TBODY>
<TR align=middle>
<TD height="22" bgcolor="#999999" 2> <div align="left"><font color="#FFFFFF">对不起,如要购买商品,必须先进行登录,如果您还没有注册为我们的会员,请<a href="reguser.asp" target="_blank"><font color="#FF0000">注册</font></a>后再购买商品! </font>
<br>
<font color="#FFFFFF">如果您已经是会员,请先登录:</font> </div></TD>
</TR>
<TR vAlign=top align=middle>
<TD height="160" valign="middle" bgcolor="#E6E6E6">
<form action='mentLogin.asp' method='post' name='UserLogin' onSubmit='return CheckForm();'>
<TABLE cellSpacing=0 cellPadding=0 width=100% height="47">
<TBODY>
<TR>
<TD align=middle height="47" width="100%"> <TABLE cellSpacing=1 width=100% height="1">
<TBODY>
<TR>
<TD width=328 height=18><div align="right">会员登录名称:</div></TD>
<TD width=419 height=18><input name='UserName' type='text' id='UserName' size='13' maxlength='16'> </TD>
</TR>
<tr>
<TD width=328 height=1><div align="right">会员登录密码:</div></TD>