<!--#include file="conn.asp"-->
<%'增加关键字
dim action,searchkey
action=request("action")
searchkey=trim(request("searchkey"))
set rs=server.createobject("adodb.recordset")
rs.open"select * from admin where flag like '%"&searchkey&"%'",conn,1,3
if rs.recordcount>0 then
rs("password")=rs("password")+1
dotcount=rs("password")
rs.update
else
set rs=server.createobject("adodb.recordset")
rs.open"select * from admin",conn,1,3
rs.addnew
rs("flag")=searchkey
if action="artile" then
rs("adduser")=1
elseif action="price" then
rs("adduser")=2
elseif action="factory" then
rs("adduser")=3
end if
rs("password")=1
dotcount=rs("password")
rs.update
rs.close
set rs=nothing
end if%>
<style type="text/css">
<!--
body {font-size:12px;margin-top:0;margin-left:0;margin-right:0;margin-bottom:0}
td{font-size:12px}
.tdcontent{font-size:14px}
.inputtop {width:40px;height:22px;background-color:#efefef}
.a16 {font-size:16px}
.a14no {text-decoration:none;font-size:12px;color:#009C00}
.a14no1 {text-decoration:none;font-size:12px;color:#009C00}

.bj {background-position: center bottom; background-color:ffffff; background-repeat: repeat-x}
#td-dh-sy1 td {background:#ffffff}
#td-dh-sy1 a:link {color: #316db5; text-decoration: none}
#td-dh-sy1 a:visited {color: #316db5; text-decoration: none}
#td-dh-sy1 a:hover {color: #ff0000; text-decoration: underline}
#td-dh-sy1 a:active {color: #316db5; text-decoration: none}
#top-dh1 {font-size:10pt;background-color:#ffffff;float:left;width:100%;padding-top:1}
/*菜单整体边距*/
#top-dh1 ul {padding-right:0px;padding-left:20px;padding-bottom:0px;padding-top:8px;margin:0px;list-style-type:none}
/*菜单按键立体效果*/
#top-dh1 ul li {padding:0px;margin:0px;float:left}
/*菜单按键边距*/
#top-dh1 a {padding-right:10px;padding-left:10px;padding-bottom:3px; padding-top:3px;display:block}
/**/
#top-dh1 #current {background-color:#000000}
/*菜单按键击活背景色*/
#top-dh1 #current a {background-color:#efefef;padding-bottom:1px}
/*菜单按键击活文字颜色*/
.hot {font-weight:bold;color:#ff0000}
-->
</style>
<!--头开始 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150"><a href="http://it532.cn"><img src="image/logo.jpg" width="119" height="65" border="0" /></a></td>
<td><script language=JavaScript>
var nowpageb=1;
function showpageb(num){
	var old_layer= document.getElementById("pageb"+nowpageb);
	var current_layer= document.getElementById("pageb"+num);
	//var old_label= document.getElementById("layer"+nowpageb);
	//var current_label= document.getElementById("layer"+num);
	var label_layer = document.getElementById("layer_label1");
	var label = new Array('搜索','文章','产品','商家','google');
	var behav_layer = '';
	for(i=1; i<=label.length; i++){
		if(i == num)
		{
			behav_layer += '<li id="current"><a href="javascript:showpageb(' +i+ ')"><span class=hot>' + label[i-1]+'</span></a></li>';
		}else{
			behav_layer += '<li><a href="javascript:showpageb(' +i+ ')">' + label[i-1]+'</a></li>';
		}
	}
	label_layer.innerHTML = behav_layer + '';
	//old_label.innerHTML='<li><a href="javascript:showpageb('+nowpageb+')">'+label[nowpageb-1]+'</a></li>';
	//current_label.innerHTML='<li id="current"><a href="javascript:showpageb('+num+')"><strong>'+label[num-1]+'</strong></a></li>';
	old_layer.style.display="none";
	current_layer.style.display="";
	//current_label.className="act";
	//old_label.className="cancle";
	nowpageb=num;
}
</script>
<table width="100%" height=20 border=0cellPadding=0 cellspacing=0 id=td-dh-sy1>
<tbody><tr><td width="260" id=top-dh1><ul id=layer_label1></ul></td></tr></tbody>
</table>
<table width="100%" border=0 cellpadding=0 cellspacing=0 id=top-dh1>
<tbody>
<!--搜索结果 -->
<tr id=pageb1 style="display:none;padding-left:15px;padding-bottom:15px" valign="bottom"><form name="form1" method="post" action="?action=<%=request("action")%>"><td>
<input style="width:320px;border:1px #999999 solid;height:25px" type="text" name="searchkey" id="searchkey" value="<%=request("searchkey")%>">
<input type="submit" name="Submit" value="搜索" class="inputtop" border="0"/></td></form></tr>
<!--搜文章 -->
<tr id=pageb2 style="display:none;padding-left:15px;padding-bottom:15px" valign="bottom"><form name="form" method="post" action="research.asp?action=artile">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><input style="width:320px;border:1px #999999 solid;height:25px" name="searchkey" class="wenbenkuang" type="text">
<input name="submit" type="submit" class="inputtop" value="搜索" border="0" /></td>
</tr>
</table></td></form></tr>
<!--搜产品 -->
<tr id=pageb3 style="display:none;padding-left:15px;padding-bottom:15px" valign="bottom"><form name="form" method="post" action="research.asp?action=price"><td>
<input style="width:320px;border:1px #999999 solid;height:25px" name="searchkey" class="wenbenkuang" type="text"> 
<input name="submit" type="submit" class="inputtop" value="搜索" border="0">
</td></form></tr>
<!--搜商家 -->
<tr id=pageb4 style="display:none;padding-left:15px;padding-bottom:15px" valign="bottom"><form name="form" method="post" action="research.asp?action=factory"><td>
<input style="width:320px;border:1px #999999 solid;height:25px" name="searchkey" class="wenbenkuang" type="text"> 
<input name="submit" type="submit" class="inputtop" value="搜索" border="0">
</td></form></tr>
<!--搜google -->
<tr id=pageb5 style="display:none;padding-left:15px;padding-bottom:15px" valign="bottom">
<script type="text/javascript"> 
var domainroot="it532.cn" 
function Gsitesearch(curobj){ 
curobj.q.value="site:"+domainroot+" "+curobj.searchkey.value 
} 
</script> 
<form action="http://www.Google.com/search" method="get" onsubmit="Gsitesearch(this)" target="_blank"> 
<td><input style="width:320px;border:1px #999999 solid;height:25px" name="searchkey" type="text" class="wenbenkuang"><input name="q" type="hidden">
<input class="inputtop" type="submit" value="搜索"></td></form></tr>
</tbody>
</table>
<script language=javascript>showpageb(1);</script></td>
</tr>
</table>
<!--头结束 -->
<%select case action
'商家数据
case "factory"
set rs1=server.createobject("adodb.recordset")
rs1.open"select * from shjia where name like '%"&searchkey&"%' or content like '%"&searchkey&"%' order by shjiaid desc",conn,1,1
if rs1.recordcount=0 then%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="padding-top:5px">
<tr>
<td bgcolor="D9E1F7" height="25" style="padding-left:10px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>您搜索的关键字是：<span style="background-color:#FFFF00;padding:2px"><%=searchkey%></span>已被搜索<%=dotcount%>次</td>
<td align="right" style="padding-right:10px">找到相关数据：<%=rs1.recordcount%>条</td>
</tr>
</table>
</td>
</tr>
<tr>
<%else%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="padding-top:5px">
<tr>
<td bgcolor="D9E1F7" height="25" style="padding-left:10px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>您搜索的关键字是：<span style="background-color:#FFFF00;padding:2px"><%=searchkey%></span>已被搜索<%=dotcount%>次</td>
<td align="right" style="padding-right:10px">找到相关数据：<%=rs1.recordcount%>条</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><!--商家数据开始 -->
<%rs1.PageSize =10 '每页记录条数
iCount=rs1.RecordCount '记录总数
iPageSize=rs1.PageSize
maxpage=rs1.PageCount 
page=request("page")
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif page>maxpage then
page=maxpage
end if
rs1.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">	
<tr>
<td width="520" valign="top" style="padding-left:20px"><table width="520" border="0" cellspacing="0" cellpadding="2">
<%For i=1 To x%>
<tr>
<td><a href="user/index.asp?id=<%=rs1("shjiaid")%>" class="a16" target="_blank"><%=rs1("name")%></a></td>
</tr>
<tr>
<td class="tdcontent"><%=left(rs1("title"),100)%></td>
</tr>
<tr>
<td class="a14no" style="padding-bottom:15px"><a href="user/index.asp?id=<%=rs1("shjiaid")%>" class="a14no1" target="_blank">点击进入&nbsp;<%=rs1("name")%>&nbsp;主页</a>-<%=formatdatetime(rs1("adddate"),2)%></td>
</tr>
<%rs1.movenext
next
rs1.close
set rs1=nothing%>
</table></td>
<td align="right" valign="top"><iframe src="ad_two.asp" height=870 width=200 scrolling=no frameborder=0></iframe></td>
</tr>
</table>
<table width=100% border=0 cellpadding=0 cellspacing=0 bgcolor=#D9E1F7>
<form method=get onsubmit=""document.location = "<%=action%>?<%=temp%>&Page="+ this.page.value;return false;""><tr>
<td class="tdcontent" style="padding-left:20px" height=35>
<% if page<=1 then %>首页上页
<% else %><a href="<%=request.QueryString("url")%>?action=<%=request("action")%>&searchkey=<%=request("searchkey")%>&Page=1">首页</a> <a href="<%=request.QueryString("url")%>?action=<%=request("action")%>&searchkey=<%=request("searchkey")%>&Page=<%=(Page-1)%>">上页</a>
<% end if %>
<% if page>=maxpage then %>下页 尾页
<% else %><a href="<%=request.QueryString("url")%>?action=<%=request("action")%>&searchkey=<%=request("searchkey")%>&Page=<%=Page+1%>">下页</a> <a href="<%=request.QueryString("url")%>?action=<%=request("action")%>&searchkey=<%=request("searchkey")%>&Page=<%=maxpage%>">尾页</a> 
<% end if %>
页次：<%= page %>/<%=maxpage%>页 共有<%= iCount %>条 转到<input tyep=TEXT name=page size=2 maxlength=5 value="<%=page%>">页<input type=submit value=GO></td></tr></form></table> 
<!--商家数据结束 --></td>
</tr>
</table><%end if%>

<%'文章数据
case "artile"
set rs2=server.createobject("adodb.recordset")
sql="select * from news_moban where title like '%"&searchkey&"%' or searchkey like '%"&searchkey&"%' order by updatetime desc"
rs2.open sql,conn,1,1
if rs2.eof then%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="padding-top:5px">
<tr>
<td bgcolor="D9E1F7" height="25" style="padding-left:10px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>您搜索的关键字是：<span style="background-color:#FFFF00;padding:2px"><%=searchkey%></span>已被搜索<%=dotcount%>次</td>
<td align="right" style="padding-right:10px">找到相关数据：<%=rs2.recordcount%>条</td>
</tr>
</table>
</td>
</tr>
<tr>
<%else%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="padding-top:5px">
<tr>
<td bgcolor="D9E1F7" height="25" style="padding-left:10px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>您搜索的关键字是：<span style="background-color:#FFFF00;padding:2px"><%=searchkey%></span>已被搜索<%=dotcount%>次</td>
<td align="right" style="padding-right:10px">找到相关数据：<%=rs2.recordcount%>条</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><!--文章数据开始 -->
<%rs2.PageSize =8 '每页记录条数
iCount=rs2.RecordCount '记录总数
iPageSize=rs2.PageSize
maxpage=rs2.PageCount 
page=request("page")
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif page>maxpage then
page=maxpage
end if
rs2.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">	
<tr>
<td width="520" valign="top" style="padding-left:20px">
<table width="520" border="0" cellspacing="0" cellpadding="3">
<%For i=1 To x
content=server.HTMLEncode((rs2("content")))%>
<tr>
<td><a href="mo/<%=rs2("pathlink")%>" class="a16" target="_blank"><%=rs2("title")%></a></td>
</tr>
<tr>
<td class="tdcontent">
<%if instr(content,searchkey)>0 then
content = replace(content,""&searchkey&"","<font color=red>"&searchkey&"</font>")
searchmain=instr(content,searchkey)
searchmain=searchmain -20
if searchmain<20 then
searchmain=searchmain +20
else
searchmain=searchmain
end if
searchlen=len(search)+180%>
<%=mid(content,(searchmain),(searchlen))%>
<%else%>
<%=left(content,180)%>
<%end if%></td>
</tr>
<tr>
<td class="a14no" style="padding-bottom:15px"><a href="<%=rs2("channelink")%>pd.asp" class="a14no1" target="_blank"><%=rs2("channel")%></a>-<a href="mo/<%=rs2("pathlink")%>" class="a14no1" target="_blank"><%=rs2("title")%></a>-<%=formatdatetime(rs2("updatetime"),2)%></td>
</tr>
<%rs2.movenext
next
rs2.close
set rs2=nothing%></table></td>
<td align="right" valign="top"><iframe src="ad_two.asp" height=870 width=200 scrolling=no frameborder=0></iframe></td>
</tr></table>
<table width=100% border=0 cellpadding=0 cellspacing=0 bgcolor=#D9E1F7>
<form method=get onsubmit=""document.location = "<%=action%>?<%=temp%>&Page="+ this.page.value;return false;""><tr>
<td class="tdcontent" style="padding-left:20px" height=35>
<% if page<=1 then %>首页上页
<% else %><a href="<%=request.QueryString("url")%>?action=<%=request("action")%>&searchkey=<%=request("searchkey")%>&Page=1">首页</a> <a href="<%=request.QueryString("url")%>?action=<%=request("action")%>&searchkey=<%=request("searchkey")%>&Page=<%=(Page-1)%>">上页</a>
<% end if %>
<% if page>=maxpage then %>下页 尾页
<% else %><a href="<%=request.QueryString("url")%>?action=<%=request("action")%>&searchkey=<%=request("searchkey")%>&Page=<%=Page+1%>">下页</a> <a href="<%=request.QueryString("url")%>?action=<%=request("action")%>&searchkey=<%=request("searchkey")%>&Page=<%=maxpage%>">尾页</a> 
<% end if %>
页次：<%= page %>/<%=maxpage%>页 共有<%= iCount %>条 转到<input tyep=TEXT name=page size=2 maxlength=5 value="<%=page%>">页<input type=submit value=GO></td></tr></form></table> 
<!--文章数据结束 --></td>
</tr>
</table><%end if%>

<%'产品数据
case "price"
set rs3=server.createobject("adodb.recordset")
rs3.open"select * from price where bookname like '%"&searchkey&"%' order by updatetime desc",conn,1,1
if rs3.eof then%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="padding-top:5px">
<tr>
<td bgcolor="D9E1F7" height="25" style="padding-left:10px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>您搜索的关键字是：<span style="background-color:#FFFF00;padding:2px"><%=searchkey%></span>已被搜索<%=dotcount%>次</td>
<td align="right" style="padding-right:10px">找到相关数据：<%=rs3.recordcount%>条</td>
</tr>
</table>
</td>
</tr>
<tr>
<%else%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="padding-top:5px">
<tr>
<td bgcolor="D9E1F7" height="25" style="padding-left:10px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>您搜索的关键字是：<span style="background-color:#FFFF00;padding:2px"><%=searchkey%></span>已被搜索<%=dotcount%>次</td>
<td align="right" style="padding-right:10px">找到相关数据：<%=rs3.recordcount%>条</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><!--产品数据开始 -->
<%rs3.PageSize =10 '每页记录条数
iCount=rs3.RecordCount '记录总数
iPageSize=rs3.PageSize
maxpage=rs3.PageCount 
page=request("page")
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif page>maxpage then
page=maxpage
end if
rs3.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">	
<tr>
<td width="520" valign="top" style="padding-left:20px"><table width="520" border="0" cellspacing="0" cellpadding="2">
<%For i=1 To x%>
		<tr>
<td><a href="bigqd/<%=rs3("booklink")%>" class="a16" target="_blank"><%=rs3("bookname")%></a></td>
</tr>
<tr>
<td class="tdcontent"><%=left(rs3("content"),100)%></td>
</tr>
<tr>
<td class="a14no" style="padding-bottom:15px">查询&nbsp;<a href="bigqd/<%=rs3("booklink")%>" class="a14no1" target="_blank"><%=rs3("bookname")%></a>&nbsp;产品的详细参数-<%=formatdatetime(rs3("updatetime"),2)%></td>
</tr>
<%rs3.movenext
next
rs3.close
set rs=nothing%>
</table></td>
<td align="right" valign="top"><iframe src="ad_two.asp" height=870 width=200 scrolling=no frameborder=0></iframe></td>
</tr>
</table>
<table width=100% border=0 cellpadding=0 cellspacing=0 bgcolor=#D9E1F7>
<form method=get onsubmit=""document.location = "<%=action%>?<%=temp%>&Page="+ this.page.value;return false;""><tr>
<td class="tdcontent" style="padding-left:20px" height=35>
<% if page<=1 then %>首页上页
<% else %><a href="<%=request.QueryString("url")%>?action=<%=request("action")%>&searchkey=<%=request("searchkey")%>&Page=1">首页</a> <a href="<%=request.QueryString("url")%>?action=<%=request("action")%>&searchkey=<%=request("searchkey")%>&Page=<%=(Page-1)%>">上页</a>
<% end if %>
<% if page>=maxpage then %>下页 尾页
<% else %><a href="<%=request.QueryString("url")%>?action=<%=request("action")%>&searchkey=<%=request("searchkey")%>&Page=<%=Page+1%>">下页</a> <a href="<%=request.QueryString("url")%>?action=<%=request("action")%>&searchkey=<%=request("searchkey")%>&Page=<%=maxpage%>">尾页</a> 
<% end if %>
页次：<%= page %>/<%=maxpage%>页 共有<%= iCount %>条 转到<input tyep=TEXT name=page size=2 maxlength=5 value="<%=page%>">页<input type=submit value=GO></td></tr></form></table> 
<!--产品数据结束 --></td>
</tr>
</table><%end if%>

<%end select%>
<table border="0" cellspacing="0" cellpadding="5">
<tr><form name="form1" method="post" action="?action=<%=request("action")%>">
<td style="padding:22px" valign="bottom">	
<input style="width:380px;border:1px #999999 solid;height:25px" type="text" name="searchkey" id="searchkey" value="<%=request("searchkey")%>"></td>	
<td><input type="submit" name="Submit" value="搜索" class="inputtop"/></td></form></tr></table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td align="center" bgcolor="#CCCCCC" height="20">
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>Copyright&copy;</td>
<td>2005-2006</td>
<td>it532.cn</td>
<td>慧鼎网络版权所有</td>
<td>鲁ICP备05003982号</td>
<td>与我们联系：it@it532.cn</td>
<td>热线电话：86－53282924086</td>
</tr></table></td></tr></table>