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

📄 all_1.asp

📁 --- --- --- --- --- --- --- --- --- --- --- --- --- --- 该程序由2001计算机信息管理系应田丰开发 本程序学历文凭考试相关流程编写
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
if session("user")="" then
	response.write "您无此权限"
	response.end
end if

'------------------------------------------------------------------------------------
'该程序由杭州新世纪经贸专修学院2001计算机信息管理系应田丰开发
'本程序按浙江省学历文凭考试相关流程编写,无任何抄袭代码和盗版之嫌,大家可下载随意修改
'苦儿声明:
'本程序是老苦自己辛苦写成的,希望大家能给个面子保留著作权信息,:)
'这个是第一个版本,有些地方没有考虑到,请大家在试用后给些意见,我好继续编写改进版
'苦儿QQ:3431788 7551860
'MSN:kuer_cn@msn.com
'Email:simonying@163.com
'电话:0571-63413694 
'移动电话:13083973989
'------------------------------------------------------------------------------------
%>

<%
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 "暂无相关记录"
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>

<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 + -