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

📄 all.asp

📁 学生档案管理系统是典型的信息管理系统(MIS),其开发主要包括后台数据库的建立和维护以及前端程序的开发两个方面。对于前者要求建立起数据一致性和完整性强、数据安全性好的库。而对于后者则要求应用程序功能完
💻 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">&nbsp; <a href="ach_manager.asp">统考成绩列表</a>   
    | <a href="search_st.asp">添加统考成绩</a>&nbsp; | <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>
<!--#include file="foot.asp"-->
</body>

</html>

⌨️ 快捷键说明

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