
<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}
			{rdelim}, 
	messages: 
			{ldelim}
			{rdelim}
	{rdelim});
{rdelim});
$(function() {ldelim}
	 $('#container-options ul').tabs({ldelim} {rdelim});
{rdelim});
// -->
</script>


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

<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>


<form method="post" action="" name="koobiform" id="koobiform">
<div id="opt-1">

<fieldset>
<legend>{#Faq_Sub#}</legend>
<select class="input" style="width:400px" name="Parent_Id">
{foreach from=$faqCategs item=fc}
<option value="{$fc->Id}" {if $fc->Parent_Id=='0'}style="font-weight:bold"{/if} {if $fc->Id==$smarty.request.id}selected="selected"{/if}>{$fc->visible_title}</option>
{/foreach}
</select>
</fieldset>


<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>

<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}" />
<input type="hidden" name="notext" id="notext" value="1" />
</form>
</div>
</div>




