<!--#include file="conn/conn.asp" -->
<!--#include file="conn/function.asp" -->
<%
action=request.QueryString("action")
keyword=request.Form("keyword")
%>
<!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="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<title>搜索页面 - <%=C_webtitle%></title>
<meta name="keywords" content="">
<meta name="description" content=""><link href="css/common.css" type="text/css" rel="stylesheet" />
<link href="css/news.css" type="text/css" rel="stylesheet" />
<link href="css/sly.css" type="text/css" rel="stylesheet" />
<style type="text/css">
.tidings {
	height: auto;
	min-height: 1000px;  /* sets min-height for IE */
 _height:expression(this.scrollHeight < 1000 ? "1000px" : "auto");
}
/* shortcut */
.site {
	position: fixed;
	top: 0;
	left: 50%;
	margin-left: -330px;
	z-index: 9999;
	width: 661px;
	background: #fff;
}
*html, *html body /* 修正IE6振动bug */ {
	background-image: url(about:blank);
	background-attachment: fixed;
}
*html .site {
	position: absolute;
top:expression(eval(document.documentElement.scrollTop));
}
.back {
	top: 44px;
	right: 50%;
	position: fixed;
	margin-right: -500px;
}
*html .back {
	position: absolute;
top:expression(eval(document.documentElement.scrollTop));
	margin-top: 44px;
}
.tid a.tidUp {
	top: 389px;
	left: 50%;
	position: fixed;
	margin-left: -460px;
}
*html .tid a.tidUp {
	position: absolute;
top:expression(eval(document.documentElement.scrollTop));
	margin-top: 389px;
}
.tid a.tidDown {
	top: 389px;
	right: 50%;
	position: fixed;
	margin-right: -460px;
}
*html .tid a.tidDown {
	position: absolute;
top:expression(eval(document.documentElement.scrollTop));
	margin-top: 389px;
}
.nn {
	width: 100%;
	display: inline-block;
	padding-top: 85px;
}
.nn h2 {
	width: 100%;
	display: inline-block;
}
.nn h2 font {
	float: left;
	width: 100%;
	font: bold 22px/36px "微软雅黑";
	color: #000;
	text-align: center;
}
.nn h2 span {
	float: left;
	width: 100%;
	font: 400 14px/26px "微软雅黑";
	color: #999;
	text-align: center;
}
.story_p, .slyW {
	float: left;
	width: 100%;
	font: normal 14px/28px "微软雅黑";
	color: #333;
	overflow:hidden;
}

.navs{
	position: fixed;
	top:106px;
	left:50%;
	margin-left:-502px;
	z-index:9999;
}
	
*html .tid a.tidDown {
	position: absolute;
top:expression(eval(document.documentElement.scrollTop));
	margin-top: 106px;
}
</style>
</head>
<body>
	<div class="tidings">
    	<div class="tid">
            <div class="TidContent">
            	<div class="site">
                    <form action="search.asp?action=search" method="post">
<input type="text" name="keyword" value="<%=keyword%>" style="height:20px;width:560px;background-color:#ffffff; padding-top:3px;"> <input type="submit" value="搜索" style="width:80px;height:30px; border:hidden; font-family:'微软雅黑'; font-size:15px;">
</form>
                </div><!--site-->
                   <div style="width:100%; display:inline-block;" class="nn">  
                                	
<%
if action="search" and  keyword<>"" then

Set rs= Server.CreateObject("ADODB.RecordSet")
sql="select * from SL_text where (T_title like '%"&keyword&"%' or T_content like '%"&keyword&"%' ) order by T_id desc"
rs.open sql,conn,1,1
if not rs.eof then
Do while Not rs.eof
if C_html=1 then
response.Write "<div style='padding:10px;'><table width='100%'><tr><td colspan='2'><a href='"&C_dir&"html/"&C_template&"/text_"&rs("T_id")&".html'><font size='+1' color='#0066ff'><u>"&replace(rs("T_title"),keyword,"<font color='red'>"&keyword&"</font>")&"</u></font></a></td></tr><tr><td width='20%' align='center' valign='middle'><img src='"&rs("T_pic")&"' width='100' style='padding:5px;border:#CCCCCC solid 1px;'></td><td width='80%'>"&replace(left(LoseHtml(rs("T_content")),100),keyword,"<font color='red'>"&keyword&"</font>")&"...<br><font color='#006600'>"&request.servervariables("HTTP_HOST")&C_dir&"html/text_"&rs("T_id")&".html</font><br> <font color='#777777'>位置：<a href='"&C_dir&"index.asp'>"&C_webtitle&"</a> - <a href='"&C_dir&"html/"&C_template&"/text_"&rs("T_id")&".html'>"&rs("T_title")&"</a></font></td></tr></table></div>"
else
response.Write "<div style='padding:10px;'><table width='100%'><tr><td colspan='2'><a href='index.asp?type=text&S_id="&rs("T_id")&"'><font size='+1' color='#0066ff'><u>"&replace(rs("T_title"),keyword,"<font color='red'>"&keyword&"</font>")&"</u></font></a></td></tr><tr><td width='20%' align='center' valign='middle'><img src='"&rs("T_pic")&"' width='100' style='padding:5px;border:#CCCCCC solid 1px;'></td><td width='80%'>"&replace(left(LoseHtml(rs("T_content")),100),keyword,"<font color='red'>"&keyword&"</font>")&"...<br><font color='#006600'>"&request.servervariables("HTTP_HOST")&C_dir&"index.asp?type=text&S_id="&rs("T_id")&"</font><br> <font color='#777777'>位置：<a href='"&C_dir&"index.asp'>"&C_webtitle&"</a> - <a href='index.asp?type=text&S_id="&rs("T_id")&"'>"&rs("T_title")&"</a></font></td></tr></table></a></div>"
end if
rs.movenext
		loop
	end if
rs.close
set rs=nothing


Set rs= Server.CreateObject("ADODB.RecordSet")
sql="select * from SL_news,SL_nsort where (N_title like '%"&keyword&"%' or N_content like '%"&keyword&"%' ) and N_sort=S_id order by N_id desc"
rs.open sql,conn,1,1
if not rs.eof then
Do while Not rs.eof
if C_html=1 then
response.Write "<div style='padding:10px;'><table width='100%'><tr><td colspan='2'><a href='"&C_dir&"html/"&C_template&"/newsinfo_"&rs("N_id")&".html'><font size='+1' color='#0066ff'><u>"&replace(rs("N_title"),keyword,"<font color='red'>"&keyword&"</font>")&"</u></font></a></td></tr><tr><td width='20%' align='center' valign='middle'><img src='"&rs("N_pic")&"' width='100' style='padding:5px;border:#CCCCCC solid 1px;'></td><td width='80%'>"&replace(left(LoseHtml(rs("N_content")),100),keyword,"<font color='red'>"&keyword&"</font>")&"...<br><font color='#006600'>"&request.servervariables("HTTP_HOST")&C_dir&"html/newsinfo_"&rs("N_id")&".html</font><br> <font color='#777777'>位置：<a href='"&C_dir&"index.asp'>"&C_webtitle&"</a> - <a href='"&C_dir&"html/"&C_template&"/news_"&rs("S_id")&".html'>"&rs("S_title")&"</a> - <a href='"&C_dir&"html/"&C_template&"/newsinfo_"&rs("N_id")&".html'>"&rs("N_title")&"</a></font></td></tr></table></div>"
else
response.Write "<div style='padding:10px;'><table width='100%'><tr><td colspan='2'><a href='index.asp?type=newsinfo&S_id="&rs("N_id")&"'><font size='+1' color='#0066ff'><u>"&replace(rs("N_title"),keyword,"<font color='red'>"&keyword&"</font>")&"</u></font></a></td></tr><tr><td width='20%' align='center' valign='middle'><img src='"&rs("N_pic")&"' width='100' style='padding:5px;border:#CCCCCC solid 1px;'></td><td width='80%'>"&replace(left(LoseHtml(rs("N_content")),100),keyword,"<font color='red'>"&keyword&"</font>")&"...<br><font color='#006600'>"&request.servervariables("HTTP_HOST")&C_dir&"index.asp?type=newsinfo&S_id="&rs("N_id")&"</font><br> <font color='#777777'>位置：<a href='"&C_dir&"index.asp'>"&C_webtitle&"</a> - <a href='index.asp?type=news&S_id="&rs("S_id")&"'>"&rs("S_title")&"</a> - <a href='index.asp?type=newsinfo&S_id="&rs("N_id")&"'>"&rs("N_title")&"</a></font></td></tr></table></a></div>"
end if
rs.movenext
		loop
	end if
rs.close
set rs=nothing

Set rs= Server.CreateObject("ADODB.RecordSet")
sql="select * from SL_product,SL_psort where (P_title like '%"&keyword&"%' or P_content like '%"&keyword&"%' ) and P_sort=S_id order by P_id desc"
rs.open sql,conn,1,1
if not rs.eof then
Do while Not rs.eof
if C_html=1 then
response.Write "<div style='padding:10px;'><table width='100%'><tr><td colspan='2'><a href='"&C_dir&"html/"&C_template&"/productinfo_"&rs("P_id")&".html'><font size='+1' color='#0066ff'><u>"&replace(rs("P_title"),keyword,"<font color='red'>"&keyword&"</font>")&"</u></font></a></td></tr><tr><td width='20%' align='center' valign='middle'><img src='"&rs("P_path")&"' width='100' style='padding:5px;border:#CCCCCC solid 1px;'></td><td width='80%'>"&replace(left(LoseHtml(rs("P_content")),100),keyword,"<font color='red'>"&keyword&"</font>")&"...<br><font color='#006600'>"&request.servervariables("HTTP_HOST")&C_dir&"html/productsinfo_"&rs("P_id")&".html</font><br> <font color='#777777'>位置：<a href='"&C_dir&"index.asp'>"&C_webtitle&"</a> - <a href='"&C_dir&"html/"&C_template&"/product_"&rs("S_id")&".html'>"&rs("S_title")&"</a> - <a href='"&C_dir&"html/"&C_template&"/productinfo_"&rs("P_id")&".html'>"&rs("P_title")&"</a></font></td></tr></table></div>"
else
response.Write "<div style='padding:10px;'><table width='100%'><tr><td colspan='2'><a href='index.asp?type=productinfo&S_id="&rs("P_id")&"'><font size='+1' color='#0066ff'><u>"&replace(rs("P_title"),keyword,"<font color='red'>"&keyword&"</font>")&"</u></font></a></td></tr><tr><td width='20%' align='center' valign='middle'><img src='"&rs("P_path")&"' width='100' style='padding:5px;border:#CCCCCC solid 1px;'></td><td width='80%'>"&replace(left(LoseHtml(rs("P_content")),100),keyword,"<font color='red'>"&keyword&"</font>")&"...<br><font color='#006600'>"&request.servervariables("HTTP_HOST")&C_dir&"index.asp?type=productinfo&S_id="&rs("P_id")&"</font><br> <font color='#777777'>位置：<a href='"&C_dir&"index.asp'>"&C_webtitle&"</a> - <a href='index.asp?type=news&S_id="&rs("S_id")&"'>"&rs("S_title")&"</a> - <a href='index.asp?type=productinfo&S_id="&rs("P_id")&"'>"&rs("P_title")&"</a></font></td></tr></table></div>"
end if
rs.movenext
		loop
	end if
rs.close
set rs=nothing
end if
%>
                                    </div><!--slyW-->
</div>
            </div><!--TidContent-->
			
        </div>
    </div>
   

</body>
</html>
