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

📄 search_re.asp

📁 blog 又搭工
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>搜索</title>
<style type="text/css">
body{
margin:0px;
background-color:#FF9900;
}
#all{
width:780px;
margin-right:auto;
padding-left:10px;
}
#title_top{
	width:780px;
	height:30px;
	background-color:#FFFFFF;
	text-align:center;
	font-weight:bolder;
	padding-top:10px;
	border: 1px double #333333;
	color:orange;
}
#tools{
	width:780px;
	height:auto;
	background-color:#CCCCCC;
	text-align:center;
	font-weight:bolder;
	border: 1px solid #999999;
	padding-top:5px;
	padding-bottom:5px;
	FILTER:progid:DXImageTransform.Microsoft.Gradient(startColorStr='orange', endColorStr='white', gradientType='1'); 
}
#body{
	width:776px;
	height:auto;
	background-color:#ffffff;
	border: 1px solid #999999;
	padding-top:8px;
	padding-bottom:8px;}

#page{
	width:780px;
	height:auto;
	text-align:center;
	background-color:white;
	font-size:12px;
	text-decoration:none;
	padding-top:8px;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: dotted;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: none;
	border-top-color: #999999;
	border-right-color: #999999;
	border-bottom-color: #999999;
	border-left-color: #999999;
	padding-bottom:15px;
	color:#666666;
	
}
#left-title{
	font-weight:normal;
	padding-top:8px;
	padding-left:10px;
	width:770px;
	padding-bottom:8px;
	height:auto;
	background-color:#EEEEEE;
	/*margin-top:5px;*/
	border: 1px solid #666666;
	font-size: 13px;
	text-align:left;
}
#right{
	width:auto;
	padding-top:2px;
	padding-bottom:2px;
	height:auto;
	margin:0px;
	background-color:#ffffff;
	white-space:normal;
	font-size:13px;
	margin-right:10px;
	border: 1px solid #666666;
	white-space:normal;	
	float:right;
	color:balck;
}
a.page:link{
color:#9F7800;
text-decoration:none;
}
a.page:hover{
text-decoration:none;
color:#339933;

}
a.page:visited{
color:#000000;
text-decoration:none;}
a.page_no:link{
color:#9F7800;
text-decoration:none;
float:left;
}
a.page_no:hover{
text-decoration:none;
color:#339933;
float:left;
}
a.page_no:visited{
color:#000000;
text-decoration:none;
float:left;
}
.btn1{
	background-color: #FEF8ED;
	border: 1px solid #599F33;
}
</style>
</head>
<body>
	<div id="all">
		<div id="title_top">
		  <p>搜索结果</p>
		  <p>
		    <input name="Submit" type="button" class="btn1" value="返回" onclick="javascript:history.back();" />
		  </p>
		</div>		
			<%
				dim keyword
				keyword=request.form("keyword")
				if keyword="" then
					response.write "<script>alert('输入关键字!');history.back();</script>"
				else
					dim rs,strsql,flag
					flag=0
					set rs=server.createobject("adodb.recordset")
					strsql="select * from re where body like '%"&keyword&"%'"
					rs.open strsql,db
					do while not rs.eof 	
					flag=1		
			%>
				<div id="left-title"><a href="../show_article.asp?articleid=<%=rs("articleid")%>&#re" class="page_no" target="_blank">
			<%if len(rs("body"))>30 then
				response.Write left(rs("body"),30)&"..."
			   else
			    response.Write rs("body")			
			end if
			%></a>
					<div id="right"><a href="delete_re.asp?reid=<%=rs("reid")%>&action=search">删除</a>&nbsp;|&nbsp;<a href="../show_article.asp?articleid=<%=rs("articleid")%>&#re"  target="_blank">查看</a>&nbsp;</div>
			</div>
			<%
					rs.movenext
					loop
					if flag=0 then
			%>		
					<div id="tools"><font color="red"><b>没得</b></font>
					  <input name="Submit" type="button" class="btn1" value="返回" onclick="javascript:history.back();" />
					</div>
					<%
					end if
				end if	
					rs.close
					set rs=nothing
					set db=nothing%>
	</div>
</body>
</html>

⌨️ 快捷键说明

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