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

📄 search_class.asp

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


<%
dim user_class
user_class=trim(request("user_class"))

if user_class="" then
	response.write "输入不能为空"
	response.end
end if

set rs=server.createobject("adodb.recordset")
sql="select * from st_info where user_class like '"&user_class&"'"
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>
<link rel="stylesheet" href="style.css">
</head>

<body>

<div align="center">
  <center>
<table width="738" height="35" cellspacing="0" cellpadding="0" id="table1">
  <td background="images/top_1.jpg">&nbsp; <a href="st.asp">内务信息列表</a> | 
	<a href="search_st.asp">查询内务信息</a></table> 
  <table border="1" width="400" cellspacing="0" cellpadding="5" bordercolorlight="#000000" bordercolordark="#FFFFFF">
    <tr>
      <td width="100%" colspan="5">
        <p align="center">查找结果</p>
      </td>
    </tr><%
if not rs.eof then
%>
<%do while not rs.eof%>
    <tr>
      <td width="20%" align="center" bgcolor="#C0C0C0">ID号</td>
      <td width="20%" align="center" bgcolor="#C0C0C0">日期</td>
      <td width="20%" align="center" bgcolor="#C0C0C0">姓名</td>
      <td width="20%" align="center" bgcolor="#C0C0C0">类别</td>
      <td width="20%" align="center" bgcolor="#C0C0C0">班级</td>
    </tr>
    <tr>
      <td width="20%" align="center"><%=rs("id")%></td>
      <td width="20%" align="center"><%=(year(rs("user_number")))%>-<%=(month(rs("user_number")))%>-<%=(day(rs("user_number")))%></td>
      <td width="20%" align="center"><a href=viewuser.asp?id=<%=rs("id")%>><%=rs("user_name")%></td>
      <td width="20%" align="center"><%=rs("user_sex")%></td>
      <td width="20%" align="center"><%=rs("user_class")%></td>
    </tr>
    <%rs.movenext%>
    <%loop%>
   <%else%>
   <tr>
      <td width="100%" colspan="5"><marquee>没有您所查找的记录</marquee></td>
    </tr>
<%end if%>
  </table>
  </center>
</div>
<%
rs.close
set rs=nothing
%>
<!--#include file="down.asp"-->
<p> </p>
<p> </p>
</body>

</html>

⌨️ 快捷键说明

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