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

<div id="container">
<!-- 工具栏 -->
<div id="counttool">
	<p id="countinfo">{#$tran_sitestat.membernum#}位用户，发布了{#$tran_sitestat.artnum#}篇文章，产生了{#$tran_sitestat.comnum#}条评论！欢迎新会员：{#$tran_sitestat.newmember#}</p>
	<p id="tool">
	<a href="{#$PB_ENV.PB_URL#}post.php?cid={#$cid#}"><img src="{#$PB_ENV.PB_URL#}templates/{#$PB_ENV.PB_TEMPLATE#}/images/post_bg.gif" alt="{#$uimsg.post_thread#}" /></a></p>
</div>
<div class="clear5">&nbsp;</div>

<!-- 左内容-->
<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"><strong>{#$item.subject#}</strong></a>
			<p class="author"><a href="user.php?uid={#$item.uid#}">{#$item.author#}</a>&nbsp;{#$uimsg.postby#} {#$item.postdate#} | {#$item.comments#} 条评论 | {#$item.views#} 次阅读</p></dt>
            </dl>
            
            <dl>
			<dd class="desc">
				<!--digg & bury-->
				{#if $diggbury eq "1"#}
				<div class="pb_box_r" id="digg_{#$item.tid#}">
					<div class="pb_box_rt" id="db_num_{#$item.tid#}">
						{#if $showdigg eq "1"#}<div class="pb_box_rtt" id="article_digg_{#$item.tid#}">{#$item.digg#}</div>{#/if#}
						{#if $showbury eq "1"#}<div class="pb_box_rtt2" id="article_bury_{#$item.tid#}">{#$item.bury#}</div>{#/if#}
					</div>
					<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>
				</div>
				{#/if#}
				 {#$item.topicimg#}
				<span>{#$item.content#} <a href="show.php?tid={#$item.tid#}" target="_blank">[详细内容]</a></span></dd>
			</dl>
			<dl>
				<dd class="detail"><p>分类：<a href="category.php?cid={#$item.cid#}">{#$item.cate#}</a> | 来源：<a href="{#$item.contentlink#}" target="_blank">{#$item.linkhost#}</a> | 标签：{#$item.tags#}</p></dd>
			</dl>
		</div>
		<!-- pbdigg -->
		{#foreachelse#}
		<p class="nocontent">{#$uimsg.noarticle#}</p>
		{#/foreach#}
		<!-- 分页链接 -->
		{#$mult_page#}
	</div>
</div>
<!-- 右侧列表-->
<div id="pbright">
	<!-- 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>
	<div class="list">
		<div class="list_title"><strong>分类公告</strong></div>
		<div class="list_content">
			<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/{#$PB_ENV.PB_TEMPLATE#}/images/last.gif" alt="上一条" width="11" height="11" border="0"></a> <a title="下一条" href="javascript:rollText(1);"><img src="{#$PB_ENV.PB_URL#}templates/{#$PB_ENV.PB_TEMPLATE#}/images/next.gif" alt="下一条" width="11" height="11" border="0"></a></td>
		    </tr>
			</table>
		</div>
	</div>
	{#/if#}
	<!-- 1 -->
	<div class="list">
		<div class="list_title"><strong>最新文章</strong></div>
		<div class="list_content">
			<ul>
				{#$tpl_f63d001d#}
			</ul>
		</div>
	<div class="clear"></div></div>
	<!-- 2 -->
	<div class="list">
		<div class="list_title"><strong>一周热门</strong></div>
		<div class="list_content">
			<ul>
				{#$tpl_80cc8536#}
			</ul>
		</div>
	<div class="clear"></div></div>
	<!-- 3 -->
   	<div class="list">
   		<div class="list_title"><span><a href="{#$PB_ENV.PB_URL#}tag.php" target="_blank">{#$uimsg.more#}...</a></span><strong>{#$uimsg.hottag#}</strong></div>
		<div class="list_content 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>
	</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>