
<form action="" method="post" onSubmit="return check_languages()">

<script language="javascript">
function check_languages()
{ldelim}
	var lang_1 = document.getElementById('Sprache_1').value;
	var lang_2 = document.getElementById('Sprache_2').value;
	var lang_3 = document.getElementById('Sprache_3').value;
	if(lang_1 == lang_2 || lang_1 == lang_3 || lang_2 == lang_3)
	{ldelim}
		alert('{#Settings_language_jse#}');
		return false;
	{rdelim}
{rdelim}
</script>


<div class="header">{#Settings_languages#}</div>
<div class="subheaders">{#Settings_language_inf#}</div>
<table width="100%"  border="0" cellpadding="3" cellspacing="0" class="tableborder">
 <tr class="firstrow">
   <td width="100" class="headers">{#Settings_language_lang#}</td>
 <td width="100" class="headers">{#Settings_language_spez#}</td>
  <td class="headers">{#Global_Active#}</td>
   </tr>
 {foreach from=$languages item=c}
 <tr class="{cycle name=pm values='first,second'}">
   <td width="100">
   <select style="width:100px" onchange="document.getElementById('Bez_{$c->Id}').value=this.options[this.selectedIndex].id" class="input" name="Sprachcode[{$c->Id}]" id="Sprache_{$c->Id}">
   {if $f->Id!=1}
   {/if}
   {foreach from=$folders item=f}
   {if $f->Exists==1}
     <option id="{$f->Long}" value="{$f->Name}" {if $f->Name==$c->Sprachcode}selected="selected" {/if}>{$f->Long}</option>
    {/if}
    {/foreach}
   </select>   </td>
<td width="100">
<input id="Bez_{$c->Id}" class="input" name="Sprache[{$c->Id}]" type="text" value="{$c->Sprache}" size="25"></td>
<td>  
{if $c->Id==1}

<label><input disabled="disabled" type="radio" name="Aktiv[{$c->Id}]" value="1" {if $c->Aktiv==1}checked="checked"{/if}>{#Yes#}</label>  <label><input disabled="disabled" type="radio" name="Aktiv[{$c->Id}]" value="2" {if $c->Aktiv!=1}checked="checked"{/if}>{#No#}</label>
<input type="hidden" name="Aktiv[{$c->Id}]" value="1" />

{else}
{if $c->Exists==1}
  <label><input type="radio" name="Aktiv[{$c->Id}]" value="1" {if $c->Aktiv==1}checked="checked"{/if}>{#Yes#}</label>  <label><input type="radio" name="Aktiv[{$c->Id}]" value="2" {if $c->Aktiv!=1}checked="checked"{/if}>{#No#}</label>
{else}
<input type="hidden" name="Aktiv[{$c->Id}]" value="0" />

{/if}
{/if}</td>
</tr>
{/foreach}
</table>
<input name="save" type="hidden" value="1" />
<input type="submit" value="{#Save#}" class="button big">
</form>


<div class="subheaders">
<span style="font-weight:normal">
{#Settings_languages_niInf#}</span> 