📄 login.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>成功登入</title>
<style type="text/css">
<!--
.style1 { font-size: 14px;
color: #9999CC;
}
body {
background-image: url(images/beijing.gif);
}
a:link {
color: #9999CC;
text-decoration: none;
}
a:visited {
color: #9999CC;
text-decoration: none;
}
a:hover {
color: #6666FF;
text-decoration: underline;
}
a:active {
color: #9933FF;
text-decoration: none;
}
-->
</style>
</head>
<body>
<div align="center">
<%
Username=request.form("Username")
Password=request.form("Password")
%>
<!--#INCLUDE FILE="conn.asp"-->
<%
dim RS1,SQL
SQL="select * from Login"
set Rs1=Conn.execute(SQL)
If Username=Rs1("Username")AND Password=Rs1("Password")then
session("Username")=Rs1("Username")
session("password")=Rs1("Password")
%>
<br><br><br><br><br>
<table width="300" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="160" align="center" valign="top"><table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="31" background="images/login.gif"> </td>
</tr>
</table>
<table width="300" border="0" cellpadding="0" cellspacing="1" bgcolor="#666699">
<tr>
<td height="140" align="center" valign="top" bgcolor="#FFFFFF"><table width="298" height="141" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="108" colspan="3" bgcolor="#F9F9F9"><div align="center">
<p class="style1">您已成功登入管理模式,</p>
<p class="style1">请您选择将要要进行的操作!</p>
</div></td>
</tr>
<tr bgcolor="#F0F0F0">
<td height="32" colspan="3"><div align="center">
<table width="185" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25"><img src="images/del.gif" width="18" height="18"></td>
<td width="60" class="style1"><a href="manage.asp">留言管理</a></td>
<td width="15"> </td>
<td width="25"><img src="images/pass.gif" width="18" height="18"></td>
<td width="60" class="style1"><a href="edit.asp">修改密码</a></td>
</tr>
</table>
</div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<%
else
response.Redirect("Login.htm")
rs.close
conn.close
set rs=nothing
set conn=nothing
end if
%>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -