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

📄 ach_manager.asp

📁 网上学生管理信息系统,能够方便高校老师管理学生的信息,同时也便于学生网上查询
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
if session("admin")="" then
	response.write "<script>alert('您无此权限');document.location.href='index.asp';</script>"
	response.end
end if
%>

<%
set rst=server.createobject("adodb.recordset")
sql="select * from ach order by id desc"
rst.open sql,conn,1,1
%>
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<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">
  <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> | <a href="search_ach.asp">成绩高级查询</a> 
    | <a href="ach_top.asp">单科成绩排行榜</a> | <a href="total_top.asp">总分成绩排行榜</a> 
    | <a href="all.asp">考试成绩分析</a> | <a href="ach_email.asp">用E-Mail发成绩单</a></table>
  </center>
</div>

<div align="center">
  <center>
  <table border="0" width="700" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%"><%       
	if Not(rst.bof and rst.eof) then'判别数据表中是否为空记录
			NumRecord=rst.recordcount
			rst.pagesize=20
			NumPage=rst.Pagecount
			if request("page")=empty then 
			NoncePage=1
		else
		if Cint(request("page"))<1 then
			NoncePage=1
		else
			NoncePage=request("page")
		end if
		if Cint(Trim(request("page")))>Cint(NumPage) then NoncePage=NumPage
	end if
else
	NumRecord=0
	NumPage=0
	NoncePage=0
	end if
%>
        <table border="1" width="730" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
          <tr>
            <td width="73" bgcolor="#EBE9FE" align="center">准考证号</td>
            <td width="54" bgcolor="#EBE9FE" align="center">姓名</td>
            <td width="64" bgcolor="#EBE9FE" align="center">班级</td>
            <td width="109" bgcolor="#EBE9FE" align="center">考试场次</td>
            <td width="109" bgcolor="#EBE9FE" align="center">考试科目</td>
            <td width="70" bgcolor="#EBE9FE" align="center">科目类型</td>
            <td width="70" bgcolor="#EBE9FE" align="center">任课教师</td>
            <td width="39" bgcolor="#EBE9FE" align="center">成绩</td>
            <td width="61" bgcolor="#EBE9FE" align="center">修改</td>
            <td width="61" bgcolor="#EBE9FE" align="center">删除</td>
          </tr>
            <%if Not(rst.bof and rst.eof) then
	rst.move (Cint(NoncePage)-1)*20,1
	for i=1 to rst.pagesize
%>

          <tr>
            <td width="73" align="center"><%=rst("user_testnumber")%></td>
            <td width="54" align="center"><%=rst("user_name")%></td>
            <td width="64" align="center"><%=rst("user_class")%></td>
            <td width="109" align="center"><%=rst("testno")%></td>
            <td width="109" align="center"><%=rst("subject")%></td>
            <td width="70" align="center"><%=rst("subject_type")%></td>
            <td width="70" align="center"><%=rst("teacher_name")%></td>
            <%if rst("ach")>=60 then%>
            <td width="69" align="center"><%=rst("ach")%></td>
            <%else%>
            <td width="69" align="center"><font color=red><%=rst("ach")%></font></td>
            <%end if%>
            <td width="61" align="center"><a href=mod_ach.asp?id=<%=rst("id")%>>修改</a></td>
            <td width="61" align="center"><a href=delete_ach.asp?id=<%=rst("id")%>>删除</a></td>
          </tr>
           <%		 		rst.movenext
			   		if rst.eof then exit for
					next
else
	response.write "<tr><td colspan=11><marquee scrolldelay=120 behavior=alternate>没有找到任何记录!!!</marquee></td></tr>"
end if	

rst.close
set rst=nothing

%>

        </table>
  </table>
</div>
<table width="748" border="0" align="center">
  <tr> 
          <td height="17"> 
            
      <div align="right"> 
        <input type="hidden" name="page" value="<%=NoncePage%>">
              <%
if NoncePage>1 then
	response.write "|<a href=ach_manager.asp?page=1>首 页</a>| |<a href=ach_manager.asp?page="&NoncePage-1&">上一页</a>|&nbsp"
else
	response.write "|首 页| |上一页|&nbsp"
end if
if Cint(Trim(NoncePage))<Cint(Trim(NumPage)) then
	response.write "|<a href=ach_manager.asp?page="&NoncePage+1&">下一页</a>| |<a href=ach_manager.asp?page="&NumPage&">尾 页</a>|"
else
	response.write "|下一页| |尾 页|"
end if
%>
              &nbsp;页次:<font color="#0033CC"><%=NoncePage%></font>/<font color="#0033CC"><%=NumPage%></font> 
              共<font color="#0033CC"><%=NumRecord%></font>条记录&nbsp; </div>                        
          </td>
    </tr>
  </table>
  </center>
  <p></p>
<!--#include file="down.asp"-->
</body>

</html>








⌨️ 快捷键说明

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