<!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.video.css" />
</head>
<body>
<!--头部-->
<!--#include file="include.header.html"-->
<div class="ow-banner">{ad id="2" type="html"}</div>


<!--主内容区-->
<div id="mbody">
    <div class="ow-video-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("{$content: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="video-content">
            
            <h1 class="title">{$content:title}</h1>
            <div class="byline"><span class="datetime">更新时间：<%=ow.formatdatetime("{$content:update_time}",2)%></span><span class="views">浏览量：{$content:views}</span></div>
            <!--视频-->
            <div class="video-play-section" id="video_section" style="position:relative; z-index:100;">
            {if:OW.isNotNul("{$content:video}")}
            {if:OW.indexOf("{$content:video}",".swf")>0}
            <embed src="{$content:video}" id="video_section" autostart="true" allowFullScreen="true" quality="high" width="1200" height="600" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash"></embed>
            {else}
            <div id="video_player"></div>
            <script type="text/javascript" src="{$site_path}ow-content/thr-plugin/player/ckplayer/offlights.js"></script>
			<script type="text/javascript" src="{$site_path}ow-content/thr-plugin/player/ckplayer/ckplayer.js" charset="utf-8"></script>
            <script type="text/javascript">
            $(document).ready(function(){
                var flashvars={f:'{$content:video}',c:0,b:1,p:1,my_url:encodeURIComponent(window.location.href)};
                var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always'};
                CKobject.embedSWF('{$site_path}ow-content/thr-plugin/player/ckplayer/ckplayer.swf','video_player','ow_video','1200','600',flashvars,params);
            });
            </script>
            {/if}
            {/if}
            </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="prev-next">
                <div class="prev">上一篇：{$content:prev}</div>
                <div class="next">下一篇：{$content:next}</div>
            </div>
        </div>
        <!--相关内容-->
        <div class="ow-related-video">
            <div class="header">相关视频</div>
            {content top="100" related_cid="{$content:cid}" model="video"}
            <ul class="ow-video-list">
                {content:loop}
                <li class="li-[content:i]">
                    <div class="thumb"><a name="video" href="[content:link]" title="[content:title]"><img src="[content:thumbnail]" alt="[content:title]" title="[content:title]"><i class="iconplay"></i></a></div>
                    <h3 class="title"><a name="video" href="[content:link]" title="[content:title]">[content:title]</a></h3>
                    <div class="summary"><%=OW.leftString("[content:summary]",36)%></div>
                </li>
                {/content:loop}
            </ul>
            {/content}
        </div>
        <div class="clear"></div>
        <div id="OWCMT"></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-video-list").find("li").length>0){
		$(".ow-related-video").remove();
	};
	if(!$(".ow-content-related-goods").find("li").length>0){
		$(".ow-content-related-goods").remove();
	};
	//评论
	$("#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>
