📄 mem_login.asp
字号:
<!--#include file="phpconn.asp"-->
<%
if request("p")="logout" then
session.Abandon()
end if
if request("p")="login" then
If Trim(Request("name"))<>"" Then
dim rs,strsql,i
strsql="Select * From tbl_user where AccountID='"&Request("name")&"'"
Set rs=conn.Execute(strsql)
'tbl_user内查用户帐号
If Not rs.Bof and Not rs.Eof Then
'有此帐号
pw=rs("AccountPassWord")
if pw<>(trim(request("password"))) then
response.Write"<script>alert('密码错误!');location.replace('mem_login.asp');</script>"
else
Session("xmid")=rs("AccountID")
strsql="Select * From tbl_character where CdKey='"&Request("name")&"'"
Set rs=conn.Execute(strsql)
i=1
'循环调取所有角色名,其实只有2个,所以这里能取值的也就只有session1和session2
do while not rs.eof
session("js"&i)=rs("Name")
i=i+1
rs.movenext
loop
set rsn=nothing
response.Write"<script>alert('登陆成功!');location.replace('kfxtlogin.asp');</script>"
end if
End If
End If
end if
%>
<STYLE type=text/css>
A:link {
COLOR: #000000; FONT-FAMILY: 宋体; TEXT-DECORATION: none
}
A:visited {
COLOR: #000000; FONT-FAMILY: 宋体; TEXT-DECORATION: none
}
A:active {
FONT-FAMILY: 宋体; TEXT-DECORATION: underline
}
A:hover {
COLOR: #84bd6b; TEXT-DECORATION: underline overline
}
BODY {
COLOR: #000000;
FONT-FAMILY: 宋体;
FONT-SIZE: 9pt;
background-color: #D6F7FF;
}
TABLE {
COLOR: #000000; FONT-FAMILY: 宋体; FONT-SIZE: 9pt
}
.f24 {
COLOR: #ff0000; FONT-FAMILY: 宋体; FONT-SIZE: 9pt; TEXT-DECORATION: underline overline
}
.l17 {
LINE-HEIGHT: 170%
}
.f18 {
FONT-SIZE: 18px
}
</STYLE>
<link href="style/css.css" rel="stylesheet" type="text/css">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>成员登陆</title>
</head>
<body>
<center>
<form method="post" action="mem_login.asp?p=login">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#D6F7FF"><table width="298" height="99%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td height="25" colspan="2" bgcolor="#6699CC" class="write">无双客服系统登陆</td>
</tr>
<tr>
<h2 align="center">
<td height="25" bgcolor="#F3F3F3"><div align="center">帐号:</div></td>
<td bgcolor="#F3F3F3"><div align="left">
<input type="text" name="name" size="20">
</div></td>
</h2>
</tr>
<tr>
<td height="25" bgcolor="#F3F3F3"><div align="center">密码:</div></td>
<td bgcolor="#F3F3F3"><input type="password" name="password" size="20"></td>
</tr>
<tr>
<td height="25" bgcolor="#F3F3F3"><div align="center">验证码:</div></td>
<td bgcolor="#F3F3F3"> </td>
</tr>
<tr>
<td height="25" bgcolor="#F3F3F3"></td>
<td bgcolor="#F3F3F3"><input name="submit" type="submit" value="确定"></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -