<!--<?php
foreach($forumdb as $key => $value){
if ($value['forumtype']==6) continue;
print <<<EOT
-->
<div class="box2" style="margin-bottom:10px" style="border-top:2px solid #cfdfe8">
	<div class="cc p-cate-dy" style="padding:0 0 .5em" >
		<h2><div class="fr fn">
			<a href="thread.php?fid=$key">进入版块 &raquo;</a>
			</div>
			<a href="thread.php?fid=$key">$value[name]</a><span class="fn" style="margin-left:3em;">$showsub[$key]</span>
		</h2>
		<div class="p-cate-left">
<!--
EOT;
if($value['forumtype']==2){
print <<<EOT
-->
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="listTableB">
				<tr class="caption">
					<td width="60%" class="bgC">热门活动</td>
					<td width="20%" class="bgC">活动地点</td>
					<td width="20%" class="bgC">截止时间</td>
				</tr>
<!--
EOT;
foreach($value[hot] as $val){
print <<<EOT
-->
				<tr>
						<td><a href="read.php?tid=$val[tid]" target="_blank"><span class="s5">$val[subject]</span></a></td>
						<td>$val[location]</td>
						<td>$val[deadline]</td>
				</tr>
<!--
EOT;
}print <<<EOT
-->
			</table>
<!--
EOT;
}elseif($value['forumtype']==3){
print <<<EOT
-->
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="listTableB">
				<tr class="caption">
					<td width="60%" class="bgC">热门悬赏</td>
					<td width="70" class="bgC">悬赏人</td>
					<td width="70" class="bgC">积分</td>
				</tr>
<!--
EOT;
foreach($value[hot] as $val){
print <<<EOT
-->
				<tr>
					<td><a href="read.php?tid=$val[tid]" target="_blank">$val[subject]</a></td>
					<td><a href="u.php?action=show&uid=$val[authorid]" class="grayB" target="_blank"><span class="s5">$val[author]</span></a></td>
					<td><span class="s0">$val[cbval]</span></td>
				</tr>
<!--
EOT;
}print <<<EOT
-->
			</table>
<!--
EOT;
}elseif($value['forumtype']==4){
$i =0;
print <<<EOT
-->
		<div class="pic-player-box p-cate-left">
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tac" style="table-layout:fixed">
				<tr>
<!--
EOT;
foreach($value[hot] as $val){
print <<<EOT
-->

						<td>
							<a href="read.php?tid=$val[tid]" target="_blank"><img src="$val[icon]" /></a>
							<a href="read.php?tid=$val[tid]" target="_blank">$val[name]</a><br />
							价格：$val[price]
						</td>
<!--
EOT;
$i++;
if($i%3==0){
print <<<EOT
-->
					</tr>
					<tr>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
}print <<<EOT
-->
					</tr>
				</table>
			</div>
<!--
EOT;
}elseif($value['forumtype']==5){
$i =0;
print <<<EOT
-->
			<div class="pic-player-box p-cate-left">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tac" style="table-layout:fixed">
					<tr>
<!--
EOT;
foreach($value[hot] as $val){
print <<<EOT
-->

						<td>
							<p><a href="read.php?tid=$val[tid]" target="_blank"><img src="$val[attachurl]" /></a></p>
							<center><a href="read.php?tid=$val[tid]" target="_blank">$val[subject]</a></center>
						</td>
<!--
EOT;
$i++;
if($i%3==0){
print <<<EOT
-->
					</tr>
					<tr>
<!--
EOT;
}print <<<EOT
-->

<!--
EOT;
}print <<<EOT
-->
					</tr>
				</table>
			</div>
<!--
EOT;
}else{
print <<<EOT
-->
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="listTableB">
				<tr class="caption">
						<td width="*" class="bgC colorA">最近热帖</td>
						<td width="70" class="bgC">作者</td>
				</tr>
<!--
EOT;
foreach($value[hot] as $val){
print <<<EOT
-->
				<tr>
						<td><a href="read.php?tid=$val[tid]" target="_blank">$val[subject]</a> <span class="gray">$val[postdate]</span></td>
						<td><a href="u.php?action=show&uid=$val[authorid]" target="_blank"><span class="s5">$val[author]</span></a></td>
				</tr>
<!--
EOT;
}print <<<EOT
-->
			</table>
<!--
EOT;
}print <<<EOT
-->
		</div>
		<div class="p-cate-right fr">
			<table width="100%" cellpadding="0" cellspacing="0" border="0" class="listTableB">
				<tr class="caption">
					<td class="bgC colorA ">最新精华文章</td>
				</tr>
<!--
EOT;
if ($value[digest]) {
print <<<EOT
-->
<!--
EOT;
foreach($value[digest] as $val){
print <<<EOT
-->
				<tr>
					<td>
						<div><a href="read.php?tid=$val[tid]" target="_blank">$val[subject]</a></div>
						<div style="line-height:1.5em" class="gray" >
							$val[postdate] <a href="u.php?action=show&uid=$val[authorid]" target="_blank"><span class="s5">$val[author]</span></a>
						</div>
					</td>
				</tr>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
}print <<<EOT
-->
			</table>
		</div>
	</div>
</div>

<!--
EOT;
}
?>