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

📄 login.asp

📁 本网站是以网上购物功能为重点而开发的电子商务购物网站
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="config.asp"-->
<!--#include file="conn.asp"--> <%
if NOT isempty(request("LoginSubmit")) then
	dim nimda,password
	nimda=replace(trim(request("Name")),"'","")
	password=md5(replace(trim(request("Pws")),"'",""))
	set rs=server.CreateObject("adodb.recordset")
	rs.Open "select * from [nimda] where nimda='"&nimda&"' and password='"&password&"' " ,conn,1,1
	if not(rs.bof and rs.eof) then
		if password=rs("password") then
			session("nimda")=trim(rs("nimda"))
			session("rank")=int(rs("rank"))
			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%>
<!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>E书部落—网上书城</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>
<!--#include file="head.htm"-->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="left" valign="top"><br>      <form name="nimdainfo" 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="nimda2" size="12"></td>
          </tr>
          <tr>
            <td bgcolor="#FFFFFF">密&nbsp;&nbsp;码:</td>
            <td><input name="Pws" type="password" id="Pws" size="12"></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td colspan="2" align="center"><input name="LoginSubmit" type="submit" id="LoginSubmit"  value="登录">

              <input  type="reset" name="Submit2" value="清除" >
            </td>
          </tr>
        </table>
    </form>      </td>
  </tr>
</table>
<table width="778" height="20"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" background="../images/menu_9.gif"><span class="style1">联系我们</span></td>
  </tr>
</table>
<table width="778"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">2003 &copy; Copyright爱书者  All rights reserved.</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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