📄 login.asp
字号:
<!--#include file="inc/config.asp"-->
<!--#include file="LHB_copy.asp"-->
<!--#include file="inc/md5.asp"-->
<%
Select Case Request.ServerVariables("REQUEST_METHOD")
Case "POST"
L_UserName=request("LouHB_UserName") '接受管理员用户名
L_Password=request("LouHB_Password") '接受管理员密码
If Request("LouHB_YanZhengM") = Session("L_YanZhengM") Then '3
if L_UserName<>"" and L_Password<>"" then
set Lours=Louconn.execute("select * from LHB_YongHu where L_UserName='"& L_UserName & "'") '判断是否存在该用户
if not (Lours.bof and Lours.eof) then '1
If Lours("L_Password")=md5(L_Password) Then '0
Session("L_UserName")=Lours("L_UserName")
Session("L_UserID")=Lours("L_UserID")
Response.Redirect("index.asp")
Else '0
Cuo=1
End if '0
Else '1
Cuo=2
End if '1
End if
Else '3
Cuo=3
End If '3
End Select
%>
<!--#include file="LHB_YanZhengM.asp"-->
<!--#include file="LHB_head.asp"-->
<Center>
<br><br><br><br>
<table width="768" border="0" cellspacing="0" align="center">
<tr>
<td align="center"><a href="index.asp"><img src="pic/logo.gif" alt="<%=Logo_alt%>" border="0" /></a></td>
<td width="673"></td>
</tr>
</table>
<br><br>
<table border="0" align="center" cellpadding="0" cellspacing="0" class="table4">
<tr>
<td width="481" height="30" align="right" valign="middle"><img src="pic/15.gif" alt="会员登录" width="44" height="51"></td>
<td width="477" align="left" valign="middle" class="td2">会员登录</td>
</tr>
</table>
<br><br>
<table width="300" border="0">
<form action="login.asp" method="post" name="form2" id="form2">
<tr>
<td height="30" colspan="2" align="Center">
<%
if Cuo=1 then
Response.Write "<p class=p2>密码错误!</p>"
elseif Cuo=2 then
Response.Write "<p class=p2>登录失败!</p>"
elseif Cuo=3 then
Response.Write "<p class=p2>验证码错误!</p>"
end if
%>
</td>
</tr>
<tr>
<td width="197" height="30" align="right">工 号:</td>
<td width="205" height="30">
<input name="LouHB_UserName" type="text" class="button1" size="20" maxlength="20" value="admin" onFocus="this.select()" onMouseOver="this.focus();"></td>
</tr>
<tr>
<td height="30" align="right">密 码:</td>
<td height="30"><input name="LouHB_Password" type="password" class="button1" value="admin" size="21" maxlength="20" onFocus="this.select()" onMouseOver="this.focus();"></td>
</tr>
<td align="right">验证码:</td>
<td><input name="LouHB_YanZhengM" type="text" class="button1" size="6" maxlength="20" onFocus="this.select()" onMouseOver="this.focus();"><Font Color="Red"><%=gen_key(4)%></Font></td>
<td height="30"></td>
<tr align="center">
<td height="30" colspan="2">
<input type="image" name="Reg2" value="登录" src="pic/login.gif" />
<a href="LHB_ZhuCe.asp"><img src="pic/Reg.gif" alt="新用户注册" border="0"></a></td>
</tr></form>
</table>
</center>
<br>
<%Call Copy%>
</Center>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -