⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login.asp

📁 我的课程设计
💻 ASP
字号:
<%@ language=VBScript %>
<!--#include file="setup.asp"-->
<%

if Request("menu") = "login" then
	call login()
elseif Request("menu") = "logout" then
	call logout()
else call index()
end if

sub index()
%>
<html>
<head>
<title><%=gbook_name%>--管理登陆</title>
<link rel="stylesheet" href="../css/admin.css">
</head>

<body topmargin=0 background="">
<table width=600 height="27" border=1 bordercolor="#FFFFFF" align="center" cellpadding=0 cellspacing=1  style="border: 1px solid #CCCCCC;">
  <tr> 

    <td width="245"><div align="right">【<a href="index.asp">查看留言</a>】  【<a href="write.asp">签写留言</a>】</div></td>
  </tr>
</table>
<table width="600" border="0" cellspacing="1" cellpadding="4" align="center" bgcolor="#999999">
  <form name=reply method="post" action="login.asp"><tr bgcolor="#ebebeb"> 
      <td align="center" bgcolor="#f7f7f7"> 
        <input type=hidden name=menu value=login>
        <table width="48%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
          <tr bgcolor="#FFFFFF"> 
            <td width="25%" align="right" nowrap>管理口令: </td>
            <td width="75%" nowrap> 
              <input type="password" name="password" size="20" style="background-color:#ffffff; color:#8888AA; border: 1 double #B4B4B4" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" value=<%=Request.cookies("password")%>> 
              <input type=checkbox name=save value=save <%if Request.cookies("save") <> "" then%>checked<%end if%>>
              记住密码 </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="center" nowrap>&nbsp; </td>
            <td nowrap> 
              <input type="submit" name="Submit" value="登 陆" style="backgroud-color: #ffffff; border-bottom: 1px solid; border-left: 1px solid; border-right: 1px solid; border-top: 1px solid; FONT-FAMILY: 宋体; FONT-SIZE: 9pt; HEIGHT: 18px; WIDTH: 50px"> 
              <input type="reset" name="Submit2" value="重 置" style="backgroud-color: #ffffff; border-bottom: 1px solid; border-left: 1px solid; border-right: 1px solid; border-top: 1px solid; FONT-FAMILY: 宋体; FONT-SIZE: 9pt; HEIGHT: 18px; WIDTH: 50px"> 
              <input type="button" name="Submit3" value="取 消" onClick="javascript:history.back(-1);" style="backgroud-color: #ffffff; border-bottom: 1px solid; border-left: 1px solid; border-right: 1px solid; border-top: 1px solid; FONT-FAMILY: 宋体; FONT-SIZE: 9pt; HEIGHT: 18px; WIDTH: 50px"> 
            </td>
          </tr>
        </table>
      </td>
  </tr></form>
</table>
 
<%
call htmlend()

end sub

sub login()

	password = Request.form("password")
	save = Request.form("save")
	if password <> passwords then
	message=message&"您的管理口令不正确!\n"
	end if

	if message <> "" then
	call error(""&message&"")
	Response.end
	end if

	if save <> "" then
	Response.cookies("password") = password
	Response.cookies("save") = save
	else
	Response.cookies("password") = ""
	Response.cookies("save") = ""
	end if

	Response.cookies("admin") = password
	Response.redirect "adminer.asp"

end sub

sub logout()

	Response.cookies("admin") = ""
	Response.cookies("password") = ""
	Response.cookies("save") = ""

	Response.redirect "index.asp"
end sub
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -