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

📄 superlogin2.asp

📁 网上在线考试系统,方便快捷, 界面美观大方, visual basic 语言实现, 下载后直接解压缩就可以了
💻 ASP
字号:
<%@ Language=VBScript %>
<%
name2=trim(request("name2"))
passwd2=trim(request("passwd2"))
if name2<>"" and passwd2<>"" then
	Set conn = Server.CreateObject("ADODB.Connection")
	conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("../试题库.mdb")
	set rs= server.createobject("adodb.recordset") 

	if name2="admin" and passwd2="admin" then
		response.redirect "idmanage.asp"
	end if

	sql= "select * from 用户记录 where 用户名='"& name2 &"' and 密码='"& passwd2 &"'"
	Set rs= conn.Execute(sql) 
	if not rs.eof then
		session("pass")=1
		session("user")=name2
		conn.close
		response.redirect "xgmm0.asp"
	else 
		sql= "select * from 单位记录 where 用户名='"& name2 &"' and 密码='"& passwd2 &"'"
		Set rs= conn.Execute(sql) 
 		if not rs.eof then
			session("pass")=1
			session("user")=name2
			conn.close
			response.redirect "xgmm1.asp"
		else
			sql= "select * from 超级用户 where 用户名='"& name2 &"' and 密码='"& passwd2 &"'"
			Set rs= conn.Execute(sql) 
			if not rs.eof then
				session("pass")=1
				session("user")=name2
				conn.close
				response.redirect "idmanage.asp"
			else
				Response.Write "非法用户!"
			end if 
		end if
	end if
end if
%>
<html>
<head>
<title>帐号管理</title>
</head>
<body background="../images/1024.jpg">
<form action="superlogin2.asp" id="FORM1" method="post" name="FORM1">
  <p title> </p>
  <table border="0" width="100%">
    <tr>
      <th width="100%"><table border="0" width="100%">
        <tr>
          <th width="100%"><img src="../Images/back.gif" alt="../Images/背景.gif (87350 bytes)"></th>
        </tr>
      </table>
      </th>
    </tr>
  </table>
  <div align="center">
  <center>
  <h2 title>用户:<input id="text1" name="name2" style="HEIGHT: 22px; WIDTH: 103px" size="20"></h2>
  </center>
  </div>
  <div align="center">
  <center>
  <h2 title>口令:<input id="password1" name="passwd2" style="HEIGHT: 23px; WIDTH: 101px" type="password" size="20"></h2>
  </center>
  </div>
  
  <table border="0" width="100%">
    <tr>
    <td width="100%" checked="false"></td>
    </tr>
  </table>
  <div align="center">
  <center>
  <p title>
  <input id="submit1" name="submit2" type="submit"
  style="font-size: large; font-style: normal; font-variant: normal; font-weight: bold; background-image: url('../Images/enter3.bmp'); background-repeat: no-repeat; background-position: center 50%"
  title value="     ">
  </p>
  </center>
  </div>
</form>
</body>
</html>

⌨️ 快捷键说明

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