<% search_q=nohtml(request.querystring("xycms_keys")) if search_q="" then response.write "" Response.End() end if %> 搜索结果:<%=search_q%>_北仑监控安装,北仑电脑维修,宁波监控安装维修--宁波北仑联讯科技 <% xykeywords=split(search_q," ") c=ubound(xykeywords) for i=0 to c if i=0 then search_sql1=search_sql1&" where ([title] like '%"&xykeywords(i)&"%'" keywords_all=xykeywords(i) else search_sql1=search_sql1&" or [title] like '%"&xykeywords(i)&"%'" keywords_all=keywords_all&"+"&xykeywords(i) end if next s_sql="select * from [article] "&search_sql1&" ) order by [c_date] desc" %>
北仑监控安装,北仑电脑维修,宁波监控安装维修--宁波北仑联讯科技

点新闻

当前位置 > 搜索结果信息列表
<% if search_q<>"" then set rs=server.createobject("adodb.recordset") rs.open(s_sql),conn,1,1 if err.number<>0 then '错误处理 response.write "数据库操作失败:" & err.description err.clear else if not (rs.eof and rs.bof) then '检测记录集是否为空 r=cint(rs.RecordCount) '记录总数 rowcount = 10 '设置每一页的数据记录数,可根据实际自定义 rs.pagesize = rowcount '分页记录集每页显示记录数 maxpagecount=rs.pagecount '分页页数 page=request.querystring("page") if page="" then page=1 end if rs.absolutepage = page rcount1=0 pagestart=page-5 pageend=page+5 if pagestart<1 then pagestart=1 end if if pageend>maxpagecount then pageend=maxpagecount end if rcount=rs.RecordCount %>
您正在搜索"<%=search_q%>",找到相关信息 <%=rcount%>
<% do while not rs.eof and rowcount select case rs("ArticleType") case 1 Content_FolderName="html/news" case 2 Content_FolderName="html/product" case 3 Content_FolderName="html/case" case 4 Content_FolderName="html/job" case 5 Content_FolderName="html/down" case 6 Content_FolderName="html/photo" end select title1=left(rs("title"),30) for i=0 to c title1=Replace(title1, xykeywords(i), "" & xykeywords(i)& "") next content1=left(nohtml(rs("content")),110) for i=0 to c content1=Replace(content1,xykeywords(i), "" & xykeywords(i)& "") next %>
<%=title1%>
<%=content1%>...
<%="http://www.nblianxun.com/"&Content_FolderName&"/"&rs("file_path")%>(DATE:<%=year(rs("c_date"))%>-<%=month(rs("c_date"))%>-<%=day(rs("c_date"))%>)
<% rowcount=rowcount-1 rs.movenext loop '===========循环体结束%>
<%'===========显示分页的过程调用,要放在数据库打开后、释放资源前 call listPages() rs.close '释放资源 set rs=nothing%> <%'==========分页过程开始,也可单独创建一文件在本文件前包含调用 sub listPages() '定义过程开始%> <% n=cint(request.querystring("page")) if n=0 then n=1 end if response.write "当前页数:"&n&"/"&maxpagecount&" 首页 " if n>=2 then response.write"上一页 " end if for i=pagestart to pageend if i=0 then i=1 end if if n=i then classi="class='black_link'" else classi="" end if strurl=""&i&"" response.write strurl response.write " " next if n<>pageend then n=n+1 end if response.write"下一页" %> <%end sub '定义过程结束 '==========分页过程结束%>
<% else response.write "
很抱歉,没有找到与 "&search_q&" 相关的信息!

提示:用空格隔开多个搜寻关键词可获取更理想结果!

" end if end if end if%>