<!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.case.css?v={$version_sn}" />
</head>
<body style="background:#fff;">
<!--#include file="include.header.html"-->
<div class="ow-banner">{ad id="2" type="html"}</div>
<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-content-container">
                <h1 class="title">{$content:title}</h1>
                <div class="byline">
                    <span class="datetime"><%=ow.formatdatetime("{$content:post_time}",2)%></span>{if:OW.trim("{$content:from}")<>""}<span class="from">来源：{$content:from}</span>{/if}{if:OW.trim("{$content:author}")<>""}<span class="author">作者：{$content:author}</span>{/if}<span class="views">浏览量：{$content:views}</span>
                </div>
                <div class="ow-editor-content-text">{$content:content}</div>
                <div class="attachment">
                    {if:OW.int("{$content:attachment1}")>0}
                    <div class="attachment-doc">附件1：<a href="{$site_url}ow.attachment.asp?sn=<%=OS.getAttachmentSn("{$content:attachment1}")%>" target="_blank"><%=OS.getAttachmentName("{$content:attachment1}")%></a></div>
                    {/if}
                    {if:OW.int("{$content:attachment2}")>0}
                    <div class="attachment-doc">附件2：<a href="{$site_url}ow.attachment.asp?sn=<%=OS.getAttachmentSn("{$content:attachment2}")%>" target="_blank"><%=OS.getAttachmentName("{$content:attachment2}")%></a></div>
                    {/if}
                    {if:OW.int("{$content:attachment3}")>0}
                    <div class="attachment-doc">附件3：<a href="{$site_url}ow.attachment.asp?sn=<%=OS.getAttachmentSn("{$content:attachment3}")%>" target="_blank"><%=OS.getAttachmentName("{$content:attachment3}")%></a></div>
                    {/if}
                </div>
                <div class="tags">标签：
                    {tags cid="{$content:cid}"}
                        {tags:loop}<a href="[tags:link]" title="[tags:tag]" target="_blank">[tags:tag]</a>{/tags:loop}
                    {/tags}
                </div>
                <div class="pager">{$content:pages}</div>
                <div class="prev-next">
                    <div class="prev">上一篇：{$content:prev}</div>
                    <div class="next">下一篇：{$content:next}</div>
                </div>
                <div id="OWCMT"></div>
                <div class="ow-related-content after">
                    <div class="hd">相关内容</div>
                    {content top="100" related_cid="{$content:cid}"}
                    <ul>
                        {content:loop}
                        <li><a href="[content:link]" title="[content:title]" target="_blank">[content:title]</a></li>
                        {/content:loop}
                    </ul>
                    {/content}
                </div>
            </div>
        </div>
        <div class="ow-page-left-section" id="ow_left_panel">
            <div class="ow-left-container">
                <div class="ow-sider-cates after">
                    <div class="hd">{%=OW.DB.getFieldValueBySQL("SELECT [name] FROM ow_category WHERE cate_id={$cate:root_id}")%}</div>
                    {cate parent_id="{$cate:parent_id}"}
                    <ul>
                        {cate:loop}<li><a href="[cate:link]#cates">[cate:name]<span class="raquo">»</span></a></li>{/cate:loop}
                    </ul>
                    {/cate}
                </div>
                <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 top="12" cate_id="{$cate:cate_id}" orderby="a.views DESC,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="30" 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 class="clear"></div>
    </div>
</div>

<!--底部-->
<!--#include file="include.footer.html"-->
<script type="text/javascript">
$(document).ready(function(){
	//****
	if(!$(".tags").find("a").length>0){$(".tags").remove();};
	if($(".pager").html()==""){$(".pager").remove();};
	if(!$(".ow-related-content").find("li").length>0){
		$(".ow-related-content").remove();
	};
	//评论
	var isCommentOpen = OW.int("{$config(is_comment_open)}");
	if(isCommentOpen==1){
		$("#OWCMT").html('<div id="owcmt_post_section"></div><div class="ow-owcmt-list-header"><span class="cmt-count"><b id="owcmt_count_section">0</b>条评论</span>最新评论</div><div id="owcmt_list_section"></div><div class="pager" id="owcmt_pager_section"></div>');
		OW.cmt.postSection  = $("#owcmt_post_section");
		OW.cmt.countSection = $("#owcmt_count_section");
		OW.cmt.listSection  = $("#owcmt_list_section");
		OW.cmt.pagerSection = $("#owcmt_pager_section");
		OW.cmt.pagesize = 20;
		OW.cmt.init({cid:{$content:cid},gid:0});
		OW.cmt.get({cid:{$content:cid},gid:0,page:0});
	};
	//****
	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>

