{if $groupname != ""}

{if isset($status) && $status== "error"}
<div class="status_error">
  {$messages}
</div>
{elseif isset($status) && $status == "success"}
<div class="status_ok">
  {$messages}
</div>
{/if}

<form id="settingsform" {if isset($multipart)&& $multipart==true}enctype="multipart/form-data" {/if}action="{$selflink}"
  method="post">

  {section name=row1 loop=$groups}
  {strip}
  <h3>{$groups[row1].subgroupname}</h3>
  <div id="{$groups[row1].subgroupid}" class="subgroup">
    {section name=row2 loop=$groups[row1].items}
    {strip}
    <div id="{$groups[row1].items[row2].inputname}" class="settingrow {$groups[row1].items[row2].classname}">
      <div class="description_help">
        {if $groups[row1].items[row2].description != ""}
        <div class="description desc_{$groups[row1].items[row2].typename}">
          {$groups[row1].items[row2].description}{if $groups[row1].items[row2].descriptionWithColonMark == 1}:{/if}
        </div>
        {/if}
        {if $groups[row1].items[row2].help != ""}
        <div class="detail">
          {$groups[row1].items[row2].help}
        </div>
        {/if}
      </div>
      <div class="input{if $groups[row1].items[row2].typename != ""} {$groups[row1].items[row2].typename}{/if}">
        {if $groups[row1].items[row2].beforeinput != ""}
        <span class="beforinput">{$groups[row1].items[row2].beforeinput}</span>
        {/if}

        {$groups[row1].items[row2].input}
        {if $groups[row1].items[row2].afterinput != ""}
        <span class="afterinput">{$groups[row1].items[row2].afterinput}</span>
        {/if}
      </div>
      {if $groups[row1].items[row2].additionalcontent != ""}
      <div class="additionalcontent">
        {$groups[row1].items[row2].additionalcontent}
      </div>
      {/if}
    </div>
    {/strip}
    {/section}
  </div>
  {if {$groups[row1].savebuttontitle} == "vonsqlkopieren"}
  <div class="right">
    <input {if $noajaxpost !=1}class="ajaxpost" {/if} type="submit" name="kopiesql"
      title="Alle Einstellungen von KuferSQL übernehmen" value="Von KuferSQL kopieren" />
  </div>
  {else if !isset($groups[row1].hidesavebutton) || !{$groups[row1].hidesavebutton}}
  <div class="right">
    <input {if $noajaxpost !=1}class="ajaxpost" {/if} type="submit" name="savesettings"
      title="Alle Einstellungen dieser Seite übernehmen" value="Übernehmen" />
  </div>
  {/if}
  <br />
  {/strip}
  {/section}

</form>

{else}

Bitte wählen Sie eine Einstellungsgruppe aus!

{/if}