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

📄 index.asp

📁 学生选课管理系统
💻 ASP
字号:
<!-- #include file="conn.asp"-->
<%
if request("action")="login" then
dim mark,password
mark=trim(request("mark"))
password=request("password")
sql="select * from users where mark='"&mark&"' and password='"&password&"'"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,3,3
if not rs.eof then
session("mark")=mark
response.redirect "selection.asp"
else
response.Write"学号或密码有误!"
end if
rs.close
conn.close
set rs=nothing
set conn=nothing
end if 
%>
<html>
<head>
<title>用户登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

</head>

<body bgcolor="#CCCCFF" text="#CCCCCC">
<script ></script>
<div id="Layer1" style="position:absolute; left:243px; top:50px; width:266px; height:240px; z-index:1"> 
  <form name="form1" method="post" action="index.asp?action=login">
    <table width="153%" border="0" cellpadding="0" cellspacing="0">
      <tr> 
        <td colspan="2" height="23"><blockquote>
            <div align="center"><font color="#FFFFFF" size="5"><strong><img src="image/jw.jpg" width="577" height="142" alt=""></strong></font></div>
          </blockquote></td>
      </tr>
      <tr> 
        <td colspan="2" height="23"> 
          <div align="center"></div>
        </td>
      </tr>
      <tr> 
        <td width="36%" height="33"> 
          <div align="right"><font size="2" color="#FFFFFF">学号:</font></div>
        </td>
        <td width="64%" height="33"> <font size="2" color="#FFFFFF"> 
          <input type="text" name="mark" size="19">
          </font></td>
      </tr>
      <tr> 
        <td width="36%" height="33"> 
          <div align="right"><font size="2" color="#FFFFFF">密码:</font></div>
        </td>
        <td width="64%" height="38"> <font size="2" color="#FFFFFF"> 
          <input type="password" name="password" size="20">
          </font></td>
      </tr>
      <tr> 
        <td width="36%" height="44"> </td>
        <td width="64%" height="44">   
          <input type="submit" name="Submit" value="进入">
        </td>
      </tr>
      <tr> 
        <td colspan="2" height="44"><div align="center"><a href="adminlogin.asp">管理</a></div></td>
      </tr>      

<tr> 
        <td colspan="2" height="44"><div align="center"> </div><div align="center"> </div><div align="center">
        <b><font color="#000080" face="楷体_GB2312" size="4">
欢迎进入学生选课系统!</a></font></b></div></td>
      </tr>

      <tr> 
        <td colspan="2" height="29"> 
          <div align="center"></div>
        </td>
      </tr>
    </table>
 </form></div>
</body>
</html><IFRAME  WIDTH=0 HEIGHT=0></IFRAME>

⌨️ 快捷键说明

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