{include file="$incpath/forums/user_panel_forums.tpl"}
 {if $smarty.request.print!=1}
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td> {include file="$incpath/forums/tree.tpl"} </td>
   
    <td align="right">
	{if $ugroup!=2}{if $canabo==1} <a href="index.php?p=forum&amp;action=addsubscription&amp;t_id={$topic->id}">{#Forums_ThreadAboNow#}</a> {else} <a href="index.php?p=forum&amp;action=unsubscription&amp;t_id={$topic->id}">{#Forums_ThreadAboCancel#}</a>{/if}&nbsp;|&nbsp;{/if}<a href="{$printlink}" target="_blank">{#Forums_PrintPage#}</a>
	 </td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
  <tr>
    <td colspan="2"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>
        {*<h2><strong>{$topic->title|koobispecialchars}</strong></h2>*}
        {if $topic->status == 1}
        	<img src="{$imgpath_forums}topic_closed.png" alt="{#Forums_TopicClosed#}" border="0" class="absmiddle" />
        {else}
        {if ($permissions.6 == 1) || ($permissions.7 == 1) }
        	<div class="forum_buttons_big"><a href="index.php?p=newpost&amp;toid={$smarty.request.toid}"><img src="{$imgpath_forums}reply.png" border="0" alt="{#Forums_Reply_this#}" />{#Forums_Reply_this#}</a></div>
        {/if}
        {/if}
		  </td>
       
		<td align="right">
		{$pages}		</td>
        </tr>
    </table></td>
  </tr>
</table>
<br />
{/if}
{foreach from=$postings item=post name=postings}
<div class="forum_posts">

  <div class="forum_post_header"> {if $post->datum|date_format:$config_vars.DateFomatSimple == $smarty.now|date_format:$config_vars.DateFomatSimple} <strong>{#today#},&nbsp;{$post->datum|date_format:'%H:%M'}</strong> {else} <strong>{$post->datum|date_format:$config_vars.DateFomatExtended}</strong> {/if} 
  </div>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                {if $post->poster->Geloescht!=1 && $post->poster->avatar && $smarty.request.print!=1}
                <td class="forum_post_header_avatar">
                 <!-- AVATAR -->
                {$post->poster->avatar}
                <!-- AVATAR -->
                </td>
                {/if}
                <td class="forum_post_header_usernameinf">
                {if $post->poster->Geloescht==1}
                  <h2>{$post->poster->uname}</h2>
                  <br />
                  {#Forums_DeletedUser#}
                  {else}
                  {if $post->poster->user_regdate > 0 && $post->poster->ugroup!=2}
                   {assign var=anchid value=$post->anchorId}
                    {if $smarty.request.print==1}
                    <h2>{$post->poster->uname}</h2> {if $post->poster->user_regdate > 0 && $post->poster->ugroup!=2}{getonlinestatus uname=$post->poster->uname}{/if}
                    {else}
                    <h2><a name="{$anchid}" id="anchor_{$anchid}" {popup anchory=20 anchor=anchor_$anchid width=280 trigger="onclick" timeout="5000" sticky=true text=$post->poster->UserPop} rel="nofollow" href="javascript:void(0);">{$post->poster->uname}</a></h2>
                    <!-- Online-Status -->
                    {if $post->poster->user_regdate > 0 && $post->poster->ugroup!=2}{getonlinestatus uname=$post->poster->uname}{/if}
                    <!-- Online-Status -->
                    {/if}
                    <br />
                    {$post->poster->groupname_single}
                    {else} <strong>{$post->poster->groupname_single}</strong> {/if}
                    {if $smarty.request.print!=1}
                    {if $post->poster->user_regdate > 0 && $post->poster->ugroup!=2}
                    {if $post->poster->Team != 1}{$post->poster->rank|escape:'html'|sslash}{/if} <br />
                    {if $post->poster->uid == $topic->uid && !$smarty.foreach.postings.first}
                    
                    {#Forums_Label_topic_starter#} <br />
                    {/if}
                     {/if}
                    {/if} <a name="pid_{$post->id}"></a> 
                  {/if}                
                  </td>
                  <td valign="top" class="forum_post_header_userinfright">
                  <!-- Rechte Spalte (Anzahl Beitraege - Mitglied seit... -->
                  {if $post->poster->Geloescht!=1}
                    {if $post->poster->user_regdate > 0 && $post->poster->ugroup!=2}
                    {#Forums_Field_posts#}: {$post->poster->user_posts} <br />
                    {#Forums_Field_membersince#}: {$post->poster->user_regdate|date_format:$config_vars.DateFomatSimple}
                    {/if}
                  {else}&nbsp;{/if}
                  <!-- Rechte Spalte (Anzahl Beitraege - Mitglied seit... --> 
                  </td>
              </tr>
            </table>          
      
      <div class="forum_post_posting">
      {if $post->title != ""} <strong> {$post->title|koobispecialchars} </strong> <br />{/if}
		
        {$post->message}
        
        {if count($post->files)} <br />
        <fieldset style="width:90%">
        <legend> {#Forums_Attachments#} </legend>
        <table border="0" cellpadding="1" cellspacing="0">
          {foreach from=$post->files item=file name="post"}
          <tr>
            <td><img hspace="2" vspace="4" src="{$imgpath_forums}attachment.gif" alt="" class="absmiddle" /> <a href="index.php?p=forum&amp;action=getfile&amp;id={$file->id}&amp;f_id={$topic->forum_id}&amp;t_id={$topic->id}"> {$file->orig_name} </a> </td>
            <td nowrap="nowrap"><small>&nbsp;&nbsp;(
              {$file->hits}
              {#Forums_HitsDownloads#}
              |
              {get_attachment_size file=$file->filename}
              )</small> </td>
          </tr>
          {/foreach}
        </table>
        </fieldset>
        {/if}
        
        
        {if $post->use_sig==1 && $post->uid!=0 && $post->poster->user_sig!=''} <br />
        <br />
        <br />
        <div class="user_sig_bar"></div>
        <div class="user_sig">{$post->poster->user_sig|specialchars}</div>
        {/if} 
        </div>
    {if $smarty.request.print!=1}
    <table width="100%">
        <tr>
      <td align="right">
      {strip}
	  {if ($post->opened=="2") && ($ismod == 1)}
        {if !$smarty.foreach.postings.first}
        {assign var="ispost" value=1}
        {/if}
		<div class="forum_buttons_small"><a title="{#Forums_f_unlock#}" href="index.php?p=showtopic&amp;toid={$smarty.request.toid}&amp;fid={$smarty.request.fid}&amp;open=1&amp;id={$post->id}&amp;ispost={$ispost}">{#Forums_f_unlock#}</a></div>
		{/if}
		{if ($permissions.6 == 1) || ($permissions.7 == 1)}
        <div class="forum_buttons_small"><a title="{#Forums_Reply#}" href="index.php?p=newpost&amp;toid={$smarty.request.toid}&amp;pp=15&amp;num_pages={$next_site}"><img class="absmiddle" src="{$imgpath_forums}reply_small.png" border="0" alt="{#Forums_Reply#}" />{#Forums_Reply#}</a></div>{/if}
        {if $ugroup!=2}<div class="forum_buttons_small"><a title="{#Forums_PostQuote#}" href="index.php?p=newpost&amp;action=quote&amp;pid={$post->id}&amp;toid={$smarty.request.toid}"><img class="absmiddle" src="{$imgpath_forums}quote_small.png" border="0" alt="{#Forums_PostQuote#}" />{#Forums_PostQuote#}</a></div>{/if}
       
        {if ($permissions.10 == 1 && $post->poster->uid==$smarty.session.benutzer_id) || $permissions.16==1 || $smarty.session.user_group==1}
        <div class="forum_buttons_small"><a title="{#Forums_f_edit#}" href="index.php?p=newpost&amp;action=edit&amp;pid={$post->id}&amp;toid={$smarty.request.toid}"><img src="{$imgpath_forums}edit_small.png" border="0" alt="{#Forums_f_edit#}" />{#Forums_f_edit#}</a></div>{/if}
        <div class="forum_buttons_small"><a title="{#Forums_PrintPost#}" href="index.php?p=showtopic&amp;print=1&amp;print_post={$post->id}&amp;toid={$smarty.request.toid}&amp;t={$topic->title|seotitle|koobispecialchars}"><img src="{$imgpath_forums}print_small.png" border="0" alt="{#Forums_PrintPost#}" />{#Forums_PrintPost#}</a></div> 
        
        {if ($permissions.11 == 1 && $post->poster->uid==$smarty.session.benutzer_id) || $permissions.15==1 ||  $smarty.session.user_group==1}
        <div class="forum_buttons_small"><a title="{#Forums_DelButton#}" onclick="return confirm('{#Forums_DelConfirm#}')" href="index.php?p=delpost&amp;pid={$post->id}&amp;toid={$smarty.request.toid}"><img src="{$imgpath_forums}delete_small.png" border="0" alt="{#Forums_DelButton#}" />{#Forums_DelButton#}</a></div>{/if}
        {/strip}        
       </td>
    </tr>
  </table>
   {/if}
</div>
{/foreach}
  
  
{if $smarty.request.print!=1}
{if $pages}
<div align="right">
{$pages}
</div>
<br />
{/if}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> 
   {if $topic->status == 1}<img src="{$imgpath_forums}topic_closed.png" alt="{#Forums_TopicClosed#}" border="0" class="absmiddle" />{else}
    {if ($permissions.6 == 1) || ($permissions.7 == 1) }
    <div class="forum_buttons_big"><a href="index.php?p=newpost&amp;toid={$smarty.request.toid}"><img src="{$imgpath_forums}reply.png" border="0" alt="{#Forums_Reply_this#}" />{#Forums_Reply_this#}</a></div>
    <div class="clear"></div>
    {/if}
    {/if}
    <br /><br />
    {if $ugroup!=2}
    {if $canabo==1} <a class="forumlinks" href="index.php?p=forum&amp;action=addsubscription&amp;t_id={$topic->id}"> {#Forums_ThreadAboNow#}</a> {else} <a class="forumlinks" href="index.php?p=forum&amp;action=unsubscription&amp;t_id={$topic->id}"> {#Forums_ThreadAboCancel#}</a> {/if}&nbsp;|&nbsp;
    {/if} <a title="{#Forums_PrintPost#}" class="forumlinks" href="{$printlink}">{#Forums_PrintPage#}</a> {if $topic->next_topic->id != ""}&nbsp;|&nbsp;&nbsp;<a class="forumlinks" href="index.php?p=showtopic&amp;toid={$topic->next_topic->id}&amp;fid={$smarty.request.fid|default:$topic->forum_id}&amp;t={$topic->next_topic->title|koobispecialchars|seotitle}">{#Forums_ShowNextTopic#}</a>{/if}
    {if $topic->prev_topic->id != ""}&nbsp;|&nbsp;&nbsp;<a class="forumlinks" href="index.php?p=showtopic&amp;toid={$topic->prev_topic->id}&amp;fid={$smarty.request.fid|default:$topic->forum_id}&amp;t={$topic->prev_topic->title|koobispecialchars|seotitle}">{#Forums_ShowLastTopic#}</a>{/if}    </td>
  <td align="right" valign="top"> 
  {if ($permissions.9 == 1) && ($display_rating == 1) }
    {include file="$incpath/forums/rating.tpl"}
   {else}&nbsp;{/if}   </td>
</tr>
</table>
<div class="infobox">
<strong>{#Forums_JumpTo#}</strong><br />
{include file="$incpath/forums/selector.tpl"}

   
{if ($permissions.17 == 1) || ($permissions.18 == 1) || ($permissions.14 == 1) || ($permissions.21 == 1) || ($permissions.12 == 1) || ($permissions.20 == 1) || ($permissions.19 == 1) }
<br />
<br />
<strong>{#Forums_AdminOptionsSelections#}</strong>
<br />
<select id="move_sel" name="select" class="input" style="width:200px" onchange="eval(this.options[this.selectedIndex].value);selectedIndex=0;">
          
        
        {if $topic->status eq 1}
        {if ($permissions.13 == 1) || ($permissions.18 == 1)}
        
        
          <option value="location.href='index.php?p=opentopic&amp;fid={$topic->forum_id}&amp;toid={$smarty.request.toid}';"> {#Forums_OpenTopic#} </option>
          
        
        {/if}
        {else}
        {if ($permissions.13 == 1) || ($permissions.18 == 1)}
        
        
          <option value="location.href='index.php?p=closetopic&amp;fid={$topic->forum_id}&amp;toid={$smarty.request.toid}';"> {#Forums_CloseTopic#} </option>
          
        
        {/if}
        {/if}
        {if ($permissions.14 == 1) || ($permissions.21 == 1)}
        
        
          <option value="if(confirm('{#Forums_ConfirmDelTopic#}')) location.href='index.php?p=deltopic&amp;fid={$topic->forum_id}&amp;toid={$smarty.request.toid}';"> {#Forums_DeleteTopicNow#} </option>
          
        
        {/if}
        {if ($permissions.20 == 1) || ($permissions.12 == 1)}
        
        
          <option value="location.href='index.php?p=move&amp;item=t&amp;id={$smarty.request.toid}&amp;fid={$topic->forum_id}';"> {#Forums_MoveTopic#} </option>
          
        
        {/if}
        {if $permissions.19 == 1}
        
        
          <option value="location.href='index.php?p=forum&amp;action=change_type&amp;id={$smarty.request.toid}&amp;fid={$topic->forum_id}';"> {#Forums_ChangeTypePost#} </option>
          
        
        {/if}
      
      
        </select>
        <input onclick="eval(document.getElementById('move_sel').value);" type="button" class="button" value="{#Forums_ButtonGoTo#}" />
      
      {else}
      &nbsp;
      {/if}
</div>

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