<%@ LANGUAGE=VBScript CodePage=65001%>
<% response.charset="utf-8" %>
<% session.codepage=65001 %>
<!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="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- #include file="../LyricInc/AntiAttack.asp" -->
<!-- #include file="../LyricInc/conn.asp" -->
<!-- #include file="../LyricInc/web_config.asp" -->
<!-- #include file="../LyricInc/html_clear.asp" -->
<%
search_q=request.querystring("q")
%>
<title>搜索：<%=search_q%>_佳贝政府网站管理系统 GovPet V1.0</title>
<meta name="keywords" content="$Class_Keywords$" />
<meta name="description" content="$Class_Description$" />
<link href="/css/GovPetLast/inner.css" rel="stylesheet" type="text/css" />
<link href="/css/GovPetLast/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/functions.js"></script>
<script type="text/javascript" src="/images/iepng/iepngfix_tilebg.js"></script>
<script type="text/javascript">
mobileRedirect("/Mobile/SearchPet/");
window.onerror=function(){return true;}
</script>
</head>

<body>
<%
keywords=split(search_q," ")
c=ubound(keywords)
for i=0 to c
if i=0 then
search_sql1=search_sql1&"where  ( [title] like '%"&keywords(i)&"%'"
keywords_all=keywords(i)
else
search_sql1=search_sql1&" or   [title] like '%"&keywords(i)&"%'"
keywords_all=keywords_all&"+"&keywords(i)
end if
next

s_sql="select [title],[content],[file_path],[time] from [article] "&search_sql1&" )  and view_yes=1 order by [time] desc"
%>
<!--head start-->
<div id="head">
<div class="doc">
<div class="hd"> 
		
		<div class="welcome">
		欢迎来到 佳贝政府网站管理系统 GovPet V1.0 网站
</div>

<div class="tem_top_nav">
<ul>
<li class='Li1'><a href="javascript:void(0);" onclick="SetHome(this,'http://localhost');">设为首页</a></li>
<li class='Li2'><a href="javascript:void(0);" onclick="AddFavorite('佳贝政府网站管理系统 GovPet V1.0','http://localhost')">加入收藏</a></li>
<li class='Li3'><a href="/FeedBack/">政务互动</a></li>
</ul>
<div class="clearfix"></div>
</div>
</div>
</div><div class="clearfix"></div>
<!--top start -->
<div class="top">

<div class="TopLogo">
<div class="logo"><a href="/"><img src="/images/up_images/logo.png" alt="佳贝政府网站管理系统 GovPet V1.0"></a></div>

<div class="SearchTop">

</div>




<div class="clearfix"></div>

</div>

</div>
<!--top end-->
<div class="clearfix"></div>
</div>
<!--head end-->
<!--body start-->
<div id="body">
<div class='BodyInner'>
<!--nav start-->
<div id="NavLink">
<div id="NavBG">
<!--Head Menu Start-->
<ul id='sddm'><li  class=''><a href='/'><abbr>网站首页</abbr><span>网站首页</span></a></li> <li class=''><a href='/About/' onmouseover=mopen('m2') onmouseout='mclosetime()'><abbr>关于我们</abbr><span>关于我们</span></a> <div id='m2' onmouseover='mcancelclosetime()' onmouseout='mclosetime()'><a href='/About/Introduction/'>部门简介</a> <a href='/About/Leaders/'>领导致辞</a> <a href='/About/SetUp/'>机构设置</a> <a href='/About/Business/'>职责范围</a> <a href='/About/Members/'>人员编制</a> <a href='/About/ContactUs/'>联系我们</a> </div></li> <li class=''><a href='/News/' onmouseover=mopen('m3') onmouseout='mclosetime()'><abbr>新闻动态</abbr><span>新闻动态</span></a> <div id='m3' onmouseover='mcancelclosetime()' onmouseout='mclosetime()'><a href='/News/News1/'>部门动态</a> <a href='/News/News2/'>时政要闻</a> <a href='/News/News3/'>社会新闻</a> </div></li> <li  class=''><a href='/Inform/'><abbr>通知公告</abbr><span>通知公告</span></a></li> <li class=''><a href='/Infomation/' onmouseover=mopen('m5') onmouseout='mclosetime()'><abbr>信息公开</abbr><span>信息公开</span></a> <div id='m5' onmouseover='mcancelclosetime()' onmouseout='mclosetime()'><a href='/Infomation/120546/'>信息公开目录</a> <a href='/Infomation/704923/'>信息公开制度</a> <a href='/Infomation/405167/'>信息公开指南</a> <a href='/Infomation/504718/'>公开年度报告</a> <a href='/Infomation/726501/'>依申请公开</a> <a href='/Infomation/438215/'>政府公报</a> </div></li> <li  class=''><a href='/Policy/'><abbr>政策发布</abbr><span>政策发布</span></a></li> <li  class=''><a href='/Law/'><abbr>法律法规</abbr><span>法律法规</span></a></li> <li  class=''><a href='/BasicLevel/'><abbr>基层党建</abbr><span>基层党建</span></a></li> <li  class=''><a href='/Convienent/'><abbr>便民服务</abbr><span>便民服务</span></a></li> <li class=''><a href='/FeedBack/' onmouseover=mopen('m10') onmouseout='mclosetime()'><abbr>政务互动</abbr><span>政务互动</span></a> <div id='m10' onmouseover='mcancelclosetime()' onmouseout='mclosetime()'><a href='/FeedBack/Advice/'>意见建议</a> <a href='/FeedBack/Complaint/'>投诉举报</a> <a href='/FeedBack/Consult/'>业务咨询</a> <a href='/FeedBack/MailBox/'>领导信箱</a> </div></li> </ul>
<!--Head Menu End-->
</div>
<div id='NavSearch'>
<div class="SearchBar">
<form method="get" action="/SearchPet/index.asp">
				<input type="text" name="q" id="search-text" size="15" onBlur="if(this.value=='') this.value='检索关键字';" 
onfocus="if(this.value=='检索关键字') this.value='';" value="检索关键字" /><input type="submit" id="search-submit" value=" " />
			</form>
</div></div>
<div class="clearfix"></div>
</div>
<!--nav end-->
<div class='clearfix'></div>
<!--NavInfo start-->
<div id="NavInfo">
<div class='NavInfoLeft'>
今天是: <span id=localtime></span>
<script type="text/javascript" src="/js/Date.js"></script>
</div>
<div class='NavInfoRight'>
<iframe width="480" scrolling="no" height="19" frameborder="0" allowtransparency="true" src="//i.tianqi.com/index.php?c=code&id=1&icon=1&wind=1&num=2&site=12"></iframe>
</div>
<div class='clearfix'></div>
</div>
<!--NavInfo end-->
<div class="HeightTab clearfix"></div>
<!--focus start-->
<div id="FocusBG">

</div>
<!--focus end-->
<div class="HeightTab clearfix"></div>
<!--inner start -->
<div class="inner">
<!--right start-->
<div class="right">

<!--RightBox start-->
<div class="RightBox">
<div class="Position"><span>你的位置：<a href="/">首页</a> > 搜索</span></div>
<div class="HeightTab clearfix"></div>
<!--main start-->
<div class="main">

<!--search content start-->
<div id="search_content" class="clearfix">

<%
if search_q<>"" then 

set rs=server.createobject("adodb.recordset")
rs.open(s_sql),cn,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
'=============分页定义结束%>

<!--position start-->
<div class="searchtip">您正在搜索“<span class="FontRed"><%=search_q%></span>”,找到相关信息 <span class="font_brown"><%=rcount%></span> 条</div>
<!--position end-->
<!--list start-->
<div class="result_list">
<dl>

<%'===========循环体开始
do while not rs.eof and rowcount%>
<%
rs_url=""
rs_url=ArticleContent_FolderName&"/"&rs("file_path")

title1=left(rs("title"),30)
for i=0 to c
title1=Replace(title1, keywords(i), "<span class='FontRed'>" & keywords(i)& "</span>")
next

content1=left(nohtml(rs("content")),110)
for i=0 to c
content1=Replace(content1,keywords(i), "<span class='FontRed'>" & keywords(i)& "</span>")
next
%>
<dt ><a href='<%=rs_url%>' target='_blank' title='<%=rs("title")%>'><%=title1%></a></dt>
<dd><%=content1%>...</dd>
<dd class="font12 arial font_green line"><a href='<%=rs_url%>' target='_blank'><span class="font_green"><%=web_url&rs_url%></span></a><%=year(rs("time"))%>-<%=month(rs("time"))%>-<%=day(rs("time"))%></dd>
<%
rowcount=rowcount-1 
rs.movenext
loop
 '===========循环体结束%>

</dl>
</div>
<!--list end-->

<!--page start-->
<div class="result_page clearfix">
<!--#include file="../LyricInc/page_list.asp"-->
</div>
<!--page end-->

<%
else
response.write "<div class='search_welcome'>很抱歉,没有找到与 <span class='FontRed'>"&search_q&"</span> 相关的信息！</div>"
end if
end if
end if%>
</div>
<!--search content end-->	

</div>
<!--main end-->
<div class='clearfix'></div>
</div>
<!--RightBox end-->


<div class='clearfix'></div>
</div>
<!--right end-->
<div class='clearfix'></div>
</div>
<!--inner end-->
<div class="HeightTab clearfix"></div>
</div>
</div>
<!--body end-->
<div class="HeightTab clearfix"></div>
<!--footer start-->
<div class="foot">
<div class="foot_text">
<p>2019 © Copyright <a href='http://www.GovPet.com' target='_blank'>www.GovPet.com</a> 佳贝政府网站管理系统 GovPet V1.0 版权所有 All Rights Reserved </p>
<p>Powered by <a href="http://www.GovPet.com/" target="_blank">GovPet.com</a> <img src='/images/ga.png' alt='beian'>公网安备 3701000002393888号</p>
<div class="clearfix"></div>
</div>
</div>
<!--footer end -->

<script type="text/javascript" src="/js/PetSideBar.js"></script>

</body>
</html>


