📄 search.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="./admin/inc/const.asp"-->
<!--#include file="./admin/inc/char.asp"-->
<%Akeyword=trim(request("keyword"))
Adatesearch=request("datesearch")
Aareasearch=request("areasearch")
%><html>
<head>
<title>Google排名 Baidu排名 排名研究 网络营销</title>
<meta name="keywords" content="就爱Google为您提供Google排名 Baidu排名 排名研究 网络营销 营销知识 营销服务">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><link href=./css/main.css rel=stylesheet>
<body BGCOLOR="#FFFFFF" leftmargin="0" topmargin="0"><div align=center>
<font color=#ff6600> <script language=JavaScript src="./js/school_head.js"></script>
</font> <!--#include file="head.htm" -->
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<table width="750" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" bgcolor="f6f6f6">
<table width="550" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="548" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="105"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="548" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="3"><img src="images/witer.GIF" width="1" height="1"></td>
</tr>
</table>
<table width="548" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="3" background="images/dot_line.gif"><img src="images/dot_line.gif" width="3" height="3"></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="3"><img src="images/witer.GIF" width="1" height="1"></td>
</tr>
</table>
<%if request("keyword")="" then%>
<script language=javascript>
alert( "错误:请输入关键字!" );
location.href = "javascript:history.back()"
</script>
<%else%>
<br>
<table width="530" border="0" cellspacing="1" cellpadding="3" align="CENTER" bgcolor="#666666">
<tr>
<td width="29" bgcolor="#CCCCCC">
<div align="CENTER"><img src="images/ico.gif" alt="92google" width="11" height="12"></div>
</td>
<td bgcolor="#666666" width="468"><b> </b><font color="#FFFFFF">您搜索的关键字: <%=request("keyword")%></font></td>
</tr>
</table>
<table border="0" width="95%" align="CENTER">
<tr>
<td height="20">当前位置:信息搜索结果</td>
</tr>
</table>
<table width="530" border="0" cellpadding="5" cellspacing="1" align="CENTER" bgcolor="999999">
<tr>
<td colspan="3" valign="top" bgcolor="#e1e1e1" class=c>
<ul>
<%
keyword=trim(request("keyword"))
dim searchday
if request("DateSearch")="all" then
searchDay=""
else
searchDay=" DATEDIFF('d',addtime,Now()) < "&request("DateSearch")&" and "
end if
dim pagecount,page,Spage,Epage,recordcount,i
page = request.querystring("page")
if page = "" or IsNull(page) then page = 1
if not IsNumeric(page) then page = 1
page = Cint(page)
set rs = server.CreateObject ("Adodb.recordset")
if request("AreaSearch")=1 then
sql="select * from article where "& searchday &" (" & translate(keyword,"title") & ") order by id desc"
elseif request("AreaSearch")=2 then
sql="select * from article where "& searchday &" (" & translate(keyword,"content") & ") order by id desc"
end if
rs.open sql,conn,1,1
recordcount = RS.RecordCount
RS.PageSize = PAGESIZE
pagecount = RS.PageCount
if page < 1 then
page = 1
elseif page > pagecount then
page = pagecount
end if
if RS.EOF then
Response.Write("<center><br><font color=red>没有搜索到任何结果!</font><br><br>")
else
if recordcount > 0 then RS.AbsolutePage = page
for i = 1 to PAGESIZE
if RS.EOF then exit for
%>
<li><a href=./<%=rs("fpath")%>/<%=rs("fname")%> target=_blank><%=HTMLencode(rs("title"))%></a><br>
<%
RS.MoveNext()
next
end if
%>
</ul>
<%
if pagecount > 0 then
response.write("<table width=""95%"" align=center cellspacing=3 cellpadding=3><tr><td align=right>")
response.write("页次:<font color=red><b>" & page & "</font>/" & pagecount & "</b> 每页<b>" & pagesize & "</b> 共<b>" & recordcount & "</b>篇文章 分页:")
Spage = page mod PARTSIZE
if page > PARTSIZE then
if Spage = 0 then Spage = PARTSIZE
Spage = page - Spage + 1
else
Spage = 1
end if
Epage = Spage + PARTSIZE - 1
if Epage > pagecount then Epage = pagecount
if page > PARTSIZE then
response.write("<a href=""search.asp?keyword=" &Akeyword& "&datesearch=" &Adatesearch& "&areasearch=" &Aareasearch& "&page=" & Spage - 1 & """>[<<]</a>")
end if
for i = Spage to Epage
if i = page then
response.write("[<font color=red><b>" & i & "</b></font>]")
else
response.write("[<a href=""search.asp?keyword=" &Akeyword& "&datesearch=" &Adatesearch& "&areasearch=" &Aareasearch& "&page=" & i & """>" & i & "</a>]")
end if
next
if Epage < pagecount then
response.write("<a href=""search.asp?keyword=" &Akeyword& "&datesearch=" &Adatesearch& "&areasearch=" &Aareasearch& "&page=" & Epage + 1 & """>[>>]</a>")
end if
if Spage <> 1 then response.write("[<a href=""search.asp?keyword=" &Akeyword& "&datesearch=" &Adatesearch& "&areasearch=" &Aareasearch& "&page=1"">首页</a>]")
if Epage <> pagecount then response.write("[<a href=""search.asp?keyword=" &Akeyword& "&datesearch=" &Adatesearch& "&areasearch=" &Aareasearch& "&page=" & pagecount & """>尾页</a>]")
response.write("</td></tr></table><br>")
end if
rs.close
set rs=nothing
%>
<%end if%>
</td>
</tr>
</table>
<table width="500" border="0" cellspacing="0" cellpadding="0" align="CENTER">
<tr>
<td> </td>
</tr>
</table>
<br>
<div align="CENTER"><strong>92google.com</strong></div>
<div align="CENTER"></div>
</td>
<td width="200" valign="top" bgcolor="#f6f6f6">
<table width="198" border="0" cellspacing="1" cellpadding="0" height="100%" bgcolor="#999999">
<tr>
<td bgcolor="#CCCCCC" valign="TOP" height="110">
<table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="#666666">
<tr>
<td width="21">
<div align="CENTER"><img src="images/ico.gif" width="11" height="12"></div>
</td>
<td width="157"><font color="#FFFFFF">文章搜索</font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<form action="search.asp" method="post">
<td>
<div align="RIGHT">
<div align="CENTER">
<input type=text size=12 name="keyword">
<input type=submit value="搜索" name="submit">
<input type=hidden name=datesearch value=all>
<input type="hidden" name="AreaSearch" value=1>
</div>
</div>
</td>
</form>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" align="center" height="50" width="190">
<tr>
<td height="55"><img src="images/ad/sms1.gif" width="190" height="50" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#CCCCCC" valign="TOP" height="195">
<table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="#666666">
<tr>
<td width="21">
<div align="CENTER"><img src="images/ico.gif" width="11" height="12"></div>
</td>
<td width="157"><font color="#FFFFFF">精彩专题</font></td>
</tr>
</table>
<table width="198" border="0" cellspacing="0" cellpadding="5" height="185">
<tr>
<td>
<script language=JavaScript src="./js/topic.js"></script>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="2"><img src="images/witer.GIF" width="1" height="1"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<font color=#ff6600> </font>
<script language=JavaScript src="./js/school_end.js"></script> </div>
<!--#include file="down.htm" -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -