

{include file="$incpath/forums/user_panel_forums.tpl"}

{* wenn eintraege vorhanden sind *}
{if count($categories)}
{* die liste der kategorien durchgehen *}
{foreach from=$categories item=categorie}
<script type="text/javascript">
<!-- //
$(document).ready(function()
{ldelim}
	$('div.toggles_cat_{$categorie.id}').toggleElements( {ldelim} fxAnimation:'slide', fxSpeed:'normal', className:'togglerboxes',onClick:forums_cat_{$categorie.id}_Closer,onHide:forums_cat_{$categorie.id}_Opener{rdelim} );
{rdelim});
function forums_cat_{$categorie.id}_Opener() {ldelim}$.cookie('xtoggles_cat_{$categorie.id}','opened', {ldelim}expires: 30,path: '{$cookiepath}'{rdelim});}
function forums_cat_{$categorie.id}_Closer() {ldelim}$.cookie('xtoggles_cat_{$categorie.id}', '', {ldelim}expires: 30,path: '{$cookiepath}'{rdelim});}
// -->
</script>

{assign var=cnx_id value=$categorie.id}
{assign var=cnx value=xtoggles_cat_$cnx_id}

<div class="round" id="cat_{$categorie.id}">
<div class="toggles_cat_{$categorie.id}{if $smarty.cookies.$cnx!='opened'} opened{/if}"  title="{$categorie.title|koobispecialchars}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;">
<div class="forum_header_bolder">
<a title="{$categorie.title|koobispecialchars}" class="forum_links_cat" href="{$categorie.link}&amp;t={$categorie.title|koobispecialchars|seotitle}">{$categorie.title|koobispecialchars}</a>
{if $categorie.comment}<br />{$categorie.comment}{/if}
</div>
   
	
          <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>
              <td class="forum_header ">&nbsp;</td>
              <td class="forum_header ">{#Forums_ForumTitle#}</td>
              <td align="center" class="forum_header ">{#Forums_Header_lastpost#}</td>
              <td align="center" class="forum_header ">{#Forums_Showforums_threads#}</td>
              <td align="center" class="forum_header ">{#Forums_Showforums_posts#}</td>
            </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 title="{$forum.title|koobispecialchars}{if $forum.comment} / {$forum.comment|koobispecialchars}{/if}" class="forum_links" href="{$forum.link}&amp;t={$forum.title|koobispecialchars|seotitle}">{$forum.title|koobispecialchars}</a>
                <div class="f_info_comment">{$forum.comment|koobispecialchars}</div>
                <!-- unterforen anzeigen -->
				{if count($forum.subforums)}
                <div>
				<span class="f_info_comment"> {#Forums_Label_subforums#}:</span>&nbsp;
				{foreach from=$forum.subforums item=subforum name="sf"} <a class="forum_links_small" href="{$subforum.link}&amp;t={$subforum.title|koobispecialchars|seotitle}">{$subforum.title|koobispecialchars}</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">				
{if $forum.last_post->datum|date_format:$config_vars.DateFomatSimple == $smarty.now|date_format:$config_vars.DateFomatSimple}
{#today#},&nbsp;{$forum.last_post->datum|date_format:'%H:%M'}
{else}
{$forum.last_post->datum|date_format:$config_vars.DateFomat}
{/if}

				 <br />
				{if $forum.last_post->user_regdate < 2}
				  {#Guest#}
				  {else}
                  {if $forum.last_post->Geloescht==1}
                  {fetchusername userid=$forum.last_post->uid}
                  {else}
				  <a title="{#Forums_ShowUserProfile#}" href="index.php?p=user&amp;id={$forum.last_post->uid}&amp;area={$area}" class="forum_links_small">{fetchusername userid=$forum.last_post->uid}</a>
				  {/if}
                  {/if}
				  <a title="{#Forums_GotoLastPost#}" href="index.php?p=showtopic&amp;toid={$forum.last_post->topic_id}&amp;fid={$forum.id}&amp;page={$forum.last_post->page}&amp;t={$forum.last_post->title|koobispecialchars|seotitle}#pid_{$forum.last_post->id}"><img src="{$imgpath_forums}post_latest.png" alt="{#Forums_GotoLastPost#}" hspace="2" border="0" class="absmiddle" /></a>
                       <br />                                   
				  <a title="{$forum.last_post->title|koobispecialchars}" class="forum_links_small" href="index.php?p=showtopic&amp;toid={$forum.last_post->topic_id}&amp;fid={$forum.id}&amp;t={$forum.last_post->title|koobispecialchars|seotitle}">{$forum.last_post->title|truncate:25|koobispecialchars}</a>
				 </div>
				 {/if}
			  </td>
              <td class="forum_info_main" 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>


{/foreach}
<br style="clear:both" />
<table width="100"  border="0" align="center" cellpadding="3" cellspacing="0">
  <tr>
    <td nowrap="nowrap" class="forum_info_main"><img src="{$imgpath}/statusicons/forum_new.png" alt="{#Forums_NewPostings#}" hspace="2"  class="absmiddle" /> {#Forums_NewPostings#}</td>
    <td nowrap="nowrap" class="forum_info_main"><img src="{$imgpath}/statusicons/forum_old.png" alt="{#forum_old_messages#}" hspace="2"  class="absmiddle" />{#Forums_NoNewPostings#}</td>
    <td nowrap="nowrap" class="forum_info_main"><img src="{$imgpath}/statusicons/forum_old_lock.png" alt="{#Forums_IsClosed#}" hspace="2" class="absmiddle" />{#Forums_IsClosed#} </td>
  </tr>
</table>

{* keine kategorien vorhanden *} {else} <strong>{#Forums_EmptyForum#}</strong> {/if} 

{include file="$incpath/forums/forums_footer.tpl"}