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

📄 login.asp

📁 一个网上销售电器的超市购物系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="inc/config.asp"-->
<!--#include file="inc/conn.asp"--> 
<%
if NOT isempty(request("LoginSubmit")) then
	dim admin,password
	admin=request.form("Name")
	password=request.form("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("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
%>

<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>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<!--#include file="head.htm"-->

<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="319" align="left" valign="top"> 
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p><br>
      </p>
      <form name="admininfo" method="post" action="" >
        <table  width="315" border="0" align="center" cellpadding="3" cellspacing="5">
          <tr bgcolor="#F1F7FE"> 
            <td colspan="2"> 
              <table width="173" height="30" border="0" align="left" cellpadding="0" cellspacing="0">
                <tr>
                <td width="23"><img src="../images/w.gif" width="18" height="18"></td>
                  <td width="123" style="color:#415373"><font color="#FF0000" size="+1"><strong>管理员登录</strong></font></td>
              </tr>
            </table></td>
          </tr>
          <tr bgcolor="#F1F7FE"> 
            <td width="59" height="47"><strong>管理员</strong>:</td>
            <td width="229"> 
              <input name="Name" type="text" id="admin2" size="12"></td>
          </tr>
          <tr bgcolor="#F1F7FE"> 
            <td height="46"><strong>密&nbsp;&nbsp;码</strong>:</td>
            <td> 
              <input name="Pws" type="password" id="Pws" size="12"></td>
          </tr>
          <tr bgcolor="#F1F7FE"> 
            <td height="33" 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="100%" height="30"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30" align="center" bgcolor="#00CC99"><a href="mailto:lyj0805@163.com" class="whitefont"><font size="+2">联系我们</font></a></td>
  </tr>
</table>
<table width="940"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#DAF8ED">
  <tr> 
    <td width="865" height="38" align="center"><font size="+1">&nbsp;</font><font size="+1">&copy 
      COPYRIGHT&copy;</font> </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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