<div class="header">{#Forums_Help#}</div>
<form action="" method="post">
  <div class="subheaders">
  {#Forums_Help_inf#}
  </div>
  <div class="second">
   <a {popup sticky=$config_vars.POPSTICKY  width='200' text=$config_vars.Forums_Help_newcateg} href="javascript:void(0);" onclick="popup('?do=forums&sub=forumshelpnewcateg&new=1&noframes=1','edit',600,250,1);"><img class="absmiddle" src="{$imgpath}/add.png" alt="" border="0" /></a>
   <a {popup sticky=$config_vars.POPSTICKY  width='200' text=$config_vars.Forums_Help_newcateg} href="javascript:void(0);" onclick="popup('?do=forums&sub=forumshelpnewcateg&new=1&noframes=1','edit',600,250,1);">{#Forums_Help_newcateg#}</a>
  </div>
  <table width="100%"  border="0" cellpadding="3" cellspacing="0" class="tableborder">
   
     <tr>
       <td class="headers">{#Forums_Help_categt#}</td>
       <th class="headers">{#Global_Position#}</th>
       <th width="100" class="headers">{#Global_Active#}</th>
       <td class="headers">{#Global_Actions#}</td>
     </tr>
     {foreach from=$topics item=t}
    <tr>
      <td class="header">{$t->Name_1|koobispecialchars}</td>
      <th width="100" class="header">
      <input type="hidden" name="Fid[{$t->Id}]" value="{$t->Id}" />
      <input name="Position[{$t->Id}]" type="text" class="input" style="width:40px" value="{$t->Position}" maxlength="3"></th>
      <td align="center" nowrap class="header">
      <label><input type="radio" name="Aktiv[{$t->Id}]" value="1" {if $t->Aktiv==1}checked="checked"{/if}>{#Yes#}</label>  
      <label><input type="radio" name="Aktiv[{$t->Id}]" value="0" {if $t->Aktiv!=1}checked="checked"{/if}>{#No#}</label>
      </td>
      <td class="header">
      <a {popup sticky=$config_vars.POPSTICKY  width='200' text=$config_vars.Forums_Help_editcateg} href="javascript:void(0);" onclick="popup('?do=forums&sub=forumshelpedit&id={$t->Id}&n={$t->Name_1|koobispecialchars}&noframes=1','edit',600,250,1);"><img class="absmiddle" src="{$imgpath}/edit.png" alt="" border="0" /></a>
      <a {popup sticky=$config_vars.POPSTICKY  width='200' text=$config_vars.Forums_Help_addhelp} href="javascript:void(0);" onclick="popup('?do=forums&sub=forumshelpnew&categ={$t->Id}&n={$t->Name_1|koobispecialchars}&noframes=1','edit',850,750,1);"><img class="absmiddle" src="{$imgpath}/add.png" alt="" border="0" /></a>
      <a {popup sticky=$config_vars.POPSTICKY  width='100' text=$config_vars.Global_Delete} href="javascript:void(0)" onclick="if(confirm('{#Forums_Help_delhelpcateg_c#}\n------------\n{$t->Name_1|koobispecialchars}\n------------\n')){ldelim}location.href='index.php?do=forums&sub=delhelpcateg&categ={$t->Id}';{rdelim}"><img class="absmiddle" src="{$imgpath}/delete.png" alt="" border="0" /></a>
      </td>
    </tr>
    {if !$t->subtopics}
    <tr>
    <td colspan="4" style="padding:5px">
    <span style="font-weight:bold">{#Forums_Help_nopage#}&nbsp;</span>
    <a {popup sticky=$config_vars.POPSTICKY  width='200' text=$config_vars.Forums_Help_addhelp} href="javascript:void(0);" onclick="popup('?do=forums&sub=forumshelpnew&categ={$t->Id}&n={$t->Name_1|koobispecialchars}&noframes=1','edit',850,750,1);"><img class="absmiddle" src="{$imgpath}/add.png" alt="" border="0" /></a>
    </td>
    
    </tr>
    {/if}
    {foreach from=$t->subtopics item=st}
    <tr class="{cycle name=$t->Id values='first,second'}">
      <td>
      <input type="hidden" name="SFid[{$st->Id}]" value="{$st->Id}" />
      {$st->Name_1|koobispecialchars}     
       </td>
      <td align="center"><input name="SubPosition[{$st->Id}]" type="text" class="input" style="width:40px" value="{$st->Position}" maxlength="3"></td>
      <td align="center">
      
      <label><input type="radio" name="SubAktiv[{$st->Id}]" value="1" {if $st->Aktiv==1}checked="checked"{/if}>{#Yes#}</label>  
      <label><input type="radio" name="SubAktiv[{$st->Id}]" value="0" {if $st->Aktiv!=1}checked="checked"{/if}>{#No#}</label>
      
      </td>
      <td>
       <a {popup sticky=$config_vars.POPSTICKY  width='200' text=$config_vars.Forums_Help_editcateg} href="javascript:void(0);" onclick="popup('?do=forums&sub=forumshelppageedit&id={$st->Id}&n={$st->Name_1|koobispecialchars}&edit=1&noframes=1','edit',850,750,1);"><img class="absmiddle" src="{$imgpath}/edit.png" alt="" border="0" /></a>
      <a {popup sticky=$config_vars.POPSTICKY  width='100' text=$config_vars.Global_Delete} href="javascript:void(0)" onclick="if(confirm('{#Forums_Help_delhelppage_c#}\n------------\n{$st->Name_1|koobispecialchars}\n------------\n')){ldelim}location.href='index.php?do=forums&sub=delhelppage&id={$st->Id}';{rdelim}"><img class="absmiddle" src="{$imgpath}/delete.png" alt="" border="0" /></a>
      </td>
    </tr>
    {/foreach}
    {/foreach}
  </table>
  <input name="save" type="hidden" value="1" />
  <input type="submit" value="{#Save#}" class="button big">
</form>
