?? 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_testnumber,subject,testno
user_testnumber=trim(request("user_testnumber"))
subject=trim(request("subject"))
testno=trim(request("testno"))
%>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from ach where user_testnumber='"&user_testnumber&"' and subject='"&subject&"' and testno='"&testno&"'"
rs.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<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 width="388" colspan="8" align="center">
<p align="left">查詢結果</p>
</td>
</tr>
<center>
<tr>
<td width="80" align="center">準考證號</td>
<td width="60" align="center">姓名</td>
<td width="65" align="center">班級</td>
<td width="110" align="center">考次</td>
<td width="110" align="center">科目</td>
<td width="70" align="center">科目類型</td>
<td width="70" align="center">任課教師</td>
<td width="45" align="center">成績</td>
</tr>
<%if not rs.eof then%>
<%do while not rs.eof%>
<tr>
<td width="80" align="center"><%=rs("user_testnumber")%></td>
<td width="60" align="center"><%=rs("user_name")%></td>
<td width="65" align="center"><%=rs("user_class")%></td>
<td width="110" align="center"><%=rs("testno")%></td>
<td width="110" align="center"><%=rs("subject")%></td>
<td width="70" align="center"><%=rs("subject_type")%></td>
<td width="70" align="center"><%=rs("teacher_name")%></td>
<%if rs("ach")>=60 then%>
<td width="45" align="center"><%=rs("ach")%></td>
<%else%>
<td width="45" align="center"><font color=red><%=rs("ach")%></font></td>
<%end if%>
</tr>
<%rs.movenext%>
<%loop%>
<%else%>
<tr>
<td width="388" colspan="8" align="center">查無此記錄</td>
</tr>
<%end if%>
</table>
</center>
</div>
<p></p>
<!--#include file="down.asp"-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -