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

📄 checklogin.asp

📁 能自动计算总分、平均分及格率等各种统计数据。在统计时你还可以选择统计全部学科或部分学科;在使用中可自由增删成绩、人员
💻 ASP
字号:
<!-- #include file="top.asp"-->

<%
response.buffer=true
Response.Expires=0
if session("pwd")<>"" then
mm=session("pwd")
else
mm=request("mm")
end if
if session("user")<>"" then
xh=session("user")
else
xh=request("xh")
end if
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("class_cj.mdb")
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select id from user where xh='"&xh&"' and mm='"&mm&"'"
rs.open sql,conn,3,3

if rs.eof then
response.write("<table width=300 border=0 cellspacing=0 cellpadding=0 align=center>")
response.write("<script language=JavaScript>" & chr(13) & "alert('无效的学号或密码,请重新确认');" & "history.back()" & "</script>")
response.write("</table>")
response.end
else 
session("pwd")=mm
session("user")=xh

%>
<title></title>
<link href="images/style.css" rel="stylesheet" type="text/css">

<body>
<%define="1"%>
<!-- #include file="stumenu.asp"-->
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
    <form action="look.asp" method="post" name="form1" >
  <table border="0" cellpadding="0" cellspacing="0">
    <tr> 
            <td height="25" nowrap>
              <div align="center">查询您的全部成绩:</div>        
            </td>
            <td width="200" height="25"> 
              <input type="hidden" name="xh" value="<%=request("xh")%>">
              <input name="submit" type="submit" value="确定"></td>
    </tr>
  </table>
    </form>  </td>
  </tr>
<tr><td align="center"><table width="768"  border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#A0A4AC"><td height="30" colspan="4" align="center" class="unnamed3_14write_b">分类查询</td>
</tr>
  <tr>
    <td>
<form action="stulook.asp" method="post" name="form1" >
  <table border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
   <tr bgcolor="#EEEEEE"><td height="25" colspan="2" align="center"><strong>按课程查询</strong></td>
   </tr>
   <tr><td width="50" height="25" align="center">课程:</td><td width="150" height="25">
       <input type=text name="kc" size="15">
       </td></tr>
   <tr><td colspan="2" align="center"><input type="hidden" name="xh" value="<%=request("xh")%>"><input name="submit" type="submit" value="提交"></td></tr>
  </table>
</form>
</td>
    <td>
<form action="stulook.asp" method="post" name="form1" >
  <table border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
   <tr bgcolor="#A0A4AC"><td height="25" colspan="2" align="center"><font color="#FF0000" class="unnamed3write"><strong>按成绩查询</strong></font></td>
   </tr>
   <tr><td width="50" height="25" align="center">成绩:</td><td width="150" height="25">
       <input type=text name="cj" size="15">
       </td></tr>
   <tr><td colspan="2" align="center"><input type="hidden" name="xh" value="<%=request("xh")%>"><input name="submit" type="submit" value="提交"></td></tr>
  </table>
</form>
</td>
    <td>
<form action="stulook.asp" method="post" name="form1" >
  <table border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
   <tr bgcolor="#EEEEEE"><td height="25" colspan="2" align="center"><strong>按学期查询</strong></td>
   </tr>
   <tr><td width="50" height="25" align="center">学期:</td><td width="150" height="25">
        <select name="xq"><option>第一学期</option><option>第二学期</option><option>第三学期</option><option>第四学期</option><option>第五学期</option><option>第六学期</option><option>第七学期</option><option>第八学期</option></select>
       </td></tr>
   <tr><td colspan="2" align="center"><input type="hidden" name="xh" value="<%=request("xh")%>"><input name="submit" type="submit" value="提交"></td></tr>
  </table>
</form>
</td>
    <td>
<form action="stulook.asp" method="post" name="form1" >
  <table border="1" cellpadding="0" cellspacing="0" bordercolor="#e0e0e0">
   <tr bgcolor="#A0A4AC"><td height="25" colspan="2" align="center"><font color="#FF0000" class="unnamed3write"><strong>按类型查询</strong></font></td>
   </tr>
   <tr><td width="50" height="25" align="center">类型:</td><td width="150" height="25">
       <select name="lx"><option>必修课</option><option>选修课</option><option>限修课</option></select>
       </td></tr>
   <tr><td colspan="2" align="center"><input type="hidden" name="xh" value="<%=request("xh")%>"><input name="submit" type="submit" value="提交"></td></tr>
  </table>
</form>
</td>
  </tr>
</table></td></tr>
</table>


<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="1"><div align="center"></div></td>
        </tr>
</table>
      <table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="25" bgcolor="#A0A4AC"><div align="center"><a href="http://www.25175.com">powered by </a><a href="http://www.25175.com">25175</a></div></td>
        </tr>
      </table>
<%
end if
%>

⌨️ 快捷键说明

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