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

📄 search_user.asp

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


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

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

set rs=server.createobject("adodb.recordset")
sql="select * from st_info where user_name like '%"&user_name&"%' order by id desc"
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" style="text-align: center" background="../2s/images/bj.jpg">

<div align="center">
  <center>
  <table border="1" width="400" cellspacing="0" cellpadding="5" bordercolorlight="#000000" bordercolordark="#FFFFFF">
    <tr>
      <td width="100%" colspan="5">
        <p align="center">查找‘<font color="#FF00FF"><%=rs("user_name")%></font>’结果</p>
      </td>
    </tr> <tr>
      <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>
      <td width="20%" align="center" bgcolor="#C0C0C0">班级</td>
    </tr><%
if not rs.eof then
%>
<%do while not rs.eof%>
   
    <tr>
      <td width="20%" align="center"><a target="_blank" href="mod_info.asp?id=<%=rs("id")%>">修改</a>|<a href=delete_info.asp?id=<%=rs("id")%>>删除</a></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")%></a></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 + -