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

📄 search_ach_2.asp

📁 社区天地图文系统(核心:尘缘雅境图文系统) 版本: 1.0 本系统是ASP+ACCESS环境下开发成功
💻 ASP
字号:
<!--#include file="conn.asp"-->


<%
dim user_class,subject,testno
user_class=trim(request("stclass"))
subject=trim(request("subject"))
testno=trim(request("testno"))
%>
<%
set rs=server.createobject("adodb.recordset")
if testno<>"" then
sql="select * from st_info where user_testnumber='"&user_class&"' and user_city='"&subject&"' and user_sex='"&testno&"' "
else
sql="select * from st_info where user_testnumber='"&user_class&"' and user_city='"&subject&"' and user_sex "
end if
rs.open sql,conn,1,1
%>
<html>

<head>
<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></STYLE><style type="text/css">
body 
 {
  scrollbar-face-color: #C19A11;
  scrollbar-highlight-color: #C19A11;
  scrollbar-shadow-color: #000000;
  scrollbar-arrow-color: #000000;
  scrollbar-base-color: #000000;
  scrollbar-dark-shadow-color: #000000;
 }
</style>
<link rel="stylesheet" href="style.css"><script language="JavaScript">
function shutwin()
{
window.close();
return;
}
</script>
</head>

<body topmargin="0" background="../2s/images/bj.jpg" style="background-attachment: fixed">

<div align="center">
  <table border="1" width="600" cellspacing="0" cellpadding="4" bordercolorlight="#000000" bordercolordark="#FFFFFF">
    <tr>
      <td width="388" colspan="6" align="center"><%       
	if Not(rs.bof and rs.eof) then'判别数据表中是否为空记录
			NumRecord=rs.recordcount
			rs.pagesize=1000
			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
%>

        <p align="left">查询结果: 
<%if testno<>"" then
response.write rs("user_city") 
response.write "在"
response.write rs("user_testnumber")
response.write rs("user_sex") 
response.write NumRecord 
response.write "人次"
else
response.write rs("user_city") 
response.write "在"
response.write rs("user_testnumber")
response.write "未归和滞留"
response.write NumRecord 
response.write "人次"
	
end if	%>                          [<a href="javascript:shutwin();">关闭窗口</a>] 

</p>
      </td>
    </tr>
    
  <center>
    
    <tr>
      <td width="107" align="center" bgcolor="#C0C0C0">日期</td>
      <td width="108" align="center" bgcolor="#C0C0C0">学院</td>
      <td width="108" align="center" bgcolor="#C0C0C0">班级</td>
      <td width="108" align="center" bgcolor="#C0C0C0">姓名</td>
      <td width="108" align="center" bgcolor="#C0C0C0">周次</td>
      <td width="46" align="center" bgcolor="#C0C0C0">类型</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"><%=(year(rs("user_number")))%>-<%=(month(rs("user_number")))%>-<%=(day(rs("user_number")))%></td>
      <td width="108" align="center"><b><%=rs("user_city")%></b></td>
      <td width="108" align="center"><%=rs("user_class")%></td>
      <td width="108" align="center"><A 
onclick="window.showModelessDialog('viewuser.asp?id=<%=rs("id")%>',0,'dialogHeight:300px;dialogWidth:550px;center:yes;help:no;resizable:no;status:no')" 
                  href="###"><%=rs("user_name")%></A></td>
      <td width="108" align="center"><%=rs("user_testnumber")%></td>
      <td width="46" align="center"><%=rs("user_sex")%></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="599" border="0" align="center">
  <tr> 
          <td height="17"> 
            
      <div align="right"> 
        <input type="hidden" name="page" value="<%=NoncePage%>">
             </div>                       
          </td>
  
  </table>
  </center>
</div>

</body>

</html>














⌨️ 快捷键说明

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