<!--{:tpl head}-->
<div id="main">
 <div class="main_l bdr_1">
  <h3 id="position">
   <a href="{:ROOT_URL}">首页</a>
   <!--{:loop Tag::position($catid) $v}--><a href="{:$v['url']}">{:$v['name']}</a><!--{:/loop}-->
  </h3>
  <div class="content mb_10">
   <div class="content_head">
    <h1 style="{:if $color}color:{:$color}{:/if}">{:$title}</h1>
    <div>{:Tag::date($updatetime, 3)}<!--{:if $author}--> 作者：{:$author}<!--{:/if}--> 责任编辑：{:$username}<!--{:if $copyfrom}--> 来源：{:$copyfrom}<!--{:/if}--> 评论：<span id="comments"></span> 浏览：<span id="hits"></span> [字体：<a href="javascript:ContentSize(16)">大</a> <a href="javascript:ContentSize(14)">中</a> <a href="javascript:ContentSize(12)">小</a>]</div>
   </div>
   <!--{:if $description}-->
   <h2 class="description">{:$description}</h2>
   <!--{:/if}-->
   <div id="endtext">{:$content}</div>
   <!--{:if $keywords}-->
   <div class="keyword"><strong>关键词：</strong>{:Tag::tags($keywords, 'article')}</div>
   <!--{:/if}-->
   <!--{:if $pages}-->
   <div class="pages">{:$pages}</div>
   <!--{:/if}-->
  </div>
  <h3 class="tool mb_10">上一篇：{:Tag::near($id, $catid, 'back', 42)}&nbsp;&nbsp;&nbsp;下一篇：{:Tag::near($id, $catid, 'next', 42)}</h3>
  <h4 class="tool">相关文章</h4>
  <ul class="text_list">
   <!--{:loop Tag::listOne("model=article, type=like, num=10, outid=$id, keyword=$keywords") $v}-->
   <li><a href="{:$v['url']}" title="{:$v['title']}"{:$v['color']}>{:$v['title']}</a></li>
   <!--{:/loop}-->
  </ul>
  <div class="toolbar">
   <a href="javascript:copyToClipBoard()">[推荐]</a>
   <a href="javascript:myAddPanel()">[收藏]</a>
   <a href="javascript:window.print();">[打印]</a>
   <a href="javascript:window.close();">[关闭]</a>
   <a href="#top">[返回顶部]</a>
  </div>
  <!--{:if C('iscomment', 0, 'article') && !$uncmt}-->
  <div class="comment">
   <h4><a href="{:ROOT_PATH}index.php?c=comment&m=article&id={:$id}" class="totle" id="comment_totle">共有评论 <span></span> 条</a>网友热评</h4>
   <div id="comment_list">
    暂时还没有人评论，抢个沙发吧！
   </div>
   <h4>我要评论</h4>
   <div id="comment_login">
    <span id="app_login_1">您好，请<a href="javascript:;" onclick="login()">登录</a>或<a href="{:Url::getUrl('member', 'reg')}">注册</a></span>
	<span id="app_login_2">您好，{username} | <a href="{:Url::getUrl('member', 'logout')}">退出</a></span>
   </div>
   <ul class="post">
    <li><textarea cols="122" rows="8" id="comment_content"></textarea></li>
    <li><input class="button" type="button" value="发表评论" onclick="comment_submit('article', {:$id})" /></li>
   </ul>
  </div>
  <script type="text/javascript">
	$(function(){
		$.post(site_url + 'index.php?c=comment&a=get_list&m=article', 'id={:$id}', function(data){
			$('#comments').text(data[0]);
			$('#comment_totle').find('span').text(data[0]);
			if (data[0]) {
				$('#comment_list').html(data[1]);			
			}
		}, 'json');
	});
	document.write('<script type="text/javascript" src="../../statics/js/comment.js"><\/script>');
  </script>
  <!--{:/if}-->
 </div>
 <div class="main_r">
  <div class="bdr_1 mb_10">
   <h5>最新文章</h5>
   <ul class="text_list">
    <!--{:loop Tag::listOne("catid=$catid, num=15") $v}-->
    <li><a href="{:$v['url']}" title="{:$v['title']}"{:$v['color']}>{:Tag::cut($v['title'],38,0)}</a></li>
    <!--{:/loop}-->
   </ul>
  </div>
  <div class="bdr_1 mb_10">
   <h5>热点文章</h5>
   <ul class="text_list">
    <!--{:loop Tag::listOne("catid=$catid, num=15, type=hot") $v}-->
    <li><a href="{:$v['url']}" title="{:$v['title']}"{:$v['color']}>{:Tag::cut($v['title'],38,0)}</a></li>
    <!--{:/loop}-->
   </ul>
  </div>
 </div>
</div>
<script type="text/javascript">
$(function(){
	$.get(site_url + 'index.php?c=article&a=hits&id={:$id}&'+Math.random(), function(data){
  		$('#hits').text(data);
	});
});
</script>
{:tpl foot}