<?php require($netsFileConfig['bussinessTemplatePackagePath'].'Component/Head_0.php'); ?>
<link href="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Ssheet/User/Community.css" rel="stylesheet" />
<script src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/JScript/User/Community.js" type="text/javascript"></script>
<!-- ------ #Navigation ------ -->
<div class="OutFrame_A Navigation_0"><div><a href="../../../Plus/m_default/Cms/default.php" class="Link1 FBlack1">首页</a>
<span>>></span><a href="../../../Plus/m_default/Comm/postsHome.php" class="Link1 FBlack1">论坛首页</a>
</div></div>
<!-- ------ #Section 0 ------ -->
<div class="OutFrame_A">
<div class="Posts_Public"><a href="../../../Plus/Common/Comm/posts_Public.php" class="Link1 SYellow" target="_blank">发贴</a></div>
<div class="Posts_0_0">
	<?php if($tmpDefault->sUserInfo[0]['Columns']['uitID']['Value']==0){ ?>
	<a href="../../../Plus/Common/User/default.php" class="Link1 FBlack2" target="_blank">用户登陆</a>
	<a href="../../../Plus/Common/User/Register.php" class="Link1 FBlack2" target="_blank">用户注册</a>
	<?php }else{ ?>
	<a href="../../../Plus/Common/User/main.php" class="Link1 FBlack2" target="_blank">欢迎<?php echo($tmpDefault->sUserInfo[0]['Columns']['uitName']['Value']); ?></a>
	<a href="../../../Plus/Common/User/main.php" class="Link1 FBlack2" target="_blank">管理帐号</a>
	<a href="../../../Plus/Common/User/Logout.php" class="Link1 FBlack2">退出登陆</a>
	<?php } ?>
<span class="FStrong">今日新帖：</span><?php echo($tmpDefault->sRecordCount_Today); ?>；<span class="FStrong">帐帖总数：</span><?php echo($tmpDefault->sRecordCount_AllPost); ?>；<span class="FStrong">会员：</span><?php echo($tmpDefault->sRecordCount_User); ?><br />
<span class="FStrong">公告：</span>
	<?php $Coun0=0; foreach($tmpDefault->sData_News as $Row0){ ?>
	<a href="../../../Plus/m_default/Cms/docDetail.php?ID=<?php echo($Row0['cdtID']); ?>" class="Link1 FRed1 <?php echo($Row0['cdtNameStyle']); ?>" target="_blank"><?php echo($Row0['cdtName']); ?></a> <span class="FBlack4">(<?php echo($tmpDefault->sCode->TimeFormat($Row0['cdtCreateTime'],0)); ?>)</span>
	<?php $Coun0++; } ?>
</div></div>
<!-- ------ #Section 1 ------ -->
<div class="OutFrame_A">
<!-- #CENTER -->
<div class="Posts_C">


<!-- ------ #Boards ------ -->
<?php
$tmpParid=2;
$tmpSQL=' SELECT A.copgtID,A.copgtName,A.copgtParid,
	B.copgctSourceR00,B.copgctInfo_Moderator,B.copgctCount_Views,B.copgctCount_Info,B.copgctCount_InfoAll,
	B.copgctCount_Discuss,B.copgctCount_DiscussAll

	FROM {Nets.TableHead}commpostsgroup AS A
	INNER JOIN {Nets.TableHead}commpostsgroupcont AS B ON B.copgctIndexID=A.copgtID
	WHERE 1=1 AND A.copgtRecycle=0 AND A.copgtChecked>1 AND A.copgtParid={Nets.Parid}
	ORDER BY A.copgtOrderBy DESC,A.copgtID DESC ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpSTR=str_replace('{Nets.Parid}',$tmpParid,$tmpSTR);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach ($tmpData0 as $Row0){ ?>
<!-- #Board_<?php echo ($Coun0); ?> -->
<ul class="Posts_1_0">
<li class="Posts_1_1"><a href="../../../Plus/m_default/Comm/postsList.php?ID=<?php echo ($Row0['copgtID']); ?>" class="Link1 FBlue2"><?php echo ($Row0['copgtName']); ?></a></li>
<li class="Posts_1_2"><a href="#Here"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Posts/7.jpg" /></a></li>
<li class="Posts_1_3">分区版主：<?php echo($Row0['copgctInfo_Moderator']); ?></li>
<li class="DClear"></li></ul>
<ul class="Posts_1_8">
<?php
$tmpSTR=str_replace('{Nets.ID}',$Row0['copgtID'],$tmpDefault->sPostsGroupSQL);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun1=0;
foreach ($tmpData0 as $Row1){ ?>
<li class="Posts_1_9"><table class="Posts_1_10" cellpadding="0" cellspacing="6"><tr>
<td class="Posts_1_11"><a href="../../../Plus/m_default/Comm/postsList.php?ID=<?php echo ($Row1['copgtID']); ?>"><img src="<?php echo($tmpDefault->sCode->ImgExist($Row1['copgctSourceR00'],'',0,0)); ?>" /></a></td>
<td class="Posts_1_16">
<a href="../../../Plus/m_default/Comm/postsList.php?ID=<?php echo ($Row1['copgtID']); ?>" class="Link1 FBlue2 FStrong"><?php echo ($Row1['copgtName']); ?></a> (<?php echo($Row1['copgctCount_Info']); ?>)<br />
<span class="Posts_1_6">查看：</span><span class="Posts_1_7"><?php echo($Row0['copgctCount_Views']); ?></span><br />
<span class="Posts_1_6">版主：</span><span class="Posts_1_7"><?php echo($Row0['copgctInfo_Moderator']); ?></span><br />
</td>
</tr></table></li>
<?php $Coun1++; } ?>
<li class="DClear"></li></ul>
<?php $Coun0++; } ?>


</div>
<!-- #RIGHT -->
<div class="Posts_R">
<!-- # -->
<?php $tmpParid=0; ?>
<div class="Posts_10_1"><a href="#Here" class="Link1 FBlue2">热门主题</a></div>
<div class="Posts_10_2"><table>
<?php
$tmpSQL=' SELECT A.coptID,A.coptName
	FROM {Nets.TableHead}commposts AS A
	INNER JOIN {Nets.TableHead}commpostscont AS B ON B.copctIndexID=A.coptID
	WHERE 1=1 AND A.coptRecycle=0 AND A.coptChecked>1
	ORDER BY B.copctHot DESC,A.coptID DESC LIMIT 0,12 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<tr><td class="Posts_10_3"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/icon_7.jpg" /></td><td><a href="../../../Plus/m_default/Comm/postsDetail.php?ID=<?php echo($Row0['coptID']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row0['coptName']); ?></a></td></tr>
<?php $Coun0++; } ?>
</table></div>
<!-- # -->
<div class="Posts_10_1"><a href="#Here" class="Link1 FBlue2">推荐主题</a></div>
<div class="Posts_10_2"><table>
<?php
$tmpSQL=' SELECT A.coptID,A.coptName
	FROM {Nets.TableHead}commposts AS A
	WHERE 1=1 AND A.coptRecycle=0 AND A.coptChecked>1
	ORDER BY A.coptOrderBy DESC,A.coptID DESC LIMIT 0,12 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<tr><td class="Posts_10_3"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/icon_7.jpg" /></td><td><a href="../../../Plus/m_default/Comm/postsDetail.php?ID=<?php echo($Row0['coptID']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row0['coptName']); ?></a></td></tr>
<?php $Coun0++; } ?>
</table></div>

</div>
<div class="DClear"></div></div>

<?php require($netsFileConfig['bussinessTemplatePackagePath'].'Component/End_0.php'); ?>