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

📄 search_ach_3.asp

📁 职业培训学校学生档案成绩费用管理系统V1.0免费版.rar
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
if session("user")="" then
	response.write "您无此权限"
	response.end
end if

'------------------------------------------------------------------------------------
'该程序由湖北天门方正电脑学校网站部开发!'本程序按社会职业培训机构学生管理要求编写,无任何抄袭代码和盗版之嫌,大家可下载随意修改,但请注明出处。'学校声明:'本程序是魂之自由自己辛苦写成的,希望大家能给个面子保留著作权信息,:)'这个是第一个版本,有些地方没有考虑到,请大家在试用后给些意见,我好继续编写改进版'联系QQ:858377'网站:www.ok0728.com'Email:858377@qq.com'电话:0728-5235516 '移动电话:13972622522
'------------------------------------------------------------------------------------
%>

<%
dim user_name,testno
user_name=trim(request("user_name"))
'subject=trim(request("subject"))
testno=trim(request("testno"))
%>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from ach where user_name='"&user_name&"' 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 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">
  <table border="1" width="600" cellspacing="0" cellpadding="4" bordercolorlight="#000000" bordercolordark="#FFFFFF">
    <tr>
      <td width="388" colspan="6" align="center">
        <p align="left">查询结果</p>
      </td>
    </tr>
    
  <center>
    <%       
	if Not(rs.bof and rs.eof) then'判别数据表中是否为空记录
			NumRecord=rs.recordcount
			rs.pagesize=10
			NumPage=rs.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
%>

    <tr>
      <td width="107" align="center">准考证号</td>
      <td width="108" align="center">姓名</td>
      <td width="108" align="center">班级</td>
      <td width="108" align="center">考次</td>
      <td width="108" align="center">科目</td>
      <td width="46" align="center">成绩</td>
    </tr>
     <%if Not(rs.bof and rs.eof) then
	rs.move (Cint(NoncePage)-1)*10,1
	for i=1 to rs.pagesize
%>
    <tr>
      <td width="107" align="center"><%=rs("user_testnumber")%></td>
      <td width="108" align="center"><%=rs("user_name")%></td>
      <td width="108" align="center"><%=rs("user_class")%></td>
      <td width="108" align="center"><%=rs("testno")%></td>
      <td width="108" align="center"><%=rs("subject")%></td>
      <td width="46" align="center"><%=rs("ach")%></td>
    </tr>
    <%		 		rs.movenext
			   		if rs.eof then exit for
					next
else
	response.write "<tr><td colspan=13><marquee scrolldelay=120 behavior=alternate>没有找到任何记录!!!</marquee></td></tr>"
end if	

rs.close
set rs=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=search_ach_3.asp?page=1>首 页</a>| |<a href=search_ach_3.asp?page="&NoncePage-1&">上一页</a>|&nbsp"
else
	response.write "|首 页| |上一页|&nbsp"
end if
if Cint(Trim(NoncePage))<Cint(Trim(NumPage)) then
	response.write "|<a href=search_ach_3.asp?page="&NoncePage+1&">下一页</a>| |<a href=search_ach_3.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>
  
  </table>
  </center>
</div>
<!--#include file="down.asp"-->
</body>

</html>








⌨️ 快捷键说明

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