<!--{template 'default/head'}-->

<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;列表
			</div>
		</div>
		<a name="art"></a>
		<h1 class="b" style="text-align:center"><span></span><strong>{$_output['subject']}</strong></h1>
		<div class="newsview">
			<div class="info">
				<!--{if $_output['articlefrom']}--><strong>来源：</strong> {$_output['articlefrom']}<!--{/if}-->
				<!--{if $_output['articleauthor']}--><strong>作者：</strong> {$_output['articleauthor']}<!--{/if}-->
				<strong>时间：</strong> <!--{echo qbase::formatTime('Y年n月d日 H点', $_output['dateline'])}-->
				<strong>浏览：</strong> <span id='count-view'>loading...</span>
			</div>
			<!-- 付费判断 -->
			<!--{if $_output['paid'] == 1}-->
			<div class='pay-error' id="pay-info"><p>提示信息：数据加载中，请等待...</p></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>
			<!--{elseif $_output['paid'] == 2 && $_output['point']}-->
			<div class='pay-sys' id="pay-info"><p>此{$channeltitle}为收费内容，如无必要，请不要刷新当前网页</p></div>
			<!--{/if}-->

			<!--{if $_output['description']}--><div class="summary">{$_output['description']}</div><!--{/if}-->
			<div class="content" id="html-format">
				{$_output['message']}
			</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&type=tag&kid={$val['kid']}" style="margin:0 6px;" title="{$val['description']}">{$val['name']}</a>
				<!--{/loop}-->
			</div>
			<!--{/if}-->
			<!--{if $_output['page'] > 1}-->
				<div class="pager" style="text-align:center"><!--{echo cmsContentPage("hash=#art")}--></div>
			<!--{/if}-->
			<div class="clear"></div>
			<div class="actbar">
				<span>[<a href="{W_P}index.php?ac=comment&channelid={$channelid}&id={$id}">评论</a>]</span>
				<span>[<a href="#" onClick="window.print();">打印</a>]</span>
				<span>[<a href="#" onClick="window.close();">关闭</a>]</span>
			</div>

            <div class="context">
                    上一篇：<!--{echo preSubject($id, $cid);}-->
                    <br />
                    下一篇：<!--{echo nextSubject($id, $cid);}--> 
           </div>
		    <div class="context">
				<!--{template 'default/digg_element'}-->
			</div>
            <div class="clear"></div>
		</div>
		<!--{if !$_output['nocoment'] && $_category_info['c_allow'] && $_SET['trackback']}-->
		<h1 class="b margintop"><span>Trackback</span></h3>
		<div class="newsview">
			<div class="lbox" style="padding-left:12px;">
				<p style="padding-left:9px;">GBK地址：<span>{W_P}index.php?ac=trackback&channelid={$_output['channelid']}&id={$_output['id']}&charset=gbk</span></p>
				<p>UTF-8地址：<span>{W_P}index.php?ac=trackback&channelid={$_output['channelid']}&id={$_output['id']}&charset=utf-8</span></p>
			</div>
		</div>
		<!--{/if}-->
		<h1 class="b margintop"><span>相关文章</span></h1>
		<div class="newsview">
			<div class="lbox">
				<ul>
                	<!--{eval $_obj = getRelatedBySubject($_output['subject'], 0, 5);}-->
					<!--{loop $_obj $v}-->
					<li><a href="{$v['url']}" title="{$v['subject']}"><!--{echo qbase::substrs($v['subject'], 80);}--></a></li>
					<!--{/loop}-->
                </ul>
		  </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">
				<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']}"><!--{echo qbase::substrs($v['subject'], 40);}--></a></li>
					<!--{/loop}-->
				</ul>
			</div>
		</div>
	</div>
	<div class="clear"></div>
</div>
<script type="text/javascript">
domReady(function(){
	/*格式化fck富媒体*/
	qmeCms.fck.get('html-format');
	/*链接点击统计*/
	var docLink = parseInt('{$_SET['doc_link']}');
	var docLinkShow = parseInt('{$_SET['doc_link_show']}');
	if(docLink == 1 && docLinkShow == 1) showWordLinkTip('html-format');
	/*获取评论*/
	if($('comment_box') != null){	
		AJAX.get(config.url + 'index.php?ac=comment&channelid={$channelid}&id={$id}', function(resp){
			$('comment_box').innerHTML = resp;
			evalscript(resp);
		});
	};
});
</script>
<!--{template 'default/foot'}-->