{#include file="header.html"#}

<!-- 工具栏 -->
<div id="counttool">
	<p id="countinfo"><span>{#$tran_sitestat.membernum#}</span>位用户，发布了<span>{#$tran_sitestat.artnum#}</span>篇文章，产生了<span>{#$tran_sitestat.comnum#}</span>条评论！欢迎新会员：<span>{#$tran_sitestat.newmember#}</span></p>
	<p id="tool">
   {#if $log_status == "1"#}随时随地快速<a href="{#$PB_ENV.PB_URL#}post.php?cid={#$cid#}">{#$uimsg.post_thread#}</a>，与大家交流分享{#else#} 你可以<a href="{#$PB_ENV.PB_URL#}register.php" title="注册">注册</a>一个帐号，并以此<a href="{#$PB_ENV.PB_URL#}login.php">登录</a>，以浏览更多精彩内容{#/if#}</p>
	
</div>

<div id="container">

<!-- 左内容-->
<div id="pbleft">
	{#if $showsub == "1"#}
	<div class="nav_sub">{#$sub_menu#}<div class="clear"></div></div>
	{#/if#}

		<!-- 左侧主题内容 -->
		<div id="leftcategory">
		<!-- 排序 -->
		<div class="lefttop">
			<h3><span class="tool"><strong>{#$uimsg.postdate#}</strong></span> <a href="{#$PB_ENV.PB_URL#}category.php?cid={#$cid#}&amp;viewday=365" class="tool">365 {#$uimsg.zday#}</a> &nbsp;<a href="{#$PB_ENV.PB_URL#}category.php?cid={#$cid#}&amp;viewday=30" class="tool">30 {#$uimsg.zday#}</a> &nbsp;<a href="{#$PB_ENV.PB_URL#}category.php?cid={#$cid#}&amp;viewday=7" class="tool">7 {#$uimsg.zday#}</a> &nbsp;<a href="{#$PB_ENV.PB_URL#}category.php?cid={#$cid#}&amp;viewday=1" class="tool">最近24小时</a></h3>
			<h2>{#$navlink#}</h2>
		</div>
		<div class="clear3">&nbsp;</div>
		<!-- 文章列表 -->
		{#foreach from=$article item=item#}
		<!-- pbdigg -->
		<div class="newslist">
			<dl><img src="{#$item.avatar#}" alt="{#$item.author#}" class="small_user_avatar" /><dt class="topic"><a href="{#$item.titlelink#}"  target="_blank">{#$item.subject#}</a><p class="author"><a href="user.php?uid={#$item.uid#}">{#$item.author#}</a>&nbsp;在 <span class="d">{#$item.postdate#}</span> {#$uimsg.postby#} ［<a href="category.php?cid={#$item.cid#}">{#$item.cate#}</a>］</p></dt>
			</dl>
            
            <dl>
            				<!--digg & bury-->
				{#if $diggbury eq "1"#}
				<dd class="pb_box_r" id="digg_{#$item.tid#}">

					<a class="pb_box_rt" href="../show/{#$item.tid#}.html" id="db_num_{#$item.tid#}">
                    	{#if $showdigg eq "1"#}<span class="pb_box_rtt" id="article_digg_{#$item.tid#}">{#$item.digg#}</span><br />{#/if#}
						{#if $showbury eq "1"#}<span class="pb_box_rtt2" id="article_bury_{#$item.tid#}">{#$item.bury#}</span>{#/if#}
					</a>
					<div class="pb_box_rb" id="db_do_{#$item.tid#}">
						{#if $showdigg eq "1"#}<div id="article_digg_do_{#$item.tid#}" class="pb_box_rbb">{#if $item.digged eq "1"#}<span class="digged">{#$uimsg.digg#}</span>{#elseif $allowdigg eq "1"#}<a href="javascript:void(0);" onclick="digg('{#$item.tid#}', 'article', 'digg')">{#$uimsg.digg#}</a>{#else#}<a href="login.php">{#$uimsg.digg#}</a>{#/if#}</div>{#/if#}
						{#if $showbury eq "1"#}<div id="article_bury_do_{#$item.tid#}" class="pb_box_rbb2">{#if $item.buryed eq "1"#}<span class="buryed">{#$uimsg.bury#}</span>{#elseif $allowbury eq "1"#}<a href="javascript:void(0);" onclick="digg('{#$item.tid#}', 'article', 'bury')">{#$uimsg.bury#}</a>{#else#}<a href="login.php">{#$uimsg.bury#}</a>{#/if#}</div>{#/if#}
					</div>
				</dd>
				{#/if#}
			<dd class="desc">

				 {#$item.topicimg#}{#$item.content#}
				<span class="ddmove"> (<a href="show.php?tid={#$item.tid#}" target="_blank">详细内容>></a>)</span></dd>
			</dl>
			<dl>
				<dd class="detail"><span class="pinglun">{#$item.comments#} 条评论</span><span class="hits">{#$item.views#} 人读过</span><span class="share">来源 : <a href="{#$item.contentlink#}" target="_blank">{#$item.linkhost#}</a></span><span class="tagico">Tags :  {#$item.tags#}</span></dd>
			</dl>
		</div>
		<!-- pbdigg -->
		{#foreachelse#}
		<p class="nocontent">{#$uimsg.noarticle#}</p>
		{#/foreach#}
    <div class="clear5">&nbsp;</div>
	<!-- 分页链接 -->
		{#$mult_page#}
	</div>
</div>
<!-- 右侧列表-->
<div id="sidebar">
	<!-- 0 -->
	{#if $announcebool eq "1"#}
	<script type=text/javascript>
			<!--
			var rollText_k={#$announcenum#}; //菜单总数
			var rollText_i=1; //菜单默认值
			//setFocus1(0);
			rollText_tt=setInterval("rollText(1)",3000);
			function rollText(a){
			clearInterval(rollText_tt);
			rollText_tt=setInterval("rollText(1)",3000);
			rollText_i+=a;
			if (rollText_i>rollText_k){rollText_i=1;}
			if (rollText_i==0){rollText_i=rollText_k;}
			//alert(i)
			 for (var j=1; j<=rollText_k; j++){
			 document.getElementById("rollTextMenu"+j).style.display="none";
			 }
			 document.getElementById("rollTextMenu"+rollText_i).style.display="block";
			 document.getElementById("pageShow").innerHTML = rollText_i+"/"+rollText_k;
			} 
			//-->
	</script>
	<h2>分类公告</h2>
			<table border="0" cellspacing="0" class="rollboder">
		    <tr>
		      <td class="rollleft">
		          {#$announcements#}
		      </td>
		      <td class="rollcenter" id="pageShow">1/{#$announcenum#}</td>
		      <td class="rollright"><a title="上一条" href="javascript:rollText(-1);"><img src="{#$PB_ENV.PB_URL#}templates/digg2008/images/last.gif" alt="上一条" width="11" height="11" border="0"></a> <a title="下一条" href="javascript:rollText(1);"><img src="{#$PB_ENV.PB_URL#}templates/digg2008/images/next.gif" alt="下一条" width="11" height="11" border="0"></a></td>
		    </tr>
			</table>

	{#/if#}
	<!-- 1 -->
	<h2>最新文章</h2>

			<ol>
				{#$tpl_f63d001d#}
			</ol>

	<!-- 2 -->
	<h2>一周热门</h2>

			<ol>
				{#$tpl_80cc8536#}
			</ol>
	<!-- 3 -->
   		<h2><span><a href="{#$PB_ENV.PB_URL#}tag.php" target="_blank">{#$uimsg.more#}...</a></span>{#$uimsg.hottag#}</h2>
		<div class="hottags">
			{#foreach from=$tran_tags item=item#}
			<a href="{#$PB_ENV.PB_URL#}index.php?tag={#$item.encodetagname#}" target="_blank"><span style="{#$item.color#}">{#$item.tagname#}</span><em>({#$item.usenum#})</em></a> 
			{#/foreach#}
		</div>

	<!-- end --->
</div>
<!-- 右列表结束 -->
<div class="clear"></div>

<script type="text/javascript">
<!--
var pb_url = '{#$PB_ENV.PB_URL#}';
var verifyhash = '{#$verifyhash#}';
var ajax_response_failed = '{#$uimsg.ajax_response_failed#}';
//-->
</script>
</div>
<!-- footer -->
{#include file="footer.html"#}
<!-- footer end -->

</body>
</html>