<!--<?php print <<<EOT
-->
<style type="text/css">
.t table tr.tr2 td.f{width:22%;}
.t table tr.tr2 td.e{width:10em;}
</style>
<!--
EOT;
if($threadright){print<<<EOT
-->
<script type="text/javascript" src="http://app.phpwind.net/static/js/client.js"></script>
<script language="JavaScript">
var server = new PwJs.Server("pwthread");
server.start();
</script>
<!--
EOT;
}print<<<EOT
-->
<div class="forum-info cc gray">
<div class="fr">主题:$topics | 帖子:$article | 会员:$totalmember | 新会员:<span class="black">$newmember</span>&nbsp;<a href="rss.php" target="_blank" title="RSS订阅本版面最新帖子"><img src="$imgpath/$stylepath/rss.png" align="absmiddle" /></a></div>
<!--
EOT;
if($db_todaypost){print <<<EOT
-->
	今日:$tposts | 昨日:$yposts |
<!--
EOT;
}print <<<EOT
-->
	最高日:$hposts | <a href="job.php?action=sign">标记已读</a>
</div>

<!--
EOT;
if($notice_A){print <<<EOT
-->
<div class="noticebg">
	<div id="notice">
		<div id="notice0" style="width:98%;height:18px;line-height:18px;overflow-y:hidden;">
			<ul>
<!--
EOT;
foreach($notice_A as $value){print <<<EOT
-->
				<li><a href="$value[url]">$value[subject]</a> <span class="f9 gray">$value[startdate]</span></li>
<!--
EOT;
}print <<<EOT
-->
			</ul>
		</div><div style="height: 36px;overflow-y: hidden;"></div>
	</div>
</div>
<script language="javascript">
function bbsNoticePlay() {
	if (bbsNoticeC.scrollHeight < 36) {
		bbsNoticeO = setTimeout('bbsNoticePlay()',4000);
		bbsNoticeF.scrollTop = bbsNoticeC.scrollTop = 0;
		bbsNoticeH = true;
		return ;
	}
	if (bbsNoticeH) {
		bbsNoticeF.scrollTop = 36;
		if (bbsNoticeC.scrollHeight-18 <= bbsNoticeC.scrollTop) {
			bbsNoticeC.scrollTop = 0;
		} else {
			bbsNoticeC.scrollTop += 18;
		}
		bbsNoticeH = false;
		bbsNoticeO = setTimeout('bbsNoticePlay()',500);
	} else {
		bbsNoticeF.scrollTop = 0;
		bbsNoticeH = true;
		bbsNoticeO = setTimeout('bbsNoticePlay()',4000);
	}
}
var bbsNoticeH = true;
var bbsNoticeF = getObj('notice');
var bbsNoticeC = getObj('notice0');
bbsNoticeF.scrollTop = bbsNoticeC.scrollTop = 0;
bbsNoticeF.onmouseover = function(){if(bbsNoticeO && bbsNoticeH){clearTimeout(bbsNoticeO);bbsNoticeO=0;}};
bbsNoticeF.onmouseout  = function(){if(!bbsNoticeO){bbsNoticeO = setTimeout('bbsNoticePlay()',4000);bbsNoticeH=true;}};
var bbsNoticeO = setTimeout('bbsNoticePlay()',4000);
</script>
<!--
EOT;
}else{print <<<EOT
-->
<div class="noticebg">
	<div id="notice">
		<div id="notice0" style="width:98%;height:18px;line-height:18px;overflow-y:hidden;">
			<ul style="margin: 0; padding-top:1px;">
				<li>最近没有站点公告</li>
			</ul>
		</div>
	</div>
</div>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
list($htmlAdvert,$arrayAdvert) = pwAdvert('Mode.TextIndex');
if($htmlAdvert){print <<<EOT
-->
<div class="ad-text">
	<table width="100%" cellspacing="0" cellpadding="0">
<!--
EOT;
$tmpCount=0;
$idp = 100/$db_txtadnum;
foreach($arrayAdvert as $value){
if($tmpCount==0){print <<<EOT
-->
		<tr class="tr3">
<!--
EOT;
}$tmpCount++;print <<<EOT
-->
			<td class="black tac" width="$idp%">$value</td>
<!--
EOT;
if($tmpCount==$db_txtadnum){
$tmpCount=0;print <<<EOT
-->
		</tr>
<!--
EOT;
}}if($tmpCount && $tmpCount<$db_txtadnum){
for($i=$tmpCount;$i<$db_txtadnum;$i++){print <<<EOT
-->
			<td width="$idp%">&nbsp;</td>
<!--
EOT;
}print <<<EOT
-->
		</tr>
<!--
EOT;
}print <<<EOT
-->
	</table>
</div>
<!--
EOT;
}print <<<EOT
-->

<!--
EOT;
if($db_newinfoifopen && $nf_config['position']==1)require PrintEot('newinfo');
if($db_iftag && $db_tagindex && $tagdb = L::config('tagdb','tagdb')){print <<<EOT
-->
<div class="t">
	<table width="100%" cellspacing="0" cellpadding="0" align="center">
		<tr>
			<td class="h"><b>热门标签</b></td>
		</tr>
		<tr class="tr3">
			<td class="f_one black" style="line-height:180%;">
<!--
EOT;
$num=0;
foreach($tagdb as $key=>$val){
$rawkey=rawurlencode($key); $num++;
if($num>=$db_tagindex) break;
print <<<EOT
-->
				<span class="w" style="padding:3px 8px"><a href="job.php?action=tag&tagname=$rawkey">$key</a></span>
<!--
EOT;
}print <<<EOT
-->
			</td>
		</tr>
	</table>
</div>
<!--
EOT;
}if($db_newinfoifopen && $nf_config[position]!=2)include_once PrintEot('newinfo');
print <<<EOT
-->
<div class="contentc"></div>
<div id="content">
<div class="contentwrap z">
<!--
EOT;
foreach($catedb as $k=>$cate){
if($forumdb[$cate['fid']]){
if($cate['across']){print <<<EOT
-->
<div class="t" id="t_$cate[fid]">
	<table cellspacing="0" cellpadding="0" width="100%" style="table-layout:fixed;">
		<tr>
			<th class="h" colspan="$cate[across]"><a class="closeicon fr" style="cursor:pointer;" onclick="return IndexDeploy('$cate[fid]',0)"><img id="img_$cate[fid]" src="$imgpath/$stylepath/index/cate_$cate[deploy_img].gif" /></a>
<!--
EOT;
if($cate['admin']){print <<<EOT
-->
				<span class="fr" style="margin-right:20px">分栏版主:$cate[admin]</span>
<!--
EOT;
}print <<<EOT
-->
				&raquo;
				<h2><a href="index.php?m=bbs&cateid=$cate[fid]" class="cfont">$cate[name]</a></h2>
			</th>
		</tr>
		<tr>
			<td colspan="$cate[across]" style="padding:0;border-bottom:0;font:0/0 Arial"></td>
		</tr>
		<tbody id="cate_$cate[fid]" class="across" style="display:$cate[tbody_style];">
<!--
EOT;
$a=0;
foreach($forumdb[$cate['fid']] as $forums){
if($a==0){print <<<EOT
-->
			<tr class="tr1">
<!--
EOT;
}$a++;print <<<EOT
-->

		<td id="fid_{$forums[fid]}" class="td1 f_one">
        	<table width="100%">
            	<tr>
            		<td class="p10" width="1">
<!--
EOT;
if($forums['logo']){print <<<EOT
-->
<a href="thread.php?fid=$forums[fid]"><img  src="$forums[logo]" /></a>
<!--
EOT;
}else{print <<<EOT
-->
<img  src="$imgpath/$stylepath/$forums[pic].gif" />
<!--
EOT;
}print <<<EOT
-->
                </td>
                <td style="padding:5px 13px;">
<h3><a href="thread.php?fid=$forums[fid]" id="fn_$forums[fid]" class="fnamecolor b">$forums[name]</a>
<!--
EOT;
if($threadright && ($threadright[down][admin] || in_array($forums[fid],$threadright[down][other])) ){print <<<EOT
--><a style="margin-left:10px;color:red" href="javascript:;" id="jh_forum$forums[fid]" onclick="sendmsg('apps.php?q=appthread&forumid=$forums[fid]','',this.id)">充实内容</a>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
if($db_todaypost && $forums[tpost]){print <<<EOT
-->
						 <span class="f10 s3 fn">(今日$forums[tpost])</span>
<!--
EOT;
}print <<<EOT
-->
</h3><br />
<span class="gray">主题:$forums[topics]&nbsp;&nbsp;&nbsp;帖子:$forums[article]</span><br />
<!--
EOT;
if($forums[au]){print <<<EOT
-->
					<a href="$forums[ft]">$forums[t]</a><br />
					<span class="gray">by:$forums[au] <span class="f10">[$forums[newtitle]]</span>
<!--
EOT;
}if($forums[forumappinfo][forum_across]){
print <<<EOT
-->
					<br /><span>{$forums[forumappinfo][forum_across]}</span>
<!--
EOT;
}if($forums[pic]=='lock'){print <<<EOT
-->
					认证站点
<!--
EOT;
}print <<<EOT
-->
</span>
</div>
                </td>
            </tr>
       	</table>
</td>
<!--
EOT;
if($a==$cate['across']){
$a=0;
print <<<EOT
-->
			</tr>
<!--
EOT;
}}if($a!=0){
for($i=$a;$i<$cate['across'];$i++){print <<<EOT
-->
				<td class="f_one td1"><br /></td>
<!--
EOT;
}print <<<EOT
-->
			</tr>
<!--
EOT;
}print <<<EOT
-->
			<tr><td colspan="$cate[across]" style="height:8px;" class="f_one"></td></tr>
		</tbody>
	</table>
</div>
<!--
EOT;
}else{print <<<EOT
-->
<div class="t z" id="t_$cate[fid]">
	<table cellspacing="0" cellpadding="0" width="100%">
		<tr>
			<th class="h" colspan="6"><a class="closeicon fr" style="cursor:pointer;" onclick="return IndexDeploy('$cate[fid]',0)"><img id="img_$cate[fid]" src="$imgpath/$stylepath/index/cate_$cate[deploy_img].gif" /></a>
<!--
EOT;
if($cate[admin]){print <<<EOT
-->
				<span class="fr a2 fn" style="margin-right:20px">分栏版主:$cate[admin]</span>
<!--
EOT;
}print <<<EOT
-->
				<h2>&raquo; <a href="$db_bfn?m=bbs&cateid=$cate[fid]" class="cfont">$cate[name]</a></h2>
			</th>
		</tr>
		<tbody id="cate_$cate[fid]" style="display:$cate[tbody_style];">
		<tr class="tr2">
			<td width="*" colspan="2" class="tac">版块</td>
			<td class="tal y-style e">主题 / 文章</td>
			<td class="tal y-style f">最后发表</td>
		</tr>
<!--
EOT;
foreach($forumdb[$cate[fid]] as $forums){print <<<EOT
-->
			<tr class="tr3 f_one" id="fid_$forums[fid]">
				<td class="icon tac" width="45"><a href="thread.php?fid=$forums[fid]" target="_blank"><img src="$imgpath/$stylepath/$forums[pic].gif" /></a></td>
				<th><!--
EOT;
if($forums[logo]){print <<<EOT
-->
					<a href="thread.php?fid=$forums[fid]" target="_blank"><img align="left" src="$forums[logo]" style="padding-right:5px"></a>
<!--
EOT;
}print <<<EOT
-->
					<h3 class="b"><a href="thread.php?fid=$forums[fid]" id="fn_$forums[fid]">$forums[name]</a></h3>
<!--
EOT;
if($threadright && ($threadright[down][admin] || in_array($forums[fid],$threadright[down][other])) ){print <<<EOT
-->
					<a style="margin-left:10px;color:red" href="javascript:;" id="jh_forum$forums[fid]" onclick="sendmsg('apps.php?q=appthread&forumid=$forums[fid]','',this.id)">充实内容</a>
<!--
EOT;
}print <<<EOT
-->

<!--
EOT;
if($db_todaypost && $forums[tpost]){print <<<EOT
-->
					<span class="s3">&nbsp;(今日<span class="f10">$forums[tpost]</span>)</span>
<!--
EOT;
}if($forums[descrip]){
print <<<EOT
-->
					<div class="smalltxt gray" id="desc_$forums[fid]">{$forums[descrip]}&nbsp;</div>
<!--
EOT;
}if($forums[forumappinfo][forum_erect]){
print <<<EOT
-->
					<div class="smalltxt gray" id="appinfo_$forums[fid]">{$forums[forumappinfo][forum_erect]}&nbsp;</div>
<!--
EOT;
}if($showsub[$forums['fid']]){print <<<EOT
-->
					<div class="gray forumslink">子版:<span>&nbsp;{$showsub[$forums[fid]]}</span></div>
<!--
EOT;
}print <<<EOT
-->
					<div><span class="gray">版主:</span>
<!--
EOT;
if($db_adminshow && $forums[admin]){print <<<EOT
-->
					<select name="admin" onchange="Ajump(this.options[this.selectedIndex].value)" style="width:80px;">
						<option value=""> 版主列表</option>
						$forums[admin]
					</select>
<!--
EOT;
}else{print <<<EOT
-->
					<span class="forumslink s5">$forums[admin]</span>
<!--
EOT;
}print <<<EOT
-->
</div>
				</th>
				<td class="tal y-style f10 e gray"><span class="s3">$forums[topics]</span>/<span class="f10">$forums[article]</span></td>
				<th>
<!--
EOT;
if($forums[au]){print <<<EOT
-->
					<a href="$forums[ft]" class="a2">$forums[t]</a><br />
					<span class="gray">$forums[au]</span><br />
					<span class="f9 gray">$forums[newtitle]</span>
<!--
EOT;
}if($forums[pic]=='lock'){print <<<EOT
-->
					认证站点
<!--
EOT;
}print <<<EOT
-->				&nbsp;</th></tr>
<!--
EOT;
}print <<<EOT
--><tr><td colspan="5" style="height:8px;"></td></tr>
		</tbody>
	</table>
</div>
<!--
EOT;
}}
list($htmlAdvert,$arrayAdvert) = pwAdvert('Mode.Layer.Index',-1,$k+1);
if($htmlAdvert){print <<<EOT
-->
<div style="margin-bottom:5px;" class="tac">$htmlAdvert</div>
<!--
EOT;
}}print <<<EOT
-->
</div></div>
<!--
EOT;
if($db_newinfoifopen && $nf_config[position]==2)require PrintEot('newinfo');
print <<<EOT
-->
<div class="c"></div>
<script language="JavaScript" src="js/Deploy.js"></script>
<div class="t">
	<table cellspacing="0" cellpadding="0" width="100%">
		<tr>
			<th colspan="2" class="h"><a class="closeicon fr" style="cursor:pointer;" onclick="return IndexDeploy('info',0)"><img id="img_info" src="$imgpath/$stylepath/index/cate_$cate_img.gif" /></a><b>站点相关</b></th>
		</tr>
		<tbody id="cate_info" style="display:$cate_info;">
<!--
EOT;
if($db_indexlink==1){print <<<EOT
-->
			<tr class="tr2">
				<td colspan="2">
<!--
EOT;
if($db_ifselfshare && $groupid!='guest'){print <<<EOT
-->
					<a id="selfshare" href="javascript:;" title="自助友情链接" style="cursor:pointer;float:right" onclick="sendmsg('pw_ajax.php','action=sharelink',this.id)">自助友情链接</a>
<!--
EOT;
}print <<<EOT
-->
					  &raquo; 友情链接 </td>
			</tr>
<!--
EOT;
foreach($sharelink[0] as $share){ print <<<EOT
-->
			<tr class="tr3">
				<td class="f_one tac" width="4%"><img src="$imgpath/$stylepath/index/share.gif" /></td>
				<th class="f_one" width="96%" style="word-break: keep-all;border-right:none;">$share</th>
			</tr>
<!--
EOT;
}print <<<EOT
-->
			<tr class="tr3">
				<td class="f_one tac" width="4%"><img src="$imgpath/$stylepath/index/share.gif" /></td>
				<th class="f_one black" width="96%" style="word-break: keep-all;border-right:none;">$sharelink[1]</th>
			</tr>
<!--
EOT;
}if($db_indexshowbirth && $brithcache!='empty'){print <<<EOT
-->
			<tr class="tr2">
				<td colspan="2">&raquo; 生日会员</td>
			</tr>
			<tr class="tr3">
				<td class="f_one tac" width="4%" style="padding:0"><img src="$imgpath/$stylepath/index/birth.gif" /></td>
				<th class="f_one" width="95%" style="padding-right:8px;word-break:keep-all;border-right:none;"> <!--
EOT;
if(!$brithcache){print <<<EOT
-->
				今天站点里没有人过生日
<!--
EOT;
}else{print <<<EOT
-->
				$brithcache
<!--
EOT;
}print <<<EOT
-->
				</th>
			</tr>
<!--
EOT;
}print <<<EOT
-->
		<tr class="tr2">
			<td colspan="2">&raquo; 在线用户<a name="online"></a> -  共 $usertotal 人在线,$userinbbs 位会员,$guestinbbs 位访客,最多 $higholnum 人发生在 $mostinbbstime </td>
		</tr>
		<tr class="tr3">
			<td class="f_one tac" style="padding:0;border-bottom:0px;" width="4%"><img src="$imgpath/$stylepath/index/online.gif" /></td>
			<td class="f_one tal" style="padding:15px 20px;border-bottom:0px;border-right:none;">
<!--
EOT;
foreach($showgroup as $value){
if($value && (file_exists("$imgdir/$stylepath/group/$value.gif") || $db_http!='N')){print <<<EOT
-->
				<img src="$imgpath/$stylepath/group/$value.gif" align="absmiddle" /> $ltitle[$value]
<!--
EOT;
}}print <<<EOT
-->
				<img src="$imgpath/$stylepath/group/6.gif" align="absmiddle" /> 普通会员
<!--
EOT;
if($db_indexonline){
if($online == 'yes' && $index_whosonline){print <<<EOT
-->
				<a name="online"></a> [<a href="javascript:;" onclick="window.location='$db_bbsurl/index.php?m=bbs&online=no#online';return false">关闭在线列表</a>]
				<div style="padding:5px 0">
					<hr style="height:1px; background:$tdcolor;color:$tdcolor;border:0">
				</div>
				$index_whosonline
<!--
EOT;
}else{print <<<EOT
-->
				<a name="online"></a> [<a href="javascript:;" onclick="window.location='$db_bbsurl/index.php?m=bbs&online=yes#online';return false">打开在线列表</a>]
<!--
EOT;
}}print <<<EOT
-->
			</td>
		</tr>
		</tbody>
	</table>
</div>
<!--
EOT;
$head_pop && require PrintEot($head_pop);
?>-->