📄 login.asp
字号:
<!--#include file="../Inc/Conn.asp" -->
<%
if lcase(Request.Form("act"))="login" then
LoginName=Trim(Request.Form("LoginName"))
LoginPass=Trim(Request.Form("LoginPass"))
Set rs=server.CreateObject("adodb.recordset")
rs.open "select * from LangDaoManage where UserName='"&LoginName&"' and PassWord='"&LoginPass&"'",Conn,1,1
if rs.eof and rs.bof then
CloseRs
Response.Write("<script>alert('您输入的登陆账号和密码错误,请从新登陆!');history.back();</script>")
Response.End()
end if
CloseRs
Session("JingAdmin")=LoginName
Response.Redirect("Default.asp")
end if
%>
<html>
<head>
<title><%=WebTitle%>管理员登陆</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="Style.css" type="text/css">
</head>
<script language="javascript">
<!--//
function SetFocus()
{
if (document.myform.LoginName.value=="")
{
alert("您忘记输入管理员名称了!");
document.myform.LoginName.focus();
return false;
}
if (document.myform.LoginPass.value=="")
{
alert("您忘记输入管理员登陆密码了!");
document.myform.LoginPass.focus();
return false;
}
}
//-->
</script>
<body topmargin="0" leftmargin="0" rightmargin="0">
<div align="center"><BR>
<p> </p> <p> </p>
<form name=myform method="post" action="login.asp" onSubmit="return SetFocus();">
<table cellpadding="1" cellspacing="0" border="0" align=center style="border: outset 3px;width:0;">
<tr>
<td> <table width="605" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/admin_login_r1_c1.jpg" width="605" height="17"></td>
</tr>
</table>
<table width="605" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="24"><img src="images/admin_login_r2_c1.jpg" width="23" height="212"></td>
<td width="494" align="center" valign="top" bgcolor="#F7FAFF"><table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="images/admin_login_r2_c2.jpg"><img src="images/admin_login_r2_c2.jpg" alt="江南源码资源站下载管理系统" width="494" height="101" border="0"></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<td width="28%" align="center" rowspan="4"></td>
<td width="72%" align="left"> 用户名:
<input name="LoginName" type="text" id="LoginName" onFocus="this.select();" onMouseOut="this.style.background='#F9F9F9'" size="20"></td>
</tr>
<tr>
<td align="left"> 密 码:
<input name="LoginPass" type="password" id="LoginPass" onFocus="this.select();" onMouseOut="this.style.background='#F9F9F9'" size="21"></td>
</tr>
<tr>
<td align="left"> </td>
</tr>
<tr>
<td align="left"><input type="button" name="Submit4" onclick=window.location.reload() value="刷新本页" class=button>
<input type="button" name="Submit1" onClick="javascript:location.href='../default.asp'" value="返回首页" class=button>
<input type="submit" name="Submit" value="管理登陆" class=button>
<input name="act" type="hidden" id="act" value="login"></td>
</tr>
</table></td>
<td width="88"><img src="images/admin_login_r2_c3.jpg" width="88" height="212"></td>
</tr>
</table>
<table width="605" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/admin_login_r4_c1.jpg" width="605" height="21"></td>
</tr>
</table></td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -