
<script language="javascript" type="text/javascript">
<!--
{include file="$incpath/other/validate_js.tpl"}
$.validator.setDefaults({ldelim}
	submitHandler: function() 
	{ldelim}
		document.forms['koobiform'].submit();
	{rdelim}
});

$().ready(function() 
{ldelim}
	$("#koobiform").validate({ldelim}
	rules: {ldelim}
				Name: {ldelim}required: true{rdelim},
				Url_Direct: {ldelim}{rdelim},
				Size_Direct: {ldelim}number:true{rdelim}
				
			{rdelim}, 
	messages: 
			{ldelim}
				Url: {ldelim}url:'{#InserURL#}'{rdelim}
			{rdelim}
	{rdelim});
{rdelim});
$(function() {ldelim}
	 $('#container-options ul').tabs({ldelim} {rdelim});
{rdelim});
// -->
</script>


<div class="popbox">
<div class="header">{#Faq_edit#}</div>

{if $smarty.request.notext!=1}
<div class="subheaders">{#News_lang_inf#}</div>
<div class="header_inf">
<form onsubmit="" method="post" action="">
<select class="input" onchange="eval(this.options[this.selectedIndex].value)" name="langcode" id="langcode">
<option id="l_1" value="if(confirm('{#Global_changeLangDoc#}')){ldelim} location.href='index.php?do=faq&sub=edit&id={$smarty.request.id}&noframes=1&pop=1&langcode=1{if $smarty.request.notext==1}&notext=1{/if}';{rdelim}else{ldelim}document.getElementById('l_{$smarty.request.langcode}').selected=true;{rdelim}" {if $smarty.request.langcode=='1'}selected="selected"{/if}>{#Faq_edit_in#}  - {$language_long_1|upper} - {#Shop_articles_editinb#}</option>
<option id="l_2" value="if(confirm('{#Global_changeLangDoc#}')){ldelim} location.href='index.php?do=faq&sub=edit&id={$smarty.request.id}&noframes=1&pop=1&langcode=2{if $smarty.request.notext==1}&notext=1{/if}';{rdelim}else{ldelim}document.getElementById('l_{$smarty.request.langcode}').selected=true;{rdelim}" {if $smarty.request.langcode=='2'}selected="selected"{/if}>{#Faq_edit_in#}  - {$language_long_2|upper} - {#Shop_articles_editinb#}</option>
<option id="l_3" value="if(confirm('{#Global_changeLangDoc#}')){ldelim} location.href='index.php?do=faq&sub=edit&id={$smarty.request.id}&noframes=1&pop=1&langcode=3{if $smarty.request.notext==1}&notext=1{/if}';{rdelim}else{ldelim}document.getElementById('l_{$smarty.request.langcode}').selected=true;{rdelim}"  {if $smarty.request.langcode=='3'}selected="selected"{/if}>{#Faq_edit_in#} - {$language_long_3|upper} - {#Shop_articles_editinb#}</option>
</select>
<img class="absmiddle" src="{$imgpath}/arrow_right.png" alt="" />
</form>
</div>
<div id="container-options">
<ul>
<li><a href="#opt-1"><span>{#News_tab_gen#}</span></a></li>
<li><a href="#opt-2"><span>{#Global_Inline#}</span></a></li>
</ul>
</div>
{/if}

<form method="post" action="" name="koobiform" id="koobiform">
{if $smarty.request.notext==1}
<fieldset>
<legend><label for="t1">{#Global_Name#} ({$language_long_1})</label></legend>
<input name="Name" type="text" class="input" id="t1" style="width:400px" value="{$res->Name_1}" /> 
</fieldset>

<fieldset>
<legend><label for="t2">{#Global_Name#} ({$language_long_2})</label></legend>
<input name="Name_2" type="text" class="input" id="t2" style="width:400px" value="{$res->Name_2}" /> 
</fieldset>

<fieldset>
<legend><label for="t3">{#Global_Name#} ({$language_long_3})</label></legend>
<input name="Name_3" type="text" class="input" id="t3" style="width:400px" value="{$res->Name_3}" /> 
</fieldset>
{/if}

{if $smarty.request.notext!=1}
<div id="opt-1">
<fieldset>
<legend><label for="t1">{#Global_Name#} ({$language_long_1})</label></legend>
<input name="Name" type="text" class="input" id="t1" style="width:400px" value="{$res->Name_1}" /> 
</fieldset>

<fieldset>
<legend>{#Content_text#}</legend>
{$Beschreibung}
</fieldset>
</div>

<div id="opt-2">
{assign var='inline_table' value='faq'}
{assign var='fieldname' value=$field_inline}
{include file="$incpath/inline/inline_div.tpl"}
</div>
{/if}
<input type="submit" class="button big" value="{#Save#}" />
<input type="button" onclick="window.close();" class="button big" value="{#Close#}" />
<input type="hidden" name="save" value="1" />
<input type="hidden" name="langcode" value="{$smarty.request.langcode|default:1}" />
<label>
{if $smarty.request.notext==1}
<input type="hidden" name="notext" id="notext" value="1" />
{/if}
</label>
</form>
</div>

</div>




