<!--{template 'default/head'}-->
<script type="text/javascript" src="{W_P}images/js/swfobject.js"></script>
<script type="text/javascript">
domReady(function(){
	if($('comment_box') != null){
		AJAX.request(config.url + 'index.php?ac=comment&channelid={$channelid}&id={$id}',{method:'get',onComplete:function(resp){
			$('comment_box').innerHTML = resp;
			evalscript(resp);
		}});
	};
});
</script>
<style type="text/css"> 
p.actor{padding-left:12px;width:120px;overflow:hidden}
p.actor a{margin-right:0.5em;display:inline-block}
img.thumb{margin-top:6px;padding:3px;background-color:#dedede}
.player_no .tips{width:420px;margin:60px auto 0 auto;padding:50px 10px;text-align:center;color:#fff;font-size:14px;}
.player_no .tips span{margin:0 auto;width:128px;height:128px;display:block;background:url({W_P}/templates/default/img/waring.png) no-repeat 0 0;_background-image:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='{W_P}/templates/default/img/waring.png', sizingMethod='scale');}
</style>
<div class="main cbody margintop">
	<div class="pleft">
		<div class="thisplace">
			<div class="placenav">
				<span>当前位置 :</span>
				<a href="{W_P}">网站首页</a> &gt; <a href="<!--{echo toPath($channelid);}-->">{$channelname}</a>
				<!--{eval $_obj = menuPath();}-->
				<!--{loop $_obj $val}-->
					&gt; <a href="{$val['url']}">{$val['name']}</a> 
				<!--{/loop}-->
				&nbsp;{$channeltitle}
			</div>
		</div>
		<h3 class="b"><span id="player_title">{$_output['subject']}</span></h3>
		<!--{if $_output['paid'] == 1}-->
		<div class="newsview">
			<div class='pay-error' id="pay-info"><p>提示信息：数据加载中，请等待...</p></div>
		</div>
		<script type="text/javascript">
		domReady(function(){
			var url = config.url + 'index.php?mod={$channelid}&ac=show&id={$id}';
			var param = '{$_output['pay_param']}';
			Ajax.get(config.url + 'index.php?ac=pay&param='+param, function(resp){
				var json = evaljson(resp);
				if(json['status'] == 200){
					$('pay-info').innerHTML = '<p>提示信息：'+( json['paytype'] == true || parseInt(json['pay_log']) > 0 ? "此文档为收费内容，但您不需要支付即可查看，<a href='"+(url + (url.match(/\?/) ? '&' : '?') + 'param=' + json['location'])+"'>点击查看</a>" : "此文档为收费内容，您需要支付<strong>"+json.info.point+"</strong>点才能查看，<a onclick=\"qmeCms.pay.pay('"+json.pay_link+"', '"+url+"');\" href='javascript:void(0);'>点击支付</a>" ) + '</p>';
				}else{
					$('pay-info').innerHTML = '<p>提示信息：'+json.message + '</p>';
				}
			});
		});
		</script>
		<!--{else}-->
		<script type="text/javascript">
		var _player_data = {$_output['player_encode']};
		domReady(function(){
			var pid = getParam('pid');
			pid = isNaN(parseInt(pid)) ? 0 : parseInt(pid);
			if(pid > 0){
				var status = 0;
				for(var i=0;i<_player_data.length;i++){
					if(parseInt(_player_data[i]['pid']) == pid){
						flashPlayer.build(i);
						status = 1;
						break;
					}
				}
				if(status == 0) flashPlayer.build(0);
			}else{
				flashPlayer.build(0);
			}
			var box = $('tv-box');
			if($$B.ie6 && box !=null && box.offsetHeight < box.parentNode.offsetHeight) box.parentNode.style.height = box.offsetHeight+'px';
		});
		</script>
		<!--{/if}-->
		<div id="player_parent" class="player">
			<div id="player"></div> 
			<div id="player_loading" class="player_loading"></div>
			<div id="player_no" class="player_no">
				<div class="tips">
					<p><span class="icon"></span></p>
					<p>出错了，没有可观看的数据</p>
				</div>
			</div>
		</div>

		<div class="newsview">
			<div class="info">
				<strong>时间：</strong> <!--{echo qbase::formatTime('Y年n月d日 H点', $_output['dateline'])}-->
				<strong>观看：</strong> <span id='count-view'>loading...</span>
			</div>
			<!--{if $tag}-->
			<div class="actbar" style="text-align:left;text-indent:15px;">
				{$channeltitle}标签：
				<!--{loop $tag $val}-->
				<a href="{W_P}index.php?ac=search&channelid={$channelid}&type=tag&kid={$val['kid']}" style="margin:0 6px;">{$val['name']}</a>
				<!--{/loop}-->
			</div>
			<!--{/if}-->
		    <div class="context">
				<!--{template 'default/digg_element'}-->
			</div>
			<div class="vtitle" style="border-top:1px solid #EEEEEE;border-bottom:1px solid #EEEEEE;font-weight:bold;line-height:28px;height:28px;letter-spacing:2px;text-indent:10px;">影视介绍</div>
		    <div class="context" style="text-indent:2em;">
				<div style="padding-top:5px;">{$_output['description']}</div>
			</div>
            <div class="clear"></div>
		</div>
		<!--{if !$_output['nocoment'] && $_category_info['c_allow']}-->
			<a name='comment'></a>
			<div class="comment"  id="comment_box" style="margin-top:10px;">
				<p style="margin:15px;" class="loading">评论加载中，请等待...</p>
			</div>
		<!--{/if}-->
	</div>
	<div class="pright" style="margin-top: 31px;">
		<div class="classbox">
			<h3><span>影片信息</span></h3>
			<div class="rbox"  >
				<table border="0" style="margin: 6px 0 8px 10px;">
					<tr>
						<td width="100" valign="top">
							<!--{if $_output['thumb']}--><img src="{$_output['thumb']}" width="{$pic_width}" class="thumb" style="margin-top:0" /><!--{else}--><img src="{W_P}images/nopic.gif" class="thumb" style="margin-top:0" /><!--{/if}-->
						</td>
						<td valign="top">
							<!--{if $_output['play_year']}--><p class="actor">首映：{$_output['play_year']}<!--{/if}--></p>
							<!--{if $_output['play_area']}--><p class="actor">地区：<a href="{W_P}index.php?mod={$channelid}&ac=search&type=area&name={echo urlencode($_output['play_area'])}"  target="_blank">{$_output['op_play_area']}</a></p><!--{/if}-->
							<p class="actor">状态：{$_output['play_status_tip']}</p>
							<!--{if $_output['play_leader']}-->
							<p class="actor">导演：<!--{loop $_output['play_leader'] $val}--><a href="{W_P}index.php?mod={$channelid}&ac=search&type=actor&name={echo urlencode($val)}"  target="_blank">{$val}</a><!--{/loop}--></p>
							<!--{/if}-->
							<!--{if $_output['play_actor']}-->
							<p class="actor">主演：<!--{loop $_output['play_actor'] $val}--><a href="{W_P}index.php?mod={$channelid}&ac=search&type=actor&name={echo urlencode($val)}"  target="_blank">{$val}</a><!--{/loop}--></p>
							<!--{/if}-->
						</td>
					</tr>
				</table>
			</div>
		</div>
		<!--{if $_output['player'] && $_output['paid'] != 1}-->
		<div class="classbox margintop">
			<h3><span>播放列表</span></h3>
			<div class="tv-box">
				<ul id="tv-box">
					<!--{loop $_output['player'] $k $v}-->
					<li id="pid-{$v['pid']}"><a href="javascript:void(0);" title="观看：{$v['pname']}" onclick="flashPlayer.build({$k})">{$v['pname']}</a></li>
					<!--{/loop}-->
				</ul><div class="clear"></div>
			</div>
		</div>
		<!--{/if}-->
		<div class="classbox margintop">
			<h3><span>热点关注</span></h3>
			<div class="rbox" id="ordering">
				<ul>
					<!--{cms $_obj = cmsQuery("channelid={$channelid}&cid={$cid}&order=views desc&pagesize=10&cacheTime=3600");}-->
					<!--{loop $_obj['data'] $v}-->
					<li><a href="{$v['url']}" title="{$v['subject']}"><!--{eval echo qbase::substrs($v['subject'], 40);}--></a></li>
					<!--{/loop}-->
				</ul>
			</div>
		</div>
	</div>
	<div class="clear"></div>
</div>
<!--{template 'default/foot'}-->