<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{$title}</title>
<meta name="keywords" content="{$keywords}" />
<meta name="description" content="{$description}" />
<meta name="generator" content="OpenWBS {$version}" />
<meta name="author" content="OpenWBS Team" />
<meta name="copyright" content="2012-2032 OpenWBS Inc." />
<!--#include file="include.css.html"-->
<link rel="stylesheet" href="../css/ow.search.css?v={$version_sn}" />
<link rel="stylesheet" href="../css/ow.artice.css?v={$version_sn}" />
</head>
<body>
<!--#include file="include.header.html"-->
<div id="mbody" class="mbody-content">
    <div class="wrapper">
        <div class="ow-breadcrumb"><div class="wrapper">{$breadcrumb}</div></div>
        <div class="ow-page-right-section" id="ow_right_panel">
            <div class="ow-right-container">
                <h1 class="hd">{$search:keyword} 相关搜索结果</h1>
                <div class="ow-artice-list" id="search_result">
                    {content top="20000" keyword="{$search:keyword}"}
                    <ul class="after">
                        {content:loop}
                        <li class="li[content:i]">
                            <h3 class="title"><a href="[content:link]">[content:title]</a></h3>
                            <div class="entry"><span class="datetime"><%=OW.formatDateTime("[content:post_time]",2)%></span><span class="tags">{tags cid="[content:cid]"}{tags:loop}<a href="[tags:link]" target="_blank">[tags:tag]</a>{/tags:loop}{/tags}</span></div>
                            <div class="summary">[content:summary]<span class="raquo"><a href="[content:link]" target="_blank">»</a></span></div>
                        </li>
                        {/content:loop}
                    </ul>
                    <div class="pager">
                        [content:pages pagesize="20"]
                    </div>
                    {/content}
                </div>
            </div>
        </div>
        <div class="ow-page-left-section" id="ow_left_panel">
            <div class="ow-left-container">
                <div class="ow-sider-hero">{%=OW.echoAdImg("5","<a href=""{$link}"" target=""_blank""><img src=""{$url}"" alt=""{$name}"" title=""{$name}"" /></a>")%}</div>
                <div class="ow-sider-content-list after">
                    <div class="hd">相关阅读</div>
                    <div class="section">
                        {content sql="SELECT top 10 * FROM [db_content] a WHERE a.title like '%<%=OW.left(OW.validClientDBData(V("keyword"),0),2)%>%' or a.title like '%<%=OW.right(OW.left(OW.validClientDBData(V("keyword"),0),4),2)%>%' ORDER BY a.cid DESC"}
                        <ul>
                        {content:loop}
                            <li class="li-[content:i]"><em>[content:i]</em><a href="[content:link]" title="[content:title]" target="_blank">[content:title]</a></li>
                        {/content:loop}
                        </ul>
                        {/content}
                    </div>
                </div>
                <div class="ow-sider-tags after">
                    <div class="hd">分类阅读</div>
                    <div class="section" id="tags">
                        {tags top="100" is_shop="0"}
                        {tags:loop}<a href="[tags:link]" hits="[tags:hits]" target="_blank">[tags:tag]</a>{/tags:loop}
                        {/tags}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--底部{-->
<!--#include file="include.footer.html"-->
<!--}-->
<script type="text/javascript">
$(window).ready(function(){
	var keyword = "{$search:keyword}";
	if(!OW.isNull(keyword)){
		$("#search_result h3 a,#search_result .summary").each(function(){
			var text = $(this).html();
			if(text.indexOf(keyword)>-1){
				text = OW.reps(text,keyword,'<font class="keywords">'+keyword+'</font>');
			};
			$(this).html(text);
		});
	};
	var heightFix = function(){
		var $leftPanel = $("#ow_left_panel"),
		$rightPanel    = $("#ow_right_panel");
		if(OW.int($leftPanel.height())<OW.int($rightPanel.height())){
			$leftPanel.height($rightPanel.height());
		}else{
			$rightPanel.height($leftPanel.height());
		};
	};
	OW.delay(600,function(){heightFix();});
});
</script>
</body>
</html>
