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

📄 login.asp

📁 仿搜狐NBA网站源码,仿搜狐NBA网站源码全站生成HTML静态页面
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<!--#include file="md5.asp"-->
<!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">
<LINK href="style.css" rel=stylesheet>
<title>米儿文章管理后台</title>
</head>
<body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<%
mi222=trim(request("mi222"))
if mi222="login" then
  mi222_name=trim(request.Form("mi222_name"))
  mi222_password=trim(request.Form("mi222_password"))
  Set rs=Server.CreateObject("ADODB.RecordSet") 
  sql="select * from mi222admin where mi222_name='"& mi222_name &"' and mi222_password='"& md5(mi222_password) &"'"
  rs.Open sql,conn,1,1
  if rs.bof or rs.eof then
    rs.close
    Response.Write("<script>alert('非法登陆!');history.go(-1)</script>")
    Response.End
  else
    rs.close
	session("adminname")=mi222_name
    response.write "<script language='javascript'>" & chr(13)
    response.write "alert('登陆成功!');" & Chr(13)
    response.write "window.document.location.href='admin.asp';"&Chr(13)
    response.write "</script>" & Chr(13)
    Response.End
  end if
elseif mi222="logout" then
	session("adminname")=""
    response.write "<script language='javascript'>" & chr(13)
    response.write "alert('登出成功!');" & Chr(13)
    response.write "window.document.location.href='login.asp';"&Chr(13)
    response.write "</script>" & Chr(13)
    Response.End
end if
%>
<form action="login.asp?mi222=login" method="post">
  <table width="300" border="0" align=center cellpadding="1" cellspacing="0" style="border: outset 3px;width:0;">
    <tr>
      <td><table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" class="tablefoot" style="width:500px;">
          <tr>
            <th valign="middle" colspan="2">用户登录</th>
          </tr>
        </table>
          <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" class="tablefoot" style="width:500px;">
            <tr>
              <td width="247" height="50" align="center" valign="middle" class="forumRowHighlight">&nbsp;</td>
              <td width="241" height="50" align="center" valign="middle" class="forumRowHighlight"><strong>米儿文章管理系统<br>
              </strong>版本:V1.0 ACCESS版</td>
            </tr>
        </table>
          <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" style="width:500px;">
            <tr>
              <td valign="middle" colspan="2" align="center" class="forumRowHighligh"t height="4"></td>
            </tr>
            <tr>
              <td width="30%" height="30" align="right" valign="middle" class="forumRow"><b><b>用户名:</b></b></td>
              <td height="30" align="left" valign="middle" class="forumRow"><input name="mi222_name" type="text" id="mi222_name" /></td>
            </tr>
            <tr>
              <td height="30" align="right" valign="middle" class="forumRow"><b>密 码:</b></td>
              <td height="30" align="left" valign="middle" class="forumRow"><input name="mi222_password" type="password" id="mi222_password" size="22" />
              </td>
            </tr>
            <tr>
              <td valign="middle" colspan="2" align="center" class="forumRowHighlight"><input name="submit" type="submit" class="button" value="登 陆" /></td>
            </tr>
        </table></td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

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