
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>
	
	{*
	<span class="forum_navi">
    {$navigation}
     </span>
	 *}
	 
{include file='forums/tree.tpl'}
	 
	  </td>
    <td>
	
	<div align="right">
        {if $topic->status == 1}
        <img src="templates/{$theme}/img/forum/closed.gif" alt="{$lang.f_isclosed}" border="0" class="absmiddle" />
        {else}
        {if ($permissions.6 == 1) || ($permissions.7 == 1) }
        <a class="forum_links" href="index.php?p=newpost&amp;toid={$smarty.get.toid}&amp;area={$area|default:'1'}"><img src="templates/{$theme}/img/forum/answer.gif" alt="{$lang.f_reply_this}" border="0" class="absmiddle" /></a>
        {/if}
        {/if}
      </div></td>
  </tr>
  <tr>
    <td>{$pages}
    </td>
    <td><img src="templates/{$theme}/img/page/pixel.gif" alt="" width="4" height="38"></td>
  </tr>
  <tr>
    <td colspan="2"><img src="templates/{$theme}/img/page/pixel.gif" alt="" width="4" height="4"></td>
  </tr>
</table>
<table border="0" cellpadding="4" cellspacing="1" class="forum_tableborder" style="width: 100%;">
  <tr>
    <td colspan="2" class="forum_header_bolder"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><strong>
            {$topic->title|escape:'html'|sslash}
            </strong></td>
          <td><div align="right">
		  {if $ugroup!=2}
              {if $canabo==1}
              <a class="forumlinks" href="index.php?p=forum&amp;action=addsubscription&amp;t_id={$topic->id}&amp;area={$area|default:'1'}"><small>
              {$lang.forum_links_subscription}
              </small></a>
              {else}
              <a class="forumlinks" href="index.php?p=forum&amp;action=unsubscription&amp;t_id={$topic->id}&amp;area={$area|default:'1'}"><small>
              {$lang.forum_links_unsubscription}
              </small></a>
              {/if}
&nbsp;|&nbsp;
{/if}
<a class="forumlinks" href="{$printlink}" target="_blank"><small>
              {$lang.printpage}
              </small></a> </div></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <th class="forum_header">{$lang.f_header_author}</th>
    <th class="forum_header">{$lang.f_header_post}</th>
  </tr>
{foreach from=$postings item=post name=postings}
  <tr class="{cycle name='firstsecond' values='forum_post_first,forum_post_second'}">
    <td valign="top">
{if $post->poster->user_regdate > 0 && $post->poster->ugroup!=2}
	{getonlinestatus uname=$post->poster->uname}
     <small><a href="index.php?area={$area}&amp;p=user&amp;id={$post->poster->uid}&amp;area={$area|default:'1'}">
      {$post->poster->uname}
      </a><br />
	  {$post->poster->groupname_single}
{else}
<strong>{$post->poster->groupname_single}</strong>
<br /><br /><br /><br />
{/if}


{if $post->poster->user_regdate > 0 && $post->poster->ugroup!=2}
	  <br />
	  {$post->poster->rank|escape:'html'|sslash}
      {if $post->poster->avatar}
      <br />
      {$post->poster->avatar}
      <br />
      {/if}
      <p>
        {if $post->poster->uid == $topic->uid && !$smarty.foreach.postings.first}
        {$lang.f_lbl_topic_starter}
        <br />
        {/if}
      </p>


{$lang.f_field_posts}
&nbsp;
{$post->poster->user_posts}
<br />
{$lang.f_field_membersince}
&nbsp;
{$post->poster->regdate}
{/if}
 </small>
 
 
 </td>
    <td width="75%" valign="top"><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed; word-wrap: break-word">
<tr><td valign="top">{if $post->title != ""}
      <strong>
        {$post->title}
        </strong> 
		<br />
      {/if}
      {$post->message}
      {if count($post->files)}
	  <br />
      <fieldset style="width:90%">
      <legend>
      {$lang.forum_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="templates/{$theme}/img/forum/attach.gif" alt="" class="absmiddle" />&nbsp;&nbsp;<a href="index.php?p=forum&amp;action=getfile&amp;id={$file->id}&amp;f_id={$topic->forum_id}&amp;t_id={$topic->id}&amp;area={$area|default:'1'}">
            {$file->orig_name}
            </a> </td>
          <td nowrap="nowrap"><small>&nbsp;&nbsp;(
            {$file->hits}
            {$lang.hits}
            |
            {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}</div>
  {/if}
    </td></tr></table>
</td>
  </tr>
 <tr class="{cycle name='firstseconds' values='forum_post_first,forum_post_second'}">
    <td><a name="pid_{$post->id}"></a>
      {$post->datum|date_format:"%Y.%m.%d %H:%M"}</td>
    <td><div align="right">
        {if ($post->opened=="2") && ($ismod == 1)}
        {if !$smarty.foreach.postings.first}
        {assign var="ispost" value=1}
        {/if}
        <a 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}&amp;area={$area|default:'1'}"><img src="templates/{$theme}/img/forum/moderate_on.gif" border="0" alt="{$lang.f_unlock}" /> </a>
        {/if}
        {if ($permissions.15 == 1) || ($permissions.11 == 1) }
        <a href="index.php?p=delpost&amp;pid={$post->id}&amp;toid={$smarty.get.toid}&amp;area={$area|default:'1'}"><img src="templates/{$theme}/img/forum/delete_small.gif" alt="{$lang.forum_deleteb_alt}" border="0" /></a>
        {/if}
        {if $permissions.10 == 1}
        <a href="index.php?p=newpost&amp;action=edit&amp;pid={$post->id}&amp;toid={$smarty.get.toid}&amp;area={$area|default:'1'}"><img src="templates/{$theme}/img/forum/edit_small.gif" alt="{$lang.f_edit}" border="0" /></a>
        {/if}
        {if $ugroup!=2}
		<a href="index.php?p=newpost&amp;action=quote&amp;pid={$post->id}&amp;toid={$smarty.get.toid}&amp;area={$area|default:'1'}"><img src="templates/{$theme}/img/forum/quote.gif" border="0" alt="{$lang.f_quote}" /></a>
		{/if}
        {if ($permissions.6 == 1) || ($permissions.7 == 1) }
        <a href="index.php?p=newpost&amp;toid={$smarty.get.toid}&amp;pp=15&amp;num_pages={$next_site}&amp;area={$area|default:'1'}"><img src="templates/{$theme}/img/forum/reply_small.gif" alt="{$lang.f_reply}" border="0" /></a>
        {/if}
      </div></td>
  </tr>
  {/foreach}
  <tr>
    <td colspan="2" class="forum_info_main"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>
		  {if $ugroup!=2}
		  {if $canabo==1}
            <a class="forumlinks" href="index.php?p=forum&amp;action=addsubscription&amp;t_id={$topic->id}&amp;area={$area|default:'1'}"><small>
            {$lang.forum_links_subscription}
            </small></a>
            {else}
            <a class="forumlinks" href="index.php?p=forum&amp;action=unsubscription&amp;t_id={$topic->id}&amp;area={$area|default:'1'}"><small>
            {$lang.forum_links_unsubscription}
            </small></a>
            {/if}
&nbsp;|&nbsp;
{/if}
<a class="forumlinks" href="{$printlink}&amp;area={$area|default:'1'}" target="_blank"><small>
            {$lang.printpage}
            </small></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.get.fid}&amp;area={$area|default:'1'}"><small>{$lang.show_next_thread}</small></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.get.fid}&amp;area={$area|default:'1'}"><small>{$lang.show_prev_thread}</small></a>
            {/if}
          </td>
          <td><div align="right">
              {if $topic->status == 1}
              <img src="templates/{$theme}/img/forum/closed.gif" alt="{$lang.f_isclosed}" border="0" class="absmiddle" />
              {else}
              {if ($permissions.6 == 1) || ($permissions.7 == 1) }
              <a class="forum_links" href="index.php?p=newpost&amp;toid={$smarty.get.toid}&amp;area={$area|default:'1'}"><img src="templates/{$theme}/img/forum/answer.gif" alt="{$lang.f_reply_this}" border="0" class="absmiddle" /></a>
              {/if}
              {/if}
            </div></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td colspan="2"><div align="right">
        <table border="0" cellspacing="0" cellpadding="1">
          <tr>
            <td>{$lang.jump_to}</td>
            <td>{include file="forums/selector.tpl"}</td>
          </tr>
        </table>
      </div></td>
  </tr>
  <tr>
    <td>{$pages}
    </td>
    <td nowrap="nowrap">{if ($permissions.17 == 1) || ($permissions.18 == 1) || ($permissions.14 == 1) || ($permissions.21 == 1) || ($permissions.12 == 1) || ($permissions.20 == 1) || ($permissions.19 == 1) }
      <div align="right">
      {$lang.select_admin_options}
      <select id="move_sel" name="select" onchange="eval(this.options[this.selectedIndex].value);selectedIndex=0;">
        </div>
        {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.get.toid}&amp;area={$area|default:'1'}';">
        {$lang.select_open_topic}
        </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.get.toid}&amp;area={$area|default:'1'}';">
        {$lang.select_close_topic}
        </option>
        {/if}
        {/if}
        {if ($permissions.14 == 1) || ($permissions.21 == 1)}
        <option value="if(confirm('{$lang.select_confirm_deltopic}')) location.href='index.php?p=deltopic&amp;fid={$topic->forum_id}&amp;toid={$smarty.get.toid}&amp;area={$area|default:'1'}';">
        {$lang.select_delete_topic}
        </option>
        {/if}
        {if ($permissions.20 == 1) || ($permissions.12 == 1)}
        <option value="location.href='index.php?p=move&amp;item=t&amp;id={$smarty.get.toid}&amp;fid={$topic->forum_id}&amp;area={$area|default:'1'}';">
        {$lang.select_move_topic}
        </option>
        {/if}
        {if $permissions.19 == 1}
        <option value="location.href='index.php?p=forum&amp;action=change_type&amp;id={$smarty.get.toid}&amp;fid={$topic->forum_id}&amp;area={$area|default:'1'}';">
        {$lang.select_typechange_topic}
        </option>
        {/if}
      </select>
      <input onclick="eval(document.getElementById('move_sel').value);" type="button" class="button" value="{$lang.go}">
      </div>
      {else}
&nbsp;
      {/if}</td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="2">
  <tr>
    <td><div align="center">
        {if ($permissions.9 == 1) && ($display_rating == 1) }
        {include file="forums/rating.tpl"}
        {/if}
      </div></td>
  </tr>
</table>
