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

📄 login.asp

📁 图书管理系统是典型的信息管理系统(MIS),其开发主要包括后台数据库的建立和维护以及前端应用程序的开发两个方面
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="inc/conn.asp"--> 
<!--#include file="inc/config.asp"-->

<%
if NOT isempty(request("LoginSubmit")) then
	dim admin,password
	admin=replace(trim(request("Name")),"'","")
	password=md5(replace(trim(request("Pws")),"'",""))
	set rs=server.CreateObject("adodb.recordset")
	rs.Open "select * from [admin] where admin='"&admin&"' and password='"&password&"' " ,conn,1,1
	if not(rs.bof and rs.eof) then
		if password=rs("password") then
			session("admin")=trim(rs("admin"))
			session.Timeout=sessionLife
			rs.Close
			set rs=nothing
			response.Redirect "mpro.asp"
		else
			call MsgBox("登录失败!","Back","None")

		end if
	else
		call MsgBox("非法登陆!","Back","None")	
	end if
end if
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理员登陆</title>
<link href="../style.css" rel="stylesheet" type="text/css">

<style type="text/css">
<!--
.table {font-family:Verdana;font-size:10px;color:#ffffff}
.style2 {color: #66FF00}
-->
</style>

</head>

<body>


<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="left" valign="top"><br>      <form name="admininfo" method="post" action="" >
        <table  width="260" border="0" align="center" cellpadding="3" cellspacing="5">
          <tr bgcolor="#FFFFFF"> 
            <td colspan="2">
              <table border="0" align="left" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="18"><img src="../images/w.gif" width="18" height="18"></td>
                  <td width="76" style="color:#415373">管理员登录</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="59" bgcolor="#FFFFFF">管理员:</td>
            <td width="174">
              <input name="Name" type="text" id="admin2" size="12">
            </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td bgcolor="#FFFFFF">密&nbsp;&nbsp;码:</td>
            <td>
              <input name="Pws" type="password" id="Pws" size="12">
            </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="center">&nbsp; </td>
            <td> 
              <input name="LoginSubmit" type="submit" id="LoginSubmit"  value="登录">
            </td>
          </tr>
        </table>
    </form>      </td>
  </tr>
</table>


</body>
</html>

⌨️ 快捷键说明

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