📄 search1.asp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- #include file =conn1.asp-->
<HTML><HEAD><TITLE>站内搜索</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content=www.mi222.cn,版权所有 name=Copyright>
<META content=搜索,站内搜索,文章搜索,文章,文章搜索,搜索引擎,米儿,米儿网络,米儿网络搜索,米儿源码,米儿上网导航,米儿网址导航 name=keywords>
<LINK href="images/style.css" type=text/css rel=stylesheet>
<link rel = "Shortcut Icon" href="images/activeol.ico">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
<BODY>
<TABLE cellSpacing=0 cellPadding=0 width=778 align=center border=0>
<TBODY>
<TR>
<TD align=middle height=50> </TD>
</TR>
<TR>
<TD>
<TABLE class=topbar cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle background=images/top_bg1.gif
height=35> </TD>
</TR></TBODY></TABLE></TD></TR>
<TR>
<TD height=8></TD></TR>
<TR>
<form action="search1.asp" method="get" title="站内搜索,文章搜索,文章检索,标题搜索,内容搜索,搜索引擎"><TD align=middle><INPUT name=search id="search" size=50 maxLength=255>
<select name="mi222" id="mi222">
<option value="1" selected>文章标题</option>
<option value="2">文章内容</option>
</select>
<INPUT type=submit value="搜 索" name=sa></TD></form>
</TR>
<TR>
<TD height=8></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=778 align=center border=0>
<TBODY>
<TR>
<TD vAlign=top width=200>
<DIV id=hotnews>
<TABLE height=24 cellSpacing=0 cellPadding=0 width="100%" align=center
border=0>
<TBODY>
<TR>
<TD class="title1 whitelink" vAlign=top><A
href="#">站内热门文章</A></TD></TR>
<TR>
<TD height="240"><iframe name="top" scrolling="no" src="top1.asp?bigclass=0&smaclass=0&num=10" height="100%" width="100%" frameborder="0">热门文章</iframe>
</TD>
</TR>
</TBODY></TABLE>
</DIV></TD>
<TD width=10></TD>
<TD vAlign=top width=565>
<TABLE cellSpacing=1 width=573 border=0>
<TBODY>
<TR bgColor=#ffffff>
<TD class=link2
style="BORDER-BOTTOM: #1b7bce 1px dashed; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif"
width="100%"><strong> 搜 索 结 果</strong></TD>
</TR>
</table>
<TABLE cellSpacing=0 width="100%" border=0>
<TBODY>
<%
mi222=trim(request("mi222"))
search=trim(request("search"))
if search<>"" then
page=clng(request("page"))
Set rs=Server.CreateObject("ADODB.RecordSet")
if mi222="1" then
sql="select * from NEWS where mi222_title like '%"& search &"%' order by id desc"
else
sql="select * from NEWS where mi222_body like '%"& search &"%' order by id desc"
end if
rs.Open sql,conn,1,1
if rs.eof and rs.bof then
%>
<TR>
<TD class=link2
style="BORDER-BOTTOM: #1b7bce 1px dashed; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif"
width="100%">没有相关文章!</TD>
</TR>
<%
else
rs.PageSize=20
if page=0 then page=1
pages=rs.pagecount
if page > pages then page=pages
rs.AbsolutePage=page
for j=1 to rs.PageSize
%>
<TR>
<TD
width="100%" height="26" class=link2
style="BORDER-BOTTOM: #1b7bce 1px dashed; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif"> · <a href="news/news_<%=rs("id")%>.htm" target="_blank" title="<%=rs("mi222_title")%>"><%=rs("mi222_title")%></a> [<%=rs("mi222_time")%>]</TD>
</TR>
<%
rs.movenext
if rs.eof then exit for
next
%>
<TABLE cellSpacing=1 width=573 border=0>
<TBODY>
<TR>
<form method=Post action="search.asp?search=<%=search%>&mi222=<%=mi222%>"><TD class=link2 bgColor=#f1f1f1 height=25> <%if Page<2 then
response.write "首页 上一页 "
else
response.write "<a href=newslist.asp?page=1>首页</a> "
response.write "<a href=newslist.asp?page=" & Page-1 & ">上一页</a> "
end if
if rs.pagecount-page<1 then
response.write "下一页 尾页"
else
response.write "<a href=newslist.asp?page=" & (page+1) & ">"
response.write "下一页</a> <a href=newslist.asp?page="&rs.pagecount&">尾页</a>"
end if
response.write " 页次:<strong><font color=red>"&Page&"</font>/"&rs.pagecount&"</strong>页 "
response.write " 共<b><font color='#FF0000'>"&rs.recordcount&"</font></b>条记录 <b>"&rs.pagesize&"</b>条记录/页"
response.write " 转到:<input type='text' name='page' size=4 maxlength=10 class=input value="&page&">"
response.write " <input class=input type='submit' value=' 转到 ' name='cndok'></span></p>"
%></TD>
</form></TR></TBODY></TABLE>
<%
end if
rs.close
set rs=nothing
end if
%>
</TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE style="WORD-BREAK: break-all; WORD-WRAP: break-word" cellSpacing=1 width=573 border=0>
<TBODY>
</TBODY></TABLE>
</TD>
</TR></TBODY></TABLE><BR>
<TABLE cellSpacing=0 cellPadding=0 width=768 align=center border=0>
<TBODY>
<TR>
<TD bgColor=#4798ed colSpan=2 height=3></TD></TR>
<TR>
<TD align=middle background=images/bottombg.gif colSpan=2> </TD>
</TR>
<TR>
<TD style="LINE-HEIGHT: 150%" vAlign=bottom width="100%" height=24> </TD>
</TR></TBODY></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -