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

<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>
<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 $data = menuPath();}--><!--{loop $data $val}-->&gt; <a href="{$val['url']}">{$val['name']}</a><!--{/loop}-->&nbsp;列表
			</div>
		</div>
		<!--资讯内容-->
		<h1 class="b" style="text-align:center"><span></span><strong>{$_output['subject']}</strong></h1>
		<div class="newsview">
			<!--相关信息-->
			<div class="info">
				<!--{if $_outputs['articlefrom']}--><strong>来源：</strong>{$_outputs['articlefrom']}<!--{/if}-->
				<!--{if $_outputs['articleauthor']}--><strong>作者：</strong>{$_outputs['articleauthor']}<!--{/if}-->
				<strong>时间：</strong>2006-07-03
				<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}-->
			<div class='pay-sys' id="pay-info"><p>此{$channeltitle}为收费内容，如无必要，请不要刷新当前网页</p></div>
			<!--{/if}-->
			<!--{if $_output['description']}--><div class="summary">{$_output['description']}</div><!--{/if}-->
			<a name="photo"></a>
			<!--{if $_output['paid'] != 1}-->
				<!--{if $_output['showtype'] == 0}-->
					<!--{template 'default/pic/show_element_simple'}-->
				<!--{elseif $_output['showtype'] == 1}-->
					<!--{template 'default/pic/show_element_thumb'}-->
				<!--{else}-->
					<!--{template 'default/pic/show_element_slider'}-->
				<!--{/if}-->
			<!--{/if}-->
			<div class="clear"></div>
			<!--{eval $tag = getTag($channelid, $id);}-->
			<!--{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;">{$val['name']}</a>
				<!--{/loop}-->
			</div>
			<!--{/if}-->
			<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">
				<!--{template 'default/digg_element'}-->
			</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"> 
		<div class="classbox mt31">
			<h3><span>热点关注</span></h3>
			<div class="rbox">
				<ul class="pic">
					<!--{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']}"><img _lazysrc="{W_P}<!--{echo qbase::formatThumb($v['thumb'], '_128')}-->" src="{W_P}images/blank.gif" width="100" height="64" /></a>
						<a href="{$v['url']}" title="{$v['subject']}"><!--{eval echo qbase::substrs($v['subject'], 40);}--></a>
					</li>
					<!--{/loop}-->
					<div class="clear"></div>
				</ul>
			</div>
		</div>
	</div>
	<div class="clear"></div>
</div>
<!--{template 'default/foot'}-->