📄 search_ach_1.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("admin")="" then
response.write "<script>alert('您无此权限');document.location.href='index.asp';</script>"
response.end
end if
%>
<%
dim user_number,subject,testno
user_number=trim(request("user_number"))
subject=trim(request("subject"))
testno=trim(request("testno"))
%>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from ach where user_testnumber='"&user_number&"' and subject='"&subject&"' and testno='"&testno&"'"
rs.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查询结果</title>
<link rel="stylesheet" href="style.css">
</head>
<body topmargin="0">
<!--#include file="top.asp"-->
<div align="center">
<table border="1" width="650" cellspacing="0" cellpadding="4" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr>
<td colspan="8" align="center">
<p align="left">查询结果</p>
</td>
</tr>
<center>
<tr>
<td width="50" align="center">学号</td>
<td width="19" align="center">姓名</td>
<td width="54" align="center">班级</td>
<td width="92" align="center">考次</td>
<td width="92" align="center">科目</td>
<td width="59" align="center">科目类型</td>
<td width="59" align="center">任课教师</td>
<td width="39" align="center">成绩</td>
</tr>
<%if not rs.eof then%>
<%do while not rs.eof%>
<tr>
<td width="50" align="center"><%=rs("user_number")%></td>
<td width="19" align="center"><%=rs("user_name")%></td>
<td width="54" align="center"><%=rs("user_class")%></td>
<td width="92" align="center"><%=rs("testno")%></td>
<td width="92" align="center"><%=rs("subject")%></td>
<td width="59" align="center"><%=rs("subject_type")%></td>
<td width="59" align="center"><%=rs("teacher_name")%></td>
<%if rs("ach")>=60 then%>
<td width="39" align="center"><%=rs("ach")%></td>
<%else%>
<td width="94" align="center"><font color=red><%=rs("ach")%></font></td>
<%end if%>
</tr>
<%rs.movenext%>
<%loop%>
<%else%>
<tr>
<td colspan="8" align="center">查无此记录</td>
</tr>
<%end if%>
</table>
</center>
</div>
<p></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -