<!--<?php
print <<<EOT
-->
<div class="mode-head cc">
		<ul class="nav-cms fl">
<!--
EOT;
foreach($catedbs as $key => $value){
if($value){print <<<EOT
-->
	   		<li><a href="cate.php?cateid=$key" title="$value"><span>$value</span></a></li>
<!--
EOT;
}}print <<<EOT
-->
		</ul>
		<div class="c"></div>
</div>
<!--text advertisement begin-->
<!--
EOT;
if($advertdb['text']){print <<<EOT
-->
<div class="ad-text">
	<table width="100%" cellspacing="0" cellpadding="0">
<!--
EOT;
$id=0;
$idp = 100/$db_txtadnum;
foreach($advertdb['text'] as $value){
if($id==0){print <<<EOT
-->
		<tr class="tr3">
<!--
EOT;
}$id++;print <<<EOT
-->
			<td class="f_one black tac" width="$idp%">$value[code]</td>
<!--
EOT;
if($id==$db_txtadnum){
$id=0;print <<<EOT
-->
		</tr>
<!--
EOT;
}}if($id && $id<$db_txtadnum){
for($i=$id;$i<$db_txtadnum;$i++){print <<<EOT
-->
		<td class="f_one" width="$idp%"><br /></td>
<!--
EOT;
}print <<<EOT
-->
		</tr>
<!--
EOT;
}print <<<EOT
-->
	</table>
</div>
<!--
EOT;
}print <<<EOT
-->
<!--text advertisement end-->


<div class="cc mt">
	<!--左边布局开始-->
    <div class="mode-main-left-bg">
    <div class="mode-main-left-bot">
    <div class="mode-main-left">

    	<div class="pt pb pl pr10">
		    <h2>{taghot}</h2>
            <div class="mode-tags-list">
            <pw id="taghot" name="热门标签" stamp="tag" num="15" />
				<loop>
					<span><a href="{url}" target="_blank">{title}</a></span>
				</loop>
            </div><div class="c"></div>
            <br />
            <h2>今日发帖排行</h2>
            <div class="mode-listA">
                <ul class="mode-listA mode-listC" id="info_forum_tpost">
                <pw id="forumtoday" name="今日发帖" stamp="forum" num="7"/>
                	<loop>
                	<li><a href="{url}" class="black" target="_blank">{title}</a></li>
                	</loop>
                </ul>
            </div><br />
            <h2>主题数排行</h2>
            <div class="mode-listA">
            	<ul class="mode-listA mode-listC" id="info_forum_topic">
                <pw id="forumarticle" name="主题数" stamp="forum" num="8"/>
                    <loop>
                    <li><a href="{url}" class="black" target="_blank">{title}</a></li>
                    </loop>
                </ul>
            </div>
            <br />
            <h2>{user_todaypost}</h2>
            <div class="mode-u-img mode-user-list">
            <pw id="user_todaypost" name="今日" stamp="user" num="5" />
                <loop>
                    <dl>
                    <dt><img src="{image}" /></dt>
                    <dd><a href="{url}" target="_blank">{title}</a></dd><dd class="f10">数量：&nbsp;{value}</dd>
                    </dl>
                </loop>
            </div>
            <br />
            <h2>{active_day}</h2>
            <div class="mode-user-list mode-user-list2">
            <pw id="active_day" name="今日" stamp="active" num="3" />
				<loop>
					<dl>
						<dd><a href="{url}" target="_blank">{title}</a></dd>
						<dd>参加人数：&nbsp;{num}<br />
							费用：&nbsp;{costs}</dd>
						<dd>活动地点：&nbsp;{location}</dd>

					</dl>
				</loop>
            </div>
			<br />
        	<h2><a href="rss.php" class="fr rss aimg" target="_blank">rss</a>社区信息</h2>
            <div class="mode-listA">
            <ul>
<!--
EOT;
if($db_todaypost){print <<<EOT
-->
			<li>今日:$tposts</li>
            <li>昨日:$yposts</li>
<!--
EOT;
}print <<<EOT
-->
			<li>最高日:$hposts</li>
            <li>主题:$topics</li>
            <li>帖子:$article</li>
            <li>会员:$totalmember</li>
            <li>新会员:$newmember</li>
            </ul></div><br />
		</div>
    </div>
    <!--左边结束右边布局开始-->
	<div class="mode-main-right">
    	<div class="mode-wid500">
        	<div class="mode-boxC">
                <h2><div class="cc">
<!--#
if(!empty($first_notice)){
#-->
                    <span class="f9 fr ml">$first_notice[startdate]</span><a href="$first_notice[url]" class="fr blue" target="_blank">$first_notice[subject]</a>
<!--#}else{#-->
                    &nbsp;
<!--#}#-->
                    <span class="b fl">{index_push}</span><img class="fl" src="$pwModeImg/hot-icon.png" style="margin-top:5px;"/>
                </div></h2>
                <div class="mode-list-dlB ml mr pt cc" style="height:197px;overflow:hidden">
                    <pw name="社区焦点" stamp="push" id="index_push" num="2" />
                    <loop>
                    <dl class="pb">
                    <dt class="fl img"><a href="{url}" target="_blank"><img src="{image,100,84}" /></a></dt>
                    <dd class="title b"><a href="{url}" class="red" target="_blank">{title}</a></dd>
                    <dd class="text gray">{value}</dd>
                    <dd><a href="{url}" target="_blank">查看全文&laquo;</a></dd>
                    </dl>
                    </loop>
                </div>
                <h2 class="mt b"><div>{hot_redian}</div></h2>
                <ul class="mode-listA ml mr mb mt mode-listB">
                    <pw id="hot_redian" name="社区热点" stamp="subject" num="8"/>
                    <loop>
                    <li>
                    <span class="gray">{postdate,m-d}</span>
                    <span class="name blue"><a href="u.php?uid={authorid}" target="_blank">{author}</a></span>
                    <a href="{url}" target="_blank" class="f14 black">{title}</a>
                    </li>
                    </loop>
                </ul>
            </div>
        </div>
    	<div class="mode-wid300">
            <div class="mode-h235 bor-gray mb">
            <!--flash开始-->
    <style>
    .pwSlide {border:6px solid #fff;background:#fff;position:relative;width:285px;height:222px;overflow:hidden;text-align:left;}
    .pwSlide a:hover{text-decoration:none;}
    .pwSlide h2 {height:24px;font-size:14px;overflow:hidden;display:block;background:#fff;width:293px;position:absolute;bottom:0px;}
    .pwSlide ul {z-index:2;position:absolute;right:5px;top:180px;}
    .pwSlide ul li {float:left;width:18px;height:13px;line-height:15px;text-align:center;margin-left:1px;background: url($imgpath/focus1.gif) no-repeat;}
    .pwSlide ul li a {display:block;width:18px;height:13px;font-size:10px;font-family:Tahoma;color:#FFFFFF;}
    .pwSlide ul li a:hover, .pwSlide ul li a.sel {color:#fff;text-decoration:none;background: url($imgpath/focus2.gif) no-repeat;}
    </style>

                        <div id="pwSlidePlayer" class="pwSlide" onmouseover="pwSlidePlayer('pause');" onmouseout="pwSlidePlayer('goon');">
                        <pw id="index_flash" name="首页flash" stamp="push" num="6"/>
                        <loop>
    <!--#$tmpCount++;#-->
                        <div id="Switch_$key" style="display:none;">
                        	<div style="height:200px;">
                            <a href="{url}" target="_blank"><img src="{image,288,200}" title="{title}" /></a>
                            </div>
                            <h2><a href="{url}" target="_blank">{title,36}</a></h2>
                        </div>
                        </loop>
    <!--#
    if(empty($tmpCount)){
    $tmpCount = 1;
    #-->
                        <div id="Switch_0">
                            <img src="$pwModeImg/flash-no.gif" style="width:288px;height:200px;" />
                            <h2 class="bdt">赶紧去帖子页里使用推送功能</h2>
                        </div>
    <!--#}#-->
                        <ul id="SwitchNav"></ul>
                        </div>
                    <div class="c"></div>
                    <script type="text/javascript" src="js/picplayer.js"></script>
                    <script language="JavaScript">pwSlidePlayer('play',1,$tmpCount);</script>
            <!--flash结束-->
            </div>
            <div class="mode-boxC">
            <!--热门版块开始-->
				<h2 class="mt b"><div>社区精华</div></h2>
                <ul class="mode-listA ml mr mb mt mode-listB">
                <pw id="degist_index" name="社区精华" stamp="subject" num="8"/>
                    <loop>
                    <li><a href="{url}" title="{title}" target="_blank">{title}</a></li>
                    </loop>
                </ul>
			</div>
        </div>
        <div class="c"></div>
<!--社区新图开始-->
<div class="mode-boxC"><h2><div class="b">社区新图</div></h2></div>
        <div class="mode-pic-new">
            <div class="mode-pic-fr fr" id="LeftArr"></div>
            <div class="mode-pic-fl fl" id="RightArr"></div>
            <div style="width:700px;margin:auto;" id="ISL_Cont_1" class="black">
            	<ul class="mode-list-img img mt">
                <pw id="newimage" name="社区图展" stamp="image" num="10" />
                <loop>
                <li><a href="{url}" title="{title}" target="_blank"><img src="{image,110,80}" height="80" /></a>
                <P><a href="{url}" title="{title}" target="_blank">{title,10}</a></P></li>
                </loop>
                </ul>
            </div>
<script src="mode/area/images/ScrollPic.js" language="javascript"></script>
<SCRIPT language=javascript type=text/javascript>
	var scrollPic_02 = new ScrollPic();
	scrollPic_02.scrollContId   = "ISL_Cont_1";
	scrollPic_02.arrLeftId      = "LeftArr";
	scrollPic_02.arrRightId     = "RightArr";

	scrollPic_02.frameWidth     = 700;
	scrollPic_02.pageWidth      = 140;

	scrollPic_02.speed          = 10;
	scrollPic_02.space          = 10;

	scrollPic_02.initialize();
</SCRIPT>
        </div>
<div class="c"></div>
<!--版块旋环开始-->

<!--
EOT;
foreach ($index_forum as $key => $value) {
$showtype = count($value);
if ($showtype == 1){
	foreach ($value as $kfid => $fiddb) {print <<<EOT
-->
<div class="mode-boxC mt pb">
    <h2><div>
    <a href="thread.php?fid=$kfid" class="fr fn">&raquo;进入版块</a> <span class="b">{$forum[$kfid]['name']}</span>
    </div>
    </h2>
    <div class="mode-box-left bdr pr10 mt">
        <dl class="mode-list-dlC fl img mr ml">
            <dt><a href="{$fiddb[newpic][0][url]}"><img src="{$fiddb[newpic][0][image]}" /></a></dt>
            <dd class="title b"><a href="{$fiddb[newpic][0][url]}" target="_blank">{$fiddb[newpic][0][title]}&nbsp;</a></dd>
            <dd class="text gray">{$fiddb[newpic][0][content]}&nbsp;</dd>
        </dl>
        <ul class="mode-listA mode-listB">
<!--
EOT;
foreach ($fiddb['new'] as $k => $v) {print <<<EOT
-->
            <li>
                <span><a href="u.php?uid=$v[authorid]" target="_blank">$v[author]</a></span>
                <a href="read.php?tid=$v[tid]" target="_blank" class="black">$v[title]</a>
            </li>
<!--
EOT;
}print <<<EOT
-->
        </ul>
    </div>
        <div class="img fr mr ml" style="width:250px;">
<!--
EOT;
foreach ($fiddb['newpic'] as $k => $v) {
if($k == 0)continue;
print <<<EOT
-->
			<dl class="mode-list-dl mt mr">
                <dt><a href="{$v[url]}" target="_blank"><img src="{$v[image]}" /></a></dt>
                <dd class="title blue f14"><a href="{$v[url]}" target="_blank">{$v[title]}</a></dd>
                <dd class="text">{$v[content]}</dd>
                <dd class="s1">{$v[replies]}条回复</dd>
            </dl>
<!--
EOT;
}print <<<EOT
-->

        </div>
        <div class="c"></div>

</div>
<div class="c"></div>
<!--
EOT;
}} elseif ($showtype == 2) {
		$count = 0;
		foreach ($value as $kfid => $fiddb) {$count++;
			$ml = $count == 2 ? 'ml' : '';
print <<<EOT
-->
			<div class="mode-boxC mode-wid400 $ml pb pt">
            	<h2><div><a href="thread.php?fid=$kfid" class="fr fn" target="_blank">&raquo;进入版块</a> <span class="b">{$forum[$kfid]['name']} </span></div></h2>

                	<div class="c"></div>
                    <div class="mode-wid140 bdr mr mt">
                    <ul class="mode-list-img img">
<!--
EOT;
foreach ($fiddb['newpic'] as $k => $v) {print <<<EOT
-->
						<li>
                            <a href="{$v[url]}" target="_blank"><img src="{$v[image]}" /></a>
                            <p><a href="{$v[url]}" target="_blank" class="black">{$v[title]}</a></p>
                        </li>
<!--
EOT;
}print <<<EOT
--></ul>
                    </div>
                    <div class="mode-wid240">
                        <ul class="mode-listA mode-listB mt">
<!--
EOT;
foreach ($fiddb['new'] as $k => $v){print <<<EOT
-->
			             <li>
			                <span><a href="u.php?uid=$v[authorid]" class="blue" target="_blank">$v[author]</a></span>
			                <a href="read.php?tid=$v[tid]" target="_blank" class="black">$v[title]</a>
			             </li>
<!--
EOT;
}print <<<EOT
-->
				        </ul>
				        <div class="c"></div>
				    </div>

				</div>
<!--
EOT;
}print <<<EOT
-->
<div class="c"></div>
<!--
EOT;
	} elseif ($showtype == 3) {
		$count = 0;
		foreach ($value as $kfid => $fiddb) {$count++;
			$mr = $count == 3 ? '' : 'mr2';
print <<<EOT
-->
		<div class="mode-wid260 mode-boxC $mr pb pt">
			<h2><div><a href="thread.php?fid=$kfid" class="fr fn" target="_blank">&raquo;进入版块</a> {$forum[$kfid]['name']}</div></h2>
<!--
EOT;
foreach ($fiddb['newpic'] as $k => $v) {print <<<EOT
-->
				<dl class="mode-list-dl img pt ml mr">
		            <dt><a href="{$v[url]}" target="_blank"><img src="{$v[image]}" /></a></dt>
		            <dd class="title blue f14"><a href="{$v[url]}" target="_blank">{$v[title]}</a></dd>
		            <dd class="text">{$v[content]}</dd>
		            <dd class="s1">{$v[replies]}条回复</dd>
		        </dl>
<!--
EOT;
}print <<<EOT
-->
		        <div class="c"></div>
		        <ul class="mode-listA mode-listB pl pr10">
<!--
EOT;
foreach ($fiddb['new'] as $k => $v){print <<<EOT
-->
		             <li>
		                <span><a href="u.php?uid=$v[authorid]" target="_blank">$v[author]</a></span>
		                <a href="read.php?tid=$v[tid]" target="_blank" class="black">$v[title]</a>11
		             </li>
<!--
EOT;
}print <<<EOT
-->
				</ul>
			    <div class="c"></div>

		</div>
<!--
EOT;
		}
	}
}print <<<EOT
-->
            <div class="c"></div>
            <!--版块导航开始-->
			<div class="mode-boxC mt mode-fg">
				<h2><div class="b">社区地图</div></h2>
                <div class="pl pr10 pb">
				<table cellpadding="0" cellspacing="0">
<!--
EOT;
$a=0;
foreach($catedbs as $k=>$cate){
if($forumdb[$k]){
if($a==0){
print <<<EOT
-->
					<tr>
<!--
EOT;
}print <<<EOT
-->
						<td class="pt pb bdb">
						<h3><div><a href="cate.php?cateid=$k" target="_blank" class="b">$cate</a><span class="fn s3">今天{$pwTPost[$k]}帖</span></div></h3>
						<ul class="black">
<!--
EOT;
$i=0;
foreach($forumdb[$k] as $forums){
if($i>=4)break;
print <<<EOT
-->
								<li><a href="thread.php?fid=$forums[fid]" id="fn_$forums[fid]" title="$forums[stripname]" target="_blank">$forums[name]</a></li>
<!--
EOT;
$i++;
}print <<<EOT
-->
						</ul>
						<div class="c"></div>
<!--
EOT;
if($i>=4){print <<<EOT
-->
						<a href="cate.php?cateid=$k" class="fl mt" target="_blank">&raquo; 更多</a>
<!--
EOT;
}print <<<EOT
-->
						</td>
<!--
EOT;
$a++;
if($a==2){
$a=0;
print <<<EOT
-->
					</tr>
<!--
EOT;
}print <<<EOT
<!--
EOT;
}}print <<<EOT
-->
				</table>
                </div>
            </div>
<!--版块旋环结束-->
	</div>
    <!--右边布局结束-->
    </div>
    </div>
</div>
<!--友情链接-->
<!--#
if($db_indexlink==1){
#-->
        <div id="links">
            <h4 class="s7 bdb">
<!--#
if($db_ifselfshare && $groupid!='guest'){
#-->
                <span class="fr fn black">
                    <a id="selfshare" style="cursor:pointer;" onclick="sendmsg('pw_ajax.php','action=sharelink',this.id)">自助友情链接</a>
                </span>
<!--#}#-->
            友情链接
            </h4>
			<div class="linksimg">
<!--#
empty($sharelink[0]) && $sharelink[0] = array();
foreach($sharelink[0] as $share){
#-->
            $share
			<div class="c"></div>
            <div style="margin:5px 0;border-top:1px dashed #CCCCCC;"></div>
<!--#}#--></div>
            <div class="links">
            $sharelink[1]
            </div>
            <div class="c"></div>
            <h4 class="s7 bdt"><span class="fn black">在线用户<a name="online"></a> - 共 $usertotal 人在线,$userinbbs 位会员,$guestinbbs 位访客,最多 $higholnum 人发生在 $mostinbbstime</span></h4>
        </div>
<!--#}#-->
		<div class="c"></div>
<!--友情链接结束-->
<script type="text/javascript">
function showTabs(id,select,element,css){
	var o = getObj(id);
	var t = o.getElementsByTagName(element);
	for (var i=0;i<t.length;i++) {
		if (t[i].id) {
			var oo = getObj(t[i].id);
			if (t[i].id == select) {
				getObj(t[i].id).className = css;
				getObj('info_'+t[i].id).style.display = '';
			} else {
				getObj(t[i].id).className = '';
				getObj('info_'+t[i].id).style.display = 'none';
			}
		}
	}
	return false;
}
</script>
<!--
EOT;
$head_pop && require PrintEot($head_pop);
?>-->