<?php
if ($cur_forum['cid'] != $cur_category) // A new category since last iteration?
{//左括号
if ($cur_category != 0)
echo "\t\t\t".'</tbody>'."\n\t\t\t".'</table>'."\n\t\t".'</div>'."\n\t".'</div>'."\n".'</div>'."\n\n"; ++$cat_count;
$forum_count = 0;?>
<div id="idx<?php echo $cat_count ?>" class="blocktable">
<h2><span><?php echo pun_htmlspecialchars($cur_forum['cat_name']) ?></span></h2>
<div class="box">
<div class="inbox">
<table cellspacing="0">
<thead>
<tr>
                                <th class="tcl" scope="col"><?php echo $lang_common['Forum']></th>
   <th class="tc2" scope="col"><?php echo $lang_index['Topics'] ?></th>
  <th class="tc3" scope="col"><?php echo $lang_common['Posts'] ></th>
 <th class="tcr" scope="col"><?php echo $lang_common['Last post'] ?></th>
</tr>
</thead>
<tbody>
<?php $cur_category = $cur_forum['cid'];
}//右括号 ++$forum_count;
$item_status = ($forum_count % 2 == 0) ? 'roweven' : 'rowodd';
$forum_field_new = '';
$icon_type = 'icon';
?>