<table id="category_$cat[fid]" summary="category$cat[fid]" cellspacing="0" cellpadding="0" style="$collapse['category_'.$cat[fid]]">
<!--{if !$cat['forumcolumns']}-->
<thead class="category">
<tr>
<th>{lang forum_name}</th>
<td class="nums">{lang forum_threads}</td>
<td class="nums">{lang forum_posts}</td>
<td class="lastpost">{lang forum_lastpost}</td>
</tr>
</thead>
<!--{loop $cat[forums] $forumid}-->
<!--{eval $forum=$forumlist[$forumid];}-->
<tbody id="forum$forum[fid]">
<tr>
<th$forum[folder]>
$forum[icon]
<h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: $forum[todayposts])</em><!--{/if}--></h2>
<!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->
<!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
<!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><p class="moderators">{lang forum_moderators}: $forum[moderators]</p><!--{else}--><span class="dropmenu" id="mod$forum[fid]" >{lang forum_moderators}</span><ul class="moderators popupmenu_popup" id="mod$forum[fid]_menu" style="display: none">$forum[moderators]</ul><!--{/if}--><!--{/if}-->
</th>
<td class="nums">$forum[threads]</td>
<td class="nums">$forum[posts]</td>
<td class="lastpost">
<!--{if $forum['permission'] == 1}-->
{lang private_forum}
<!--{else}-->
<!--{if is_array($forum['lastpost'])}-->
<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{eval echo cutstr($forum[lastpost][subject], 40)}</a>
<cite>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite>
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</td>
</tr>
</tbody>
<!--{/loop}-->
<!--{else}-->
<tr>
<!--{loop $cat['forums'] $forumid}-->
<!--{eval $forum=$forumlist[$forumid];}-->
<!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
</tr></tbody>
<!--{if $forum['orderid'] < $cat['forumscount']}-->
<tbody><tr>
<!--{/if}-->
<!--{/if}-->
<th width="$cat[forumcolwidth]"{$forum[folder]}>
<h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: $forum[todayposts])</em><!--{/if}--></h2>
<p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p>
<p>{lang forum_lastpost}:
<!--{if is_array($forum['lastpost'])}-->
<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][dateline]</a>
{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
</p>
</th>
<!--{/loop}-->
$cat['endrows']
<!--{/if}-->
</table>
</div>
<div id="ad_intercat_$key"></div>
<!--{/if}-->
<!--{/loop}-->
<!--{if $_DCACHE['forumlinks']}-->
<div class="box">
<span class="headactions"><img id="forumlinks_img" src="{IMGDIR}/$collapseimg[forumlinks]" alt="" /></span>
<h4>{lang board_links}
<table id="category_$cat[fid]" summary="category$cat[fid]" cellspacing="0" cellpadding="0" style="$collapse['category_'.$cat[fid]]">
<!--{if !$cat['forumcolumns']}-->
<thead class="category">
<tr>
<th>{lang forum_name}</th>
<td class="nums">{lang forum_threads}</td>
<td class="nums">{lang forum_posts}</td>
<td class="lastpost">{lang forum_lastpost}</td>
</tr>
</thead>
<!--{loop $cat[forums] $forumid}-->
<!--{eval $forum=$forumlist[$forumid];}-->
<tbody id="forum$forum[fid]">
<tr>
<th$forum[folder]>
$forum[icon]
<h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: $forum[todayposts])</em><!--{/if}--></h2>
<!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->
<!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
<!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><p class="moderators">{lang forum_moderators}: $forum[moderators]</p><!--{else}--><span class="dropmenu" id="mod$forum[fid]" >{lang forum_moderators}</span><ul class="moderators popupmenu_popup" id="mod$forum[fid]_menu" style="display: none">$forum[moderators]</ul><!--{/if}--><!--{/if}-->
</th>
<td class="nums">$forum[threads]</td>
<td class="nums">$forum[posts]</td>
<td class="lastpost">
<!--{if $forum['permission'] == 1}-->
{lang private_forum}
<!--{else}-->
<!--{if is_array($forum['lastpost'])}-->
<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{eval echo cutstr($forum[lastpost][subject], 40)}</a>
<cite>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite>
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</td>
</tr>
</tbody>
<!--{/loop}-->
<!--{else}-->
<tr>
<!--{loop $cat['forums'] $forumid}-->
<!--{eval $forum=$forumlist[$forumid];}-->
<!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
</tr></tbody>
<!--{if $forum['orderid'] < $cat['forumscount']}-->
<tbody><tr>
<!--{/if}-->
<!--{/if}-->
<td width="$cat[forumcolwidth]"{$forum[folder]}><div class="forum_ico">$forum[icon]</div>
<span class="foruminfo">{lang index_today}: <label style="color:#ff6600">$forum[todayposts]</label>, {lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</span>
<p class="subject">┌ <a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts]}--><!--{/if}--></p>
<p>├ $forum[description]</p>
<p class="lastpost">└ {lang forum_lastpost}:
<!--{if is_array($forum['lastpost'])}-->
<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{eval echo cutstr($forum[lastpost][subject], 36)}</a>
{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
<!--{else}-->
{lang never}
<!--{/if}-->
</p>
</th>
<!--{/loop}-->
$cat['endrows']
<!--{/if}-->
</table>
</div>
<div id="ad_intercat_$key"></div>
<!--{/if}-->
<!--{/loop}-->
<!--{if $_DCACHE['forumlinks']}-->
<div class="box">
<span class="headactions"><img id="forumlinks_img" src="{IMGDIR}/$collapseimg[forumlinks]" alt="" /></span>
<h4>{lang board_links}
p.subject{ font-weight:bold}
span.foruminfo{ float:right;font-weight:normal; color: #999}
p.lastpost{ }
div.forum_ico{ float:left;padding:2px 5px 2px 0;}
img.threadpic{ border:0; vertical-align:middle}