<!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.download.css?v={$version_sn}" />
</head>
<body>
<!--#include file="include.header.html"-->
<!--#include file="include.aside.html"-->
<div id="mbody">
    <div class="ow-breadcrumb">{$breadcrumb}</div>
    <div class="ow-page-header">
        <h1 class="title">{%=OW.DB.getFieldValueBySQL("SELECT [name] FROM ow_category WHERE cate_id={$cate:root_id} AND "& OW.DB.auxSQL &"")%}</h1>
        <p class="subtitle">{%=OW.DB.getFieldValueBySQL("SELECT [subname] FROM ow_category WHERE cate_id={$cate:root_id} AND "& OW.DB.auxSQL &"")%}</p>
    </div>
    <div class="ow-content-container">
        <h1 class="title">{$content:title}</h1>
        <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="pager">{$content:pages}</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="views">阅读<span>{$content:views}</span></div>
        <div class="prev-next"><div class="prev">上一篇：{$content:prev}</div><div class="next">下一篇：{$content:next}</div></div>
        <div class="ow-related-content after">
            <div class="hd">相关内容</div>
            {content top="100" related_cid="{$content:cid}" model="news"}
            <ul>
                {content:loop}
                <li><a href="[content:link]" title="[content:title]" target="_blank">[content:title]</a></li>
                {/content:loop}
            </ul>
            {/content}
        </div>
        {if:OW.int("{$config(is_comment_open)}")=1}<div id="OWCMT"></div>{/if}
    </div>
    <div class="clear"></div>
    <div class="ow-hot-read">
        <div class="hd">热门阅读</div>
        <div class="section">
            {content top="12" cate_id="{$content: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>
<!--#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});
	};
	//****
});
</script>
</body>
</html>
