<!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="2008-2020 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"-->
<div class="ow-banner">{ad id="2" type="html"}</div>


<!--主内容区-->
<div id="mbody">
    <div class="ow-download-cates" id="cates">
        <div class="wrapper">
            {cate parent_id="{$content:root_id}"}
            <ul>
                <li class="n1"><a class="n1" href="{$site_hurl}<%=OW.DB.getFieldValueBySQL("SELECT [rootpath] FROM ow_content1 WHERE cid={$content:cid}")%>/">全部</a></li>
                {cate:loop}<li class="n1 {if:OW.trim("{$page:cate_id}")=OW.trim("[cate:cate_id]")}current{/if}">
                <a class="n1" href="[cate:link]#cates">[cate:name]{if:OW.int("[cate:children]")>0}<span class="caret"></span>{/if}</a>
                    {if:OW.int("[cate:children]")>0}
                        <div class="subcates">
                            {cate2 parent_id="[cate:cate_id]"}
                            <ul>
                            {cate2:loop}
                            <li class="sub"><a class="sub" href="[cate2:link]">[cate2:name]</a></li>
                            {/cate2:loop}
                            </ul>
                            {/cate2}
                        </div>
                    {/if}
                </li>{/cate:loop}
            </ul>
            {/cate}
        </div>
    </div>
    <div class="clear"></div>
    <div class="wrapper">
        <div class="ow-breadcrumb">{$breadcrumb}</div>
        <!--内容详细-->
        <div class="download-content">
            <h1 class="title">{$content:title}</h1>
            <div class="byline">
                <span class="datetime">更新时间：{$content:post_time}</span><span class="views">浏览量：{$content:views}</span>
            </div>
            <div class="downloader">
                <a class="btn btn-primary btn-download mr5" href="{$site_url}ow.attachment.asp?sn=<%=OS.getAttachmentSn("{$content:attachment}")%>" target="_blank">点击下载</a>
            </div>
            <div class="content ow-editor-content-text">
                {$content:content}
            </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="ow-content-related-goods">
                {goods top="30" related_cid="{$content:cid}"}
                <ul>
                    {goods:loop}
                    <li class="li[goods:i]" gid="[goods:gid]" is_book="[goods:is_book]">
                        <div class="thumb" name="thumbnail"><a href="[goods:link]" target="_blank"><img name="thumbnail" src="[goods:thumbnail]" alt="[goods:title]" title="[content:title]"></a></div>
                        <div class="info">
                            <h3 class="title"><a href="[goods:link]" target="_blank">[goods:title]</a></h3>
                            {if:OW.isNotNul("[goods:subtitle]")}<div class="subtitle">[goods:subtitle]</div>{/if}
                            <div class="price">{if:OW.int("[goods:point_set]")=1}<span class="point"><b>[goods:point_pay_amount]</b><em>积分</em><i>+</i></span>{/if}<span class="money"><em>{$moneysb}</em><b><%=OW.parsePrice("[goods:price]")%></b></span></div>
                            <div class="buy"><a href="[goods:link]" target="_blank">立即购买</a></div>
                        </div>
                    </li>
                    {/goods:loop}
                </ul>
                {/goods}
            </div>
            <div class="ow-related-content">
                <div class="header">相关内容</div>
                {content top="100" related_cid="{$content:cid}" model="download"}
                <ul>
                    {content:loop}
                    <li><a href="[content:link]">[content:title]</a></li>
                    {/content:loop}
                </ul>
                {/content}
            </div>
            <div class="prev-next">
                <div class="prev">上一篇：{$content:prev}</div>
                <div class="next">下一篇：{$content:next}</div>
            </div>
            {if:OW.int("{$config(is_comment_open)}")=1}<div id="OWCMT"></div>{/if}
        </div>
</div>
</div>

<!--底部-->
<!--#include file="include.footer.html"-->
<script type="text/javascript" src="../js/cloudzoom.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#cates li.n1").hover(
		function(){
			$(this).find(".subcates").show();
		},
		function(){
			$(this).find(".subcates").hide();
		}
	);
	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();
	};
	if(!$(".ow-content-related-goods").find("li").length>0){
		$(".ow-content-related-goods").remove();
	};
	//评论
	{if:OW.int("{$config(is_comment_open)}")=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});
	{/if}
});
</script>
</body>
</html>
