<div class="header">{#Faq#}</div>
<form action="" method="post"  name="kform" id="kform">

  <table width="100%"  border="0" cellpadding="3" cellspacing="0" class="tableborder">
    {foreach from=$faq item=item} 
    {if $item->Parent_Id == 0}
    <tr class="{cycle name=$cna values='second,first'}">
      <td class="headers">{#Faq_q#}</td>
      <td width="50" align="center" class="headers">{#Global_Author#}</td>
      <td width="50" align="center" class="headers">{#Global_Active#}</td>
      <td width="10" align="center" class="headers">{#Global_Position#}</td>
      <td class="headers">{#Global_Actions#}</td>
    </tr>
    <tr>
      <td class="second"><strong>{$item->visible_title}</strong></td>
      <td align="center" nowrap="nowrap" class="second"><a href="javascript:void(0);" onclick="popup('index.php?do=user&amp;sub=edituser&amp;user={$item->Benutzer}&amp;noframes=1','userEdit',980,680,1)">{$item->User}</a></td>
      <td align="center" nowrap="nowrap" class="second"><select class="input" name="Aktiv[{$item->Id}]">
          <option value="1" {if $item->Aktiv == 1} selected{/if}>{#Yes#}</option>
          <option value="0" {if $item->Aktiv == 0} selected{/if}>{#No#}</option>
        </select></td>
      <td align="center" class="second">
          <input class="input" type="text" value="{$item->Position}" name="Position[{$item->Id}]" size="3" maxlength="5" />      </td>
      <td class="second">
       <a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Faq_editcateg} href="javascript:void(0);" onclick="popup('index.php?do=faq&sub=edit&id={$item->Id}&noframes=1&langcode=1&notext=1','Edit',700,400,1);"><img class="absmiddle" src="{$imgpath}/edit.png" alt="" border="0" /></a>
       <a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Faq_new} href="javascript:void(0);" onclick="popup('index.php?do=faq&sub=new&id={$item->Id}&noframes=1&langcode=1','Edit',980,760,1);"><img class="absmiddle" src="{$imgpath}/add.png" alt="" border="0" /></a>
       <a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Global_Delete} href="javascript:void(0);" onclick="if(confirm('{#Faq_delC#}')){ldelim}popup('index.php?do=faq&sub=delete&id={$item->Id}&noframes=1&langcode=1','Del',1,1,1);{rdelim}"><img class="absmiddle" src="{$imgpath}/delete.png" alt="" border="0" /></a>
      </td>
    </tr>
    {else}
    <tr class="first">
      <td>{$item->visible_title}</td>
      
      <td align="center"><a href="javascript:void(0);" onclick="popup('index.php?do=user&amp;sub=edituser&amp;user={$item->Benutzer}&amp;noframes=1','userEdit',980,680,1)">{$item->User}</a></td>
      <td align="center">
        <select class="input" name="Aktiv[{$item->Id}]">
          <option value="1" {if $item->Aktiv == 1} selected{/if}>{#Yes#}</option>
          <option value="0" {if $item->Aktiv == 0} selected{/if}>{#No#}</option>
        </select></td>
      <td align="center">
          <input class="input" type="text" value="{$item->Position}" name="Position[{$item->Id}]" size="3" maxlength="5" />      </td>
      <td>
       <a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Faq_edit} href="javascript:void(0);" onclick="popup('index.php?do=faq&sub=edit&id={$item->Id}&noframes=1&langcode=1','Edit',980,760,1);"><img class="absmiddle" src="{$imgpath}/edit.png" alt="" border="0" /></a>
      <a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Faq_new} href="javascript:void(0);" onclick="popup('index.php?do=faq&sub=new&id={$item->Id}&noframes=1&langcode=1','Edit',980,760,1);"><img class="absmiddle" src="{$imgpath}/add.png" alt="" border="0" /></a>
       <a {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Global_Delete} href="javascript:void(0);" onclick="if(confirm('{#Faq_delC#}')){ldelim}popup('index.php?do=faq&sub=delete&id={$item->Id}&noframes=1&langcode=1','Del',1,1,1);{rdelim}"><img class="absmiddle" src="{$imgpath}/delete.png" alt="" border="0" /></a>
      </td>
    </tr>
    {/if} {/foreach}
  </table>
   {if $faq}<input name="Senden" type="submit" class="button big" value="{#Save#}" />
   <input name="save" type="hidden" id="save" value="1" />
   {/if}
</form>


<fieldset>
<legend>{#Faq_categ_new#}</legend>
<form method="post" action="">
<table>
<tr>
<td>
<strong>{#Global_Name#} ({$language_long_1})</strong><br />
<input name="Name_1" type="text" class="input" style="width:170px" value="" /></td>
<td>
<strong>{#Global_Name#} ({$language_long_2})</strong><br />
<input name="Name_2" type="text" class="input" style="width:170px" value="" /></td>
<td>
<strong>{#Global_Name#} ({$language_long_3})</strong><br />
<input name="Name_3" type="text" class="input" style="width:170px" value="" /></td>
<td>
{#Global_Position#}<br />
<input name="Position" type="text" class="input" style="width:40px" value="1" />
</td>
</tr>
</table>
<input type="submit" class="button" value="{#Save#}" />
<input name="new" type="hidden" value="1" />
</form>
</fieldset>

