
{strip}
{if $smarty.request.cid!=''}
<div style="width: 100%; height: auto; padding: 5px;">
<a href="index.php?p=showforums&amp;area={$area|default:'1'}">{$lang.forumtitle}</a>
</div>
{/if}

{if $ugroup != 2}
<p align="center">
<a href="index.php?p=forum&amp;action=print&amp;what=subscription&amp;area={$area|default:'1'}">{$lang.show_all_abos}</a>
&nbsp;|&nbsp;
<a href="index.php?p=forum&amp;action=show&amp;unit=h&amp;period=24&amp;area={$area|default:'1'}">{$lang.forum_links_show_last_active}</a> 
&nbsp;|&nbsp;
<a href="index.php?p=forum&amp;action=print&amp;what=posting&amp;id={$uid}&amp;area={$area|default:'1'}">{$lang.show_own_posts}</a>
</p>
{/if}

{* wenn eintraege vorhanden sind *}
{if count($categories)}
{* die liste der kategorien durchgehen *}
{foreach from=$categories item=categorie}
<table width="100%"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><div class="forum_frame " id="cat_{$categorie.id}">
        <table border="0" cellpadding="0" cellspacing="1" class="forum_tableborder" style="width: 100%">
          <tr>
            <td class="forum_header_bolder"><a class="forum_links_cat" href="{$categorie.link}&amp;area={$area|default:'1'}">{$categorie.title}</a> {if $categorie.comment}<br />
              <small>{$categorie.comment}</small>{/if} </td>
            <td class="forum_toggle"><div align="center"><img border="0" alt="{$lang.f_toggle_this}" id="img_{$categorie.id}" src="templates/{$theme}/img/page/{$categorie.image|default:"minus.gif"}" 
                onmouseover="this.style.cursor = 'pointer'"
                onclick="
                    MWJ_changeDisplay('id{$categorie.id}', MWJ_getStyle( 'id{$categorie.id}', 'display' ) ? '' : 'none');
                    koobi4_toggleImage('img_{$categorie.id}', this.src);
                    koobi4_setCookie('categories', 'id{$categorie.id}');" /> </div></td>
          </tr>
        </table>
        <div id="id{$categorie.id}" style="display: {$categorie.display};">
          <table width="100%" border="0" cellpadding="0" cellspacing="1" class="forum_tableborder">
            {* wenn foren in kategorie vorhanden sind *} {if count($forums[$categorie.title]) gt 0}
            <tr>
              <th class="forum_header ">&nbsp;</th>
              <td class="forum_header ">{$lang.f_header_forum}</td>
              <th nowrap="nowrap" class="forum_header ">{$lang.f_header_last_post}</th>
              <th class="forum_header ">{$lang.f_header_default}</th>
              <th class="forum_header ">{$lang.f_header_posts}</th>
            </tr>
            {/if} {* alle foren zur kategorie ausgeben *} {foreach from=$forums[$categorie.title] item=forum}
            <tr>
              <td class="forum_info_icon">{$forum.statusicon}</td>
              <td class="forum_info_main"><a class="forum_links" href="{$forum.link}&amp;area={$area|default:'1'}">{$forum.title}</a>
                <div class="f_info_comment">{$forum.comment|strip_tags}</div>
                {* unterforen anzeigen *} {if count($forum.subforums)}
                <div> <span class="f_info_comment"> {$lang.f_lbl_subforums}:</span>&nbsp;
				{foreach from=$forum.subforums item=subforum name="sf"} <a class="forum_links_small" href="{$subforum.link}&amp;area={$area|default:'1'}"><small>{$subforum.title|strip_tags}</small></a>
				{if !$smarty.foreach.sf.last}
				,&nbsp;
				{/if}
				{/foreach}
			    </div>
                {/if} </td>
              <td width="15%" nowrap="nowrap" class="forum_info_meta">
			  	{if $forum.last_post->topic_id != ""}
		  	    <div align="right">
				  {$forum.last_post->datum|date_format:"%Y.%m.%d %H:%M"}<br />
				
				  {if $forum.last_post->user_regdate < 2}
				  {$lang.gguest}
				  {else}
				  <a href="index.php?p=user&amp;id={$forum.last_post->uid}&amp;area={$area|default:'1'}" class="forum_links_small">{fetchusername userid=$forum.last_post->uid}</a>
				  {/if}
				  <a href="index.php?p=showtopic&amp;toid={$forum.last_post->topic_id}&amp;pp=15&amp;page={$forum.last_post->page}#pid_{$forum.last_post->id}&amp;area={$area|default:'1'}">
				  	<img src="templates/{$theme}/img/forum/post_latest.gif" alt="{$lang.f_latest_post}" hspace="2" border="0" class="absmiddle" />
				  </a>
				  <br />
				  <a href="index.php?p=showtopic&amp;toid={$forum.last_post->topic_id}&amp;area={$area|default:'1'}">{$forum.last_post->title|truncate:20:" ...":true}</a>
				 </div>
				 {/if}
			  </td>
              <td class="forum_info_meta" width="10%"><div align="center">{if $forum.tcount == 0}-{else}{$forum.tcount}{/if}</div></td>
              <td class="forum_info_meta" width="10%"><div align="center">{if $forum.pcount == 0}-{else}{$forum.pcount}{/if}</div></td>
            </tr>
            {/foreach}
          </table>
        </div>
      </div></td>
  </tr>
</table>
<br />
{/foreach}

<table width="100"  border="0" align="center" cellpadding="3" cellspacing="0">
  <tr>
    <td nowrap="nowrap" class="forum_info_main"><img src="templates/{$theme}/img/statusicons/forum_new.gif" alt="{$lang.forum_new_messages}" hspace="2"  class="absmiddle" /> {$lang.forum_new_messages}</td>
    <td nowrap="nowrap" class="forum_info_main"><img src="templates/{$theme}/img/statusicons/forum_old.gif" alt="{$lang.forum_old_messages}" hspace="2"  class="absmiddle" />{$lang.forum_old_messages}</td>
    <td nowrap="nowrap" class="forum_info_main"><img src="templates/{$theme}/img/statusicons/forum_old_lock.gif" alt="{$lang.forum_closed}" hspace="2" class="absmiddle" />{$lang.forum_closed} </td>
  </tr>
</table>

{* keine kategorien vorhanden *} {else} <strong>{$lang.f_emptyforum}</strong> {/if} {/strip}