?? all.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="chkuser.asp"-->
<%
dim testno,subject,user_class
testno=trim(request("testno"))
subject=trim(request("subject"))
user_class=trim(request("user_class"))
set rs=server.createobject("adodb.recordset")
if user_class="all" then
sql="select * from ach where testno='"&testno&"' and subject='"&subject&"'"
else
sql="select * from ach where user_class='"&user_class&"' and testno='"&testno&"' and subject='"&subject&"'"
end if
rs.open sql,conn,1,1
if not rs.eof then
levelz=rs.recordcount
else
Response.Write "<script language='javascript'>window.confirm('該科目暫無相關資料!!');</script>"
Response.Write "<script language='javascript'>parent.window.history.go(-1);</script>"
response.end
end if
rs.close
set rs1=server.createobject("adodb.recordset")
if user_class="all" then
sql1="select * from ach where ach>=60 and testno='"&testno&"' and subject='"&subject&"'"
else
sql1="select * from ach where user_class='"&user_class&"' and ach>=60 and testno='"&testno&"' and subject='"&subject&"'"
end if
rs1.open sql1,conn,1,1
if not rs1.eof then
level1=rs1.recordcount
else
level1=0
end if
rs1.close
level2=levelz-level1
level3=level1/levelz*100
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.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">
<center>
<table width="738" height="35">
<td background="images/top_1.jpg"> <a href="ach_manager.asp">統考成績列表</a>
| <a href="search_st.asp">添加統考成績</a> | <a href="search_ach.asp">成績高級查詢</a>
| <a href="ach_top.asp">單科成績排行榜</a> | <a href="total_top.asp">總分成績排行榜</a>
| <a href="all.asp">統考成績分析</a></table>
</center>
</div>
<div align="center">
<center>
<table border="1" width="400" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
<tr>
<td width="386" colspan="2">您所查的為:<%=testno%>的<%=subject%>科目<% if user_class="all" then%>全部班級<%else%><%=user_class%><%end if%>合格率情況</td>
</tr>
<tr>
<td width="117" align="right">考試總人數為:</td>
<td width="257"><%=levelz%></td>
</tr>
<tr>
<td width="117" align="right">及格人數為:</td>
<td width="257"><%=level1%></td>
</tr>
<tr>
<td width="117" align="right">不及格人數為:</td>
<td width="257"><%=level2%></td>
</tr>
<tr>
<td width="117" align="right">及格率為:</td>
<td width="257"><%=level3%>%</td>
</tr>
</table>
</center>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -