📄 checklogin.asp
字号:
<!-- #include file="inc/top.asp" -->
<!-- #include file="inc/stumenu.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("#25175class_cj.asp")
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
%>
<%define="1"%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<form action="stulook.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="确定">
<input name="al" type=hidden value="1"></td>
</tr>
</table>
</form> </td>
</tr>
<tr><td align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td height="30" colspan="4" align="center"><strong>分类查询</strong></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">按课程查询</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 height="25" 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="#CCCCCC"><td height="25" colspan="2" align="center">按成绩查询</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 height="25" 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">按学期查询</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 height="25" 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="#CCCCCC"><td height="25" colspan="2" align="center">按类型查询</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 height="25" 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>
<!-- #include file=inc/copyr.asp -->
<%
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -