<div class="header">{#Settings_general#}</div>

<script language="javascript" type="text/javascript">
<!-- //
{include file="$incpath/other/validate_js.tpl"}
{literal}

$(document).ready(function() {
	var validator = $("#editform").validate(
	{ 
		rules: 
		{ 
			Seitenname: {required: true,minLength: 2},
			Seitenbetreiber: {required: true,minLength: 2},
			Strasse: {required: true,minLength: 2},
			Stadt: {required: true,minLength: 2},
			Mail_Absender:{required: true,email: true},
			Mail_Name: {required: true,minLength: 5},
			Mail_Header: {required: true},
			Mail_Fuss_HTML: {required: true},
			Mail_Fuss: {required: true},
			Spamwoerter: {required: true},
			SpamRegEx: {required: true},
			Kommentare_IconBreite: {required: true,range: [40, 120]},
			Kommentar_Laenge: {required: true,range: [100, 5000]},
			Kommentare_Seite: {required: true,range: [5, 35]}
		},
		messages: 
		{
			//Seitenname:{remote: jQuery.format("{/literal}{#Validate_usedvalue#}{literal}")}
		},
			
		submitHandler: function() 
		{ 
			document.forms['editform'].submit();
		},
		
		success: function(label) 
		{
			label.html("&nbsp;").addClass("checked");
		}
	});
});


function set_method()
{
	document.getElementById('Mail_Port').style.display='none';
	document.getElementById('Mail_Host').style.display='none';
	document.getElementById('Mail_Username').style.display='none';
	document.getElementById('Mail_Passwort').style.display='none';
	document.getElementById('Mail_Sendmailpfad').style.display='none';

	if(document.getElementById('smtp').selected==true)
	{
		document.getElementById('Mail_Port').style.display='';
		document.getElementById('Mail_Host').style.display='';
		document.getElementById('Mail_Username').style.display='';
		document.getElementById('Mail_Passwort').style.display='';
		document.getElementById('Mail_Sendmailpfad').style.display='none';
	}
	
	if(document.getElementById('sendmail').selected==true)
	{
		document.getElementById('Mail_Port').style.display='none';
		document.getElementById('Mail_Host').style.display='none';
		document.getElementById('Mail_Username').style.display='none';
		document.getElementById('Mail_Passwort').style.display='none';
		document.getElementById('Mail_Sendmailpfad').style.display='';
	}
}


// -->
</script>   
{/literal}



<form class="adminform" method="post" action="" autocomplete="off" name="editform" id="editform">
{if $ispro!=1}<input type="hidden" name="ShopStart" value="0" />{/if}

<div class="headers">{#Settings_serial#}</div>
<table width="100%"  border="0" cellpadding="4" cellspacing="0">
<tr>
  <td width="220" class="row_left"><img {popup sticky=$config_vars.POPSTICKY  width=400  text=$config_vars.SerialInf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Settings_serialk#}  </td>
  <td class="row_right"><input class="input" name="LizenzCode" type="text" style="width:200px" value="{$row->LizenzCode|koobispecialchars}" /></td>
</tr>
</table>
  



<div class="headers">{#Settings_websitesettings#}</div>
<table width="100%"  border="0" cellpadding="4" cellspacing="0">
<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY  width=400  text=$config_vars.RoundedCorners_Inf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> 
  {#RoundedCorners#}
  </td>
  <td class="row_right">
<label><input type="radio" name="RoundeCorners" id="radio" value="1" {if $row->RoundeCorners=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="RoundeCorners" id="radio" value="0" {if $row->RoundeCorners=='0'}checked="checked"{/if} />{#No#}</label>
  </td>
</tr>
<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY  width=400  text=$config_vars.RwEHtacces_Inf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> 
  {#Global_Settings_seos#}</td>
  <td class="row_right">

{if $rewrite_error1!='' || $rewrite_error2!=''}
<span style="color:red">{$rewrite_error1}{$rewrite_error2}</span>
<input type="hidden" name="use_seo" value="0" />
{else}
<label><input type="radio" name="use_seo" id="radio" value="1" {if $row->use_seo=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="use_seo" id="radio" value="0" {if $row->use_seo=='0'}checked="checked"{/if} />{#RwEHtacces_dym#}</label>
{/if}  </td>
</tr>
<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY  width=400  text=$config_vars.ServerDifH_Inf} class="absmiddle" src="{$imgpath}/help.png" alt="" />  
  
  {#ServerDifH#}</td>
  <td class="row_right"><input class="input" name="server_time_diff_h" type="text" style="width:50px" value="{$row->server_time_diff_h|koobispecialchars}" /></td>
</tr>
<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY  width=400  text=$config_vars.ServerDifM_Inf} class="absmiddle" src="{$imgpath}/help.png" alt="" />   
  {#ServerDifM#}</td>
  <td class="row_right"><input class="input" name="server_time_diff_m" type="text" style="width:50px" value="{$row->server_time_diff_m|koobispecialchars}" /></td>
</tr>
<tr>
  <td class="row_left">{#Settings_company#}</td>
  <td class="row_right"><input class="input" name="Firma" type="text" style="width:160px" value="{$row->Firma|koobispecialchars}" /></td>
</tr>
<tr>
  <td width="220" class="row_left">{#Settings_websitename#}</td>
  <td class="row_right"><input class="input" name="Seitenname" id="sname" type="text" style="width:160px" value="{$row->Seitenname|koobispecialchars}" /></td>
</tr>
<tr>
  <td class="row_left">{#Settings_yname#}</td>
  <td class="row_right"><input class="input" name="Seitenbetreiber" type="text" style="width:160px" value="{$row->Seitenbetreiber|koobispecialchars}" /></td>
</tr>
<tr>
  <td class="row_left">{#Settings_streetnumber#}</td>
  <td class="row_right"><input class="input" name="Strasse" type="text" style="width:160px" value="{$row->Strasse|koobispecialchars}" /></td>
</tr>
<tr>
  <td class="row_left">{#Settings_rp_yfrom#}</td>
  <td class="row_right"><input class="input" name="Stadt" type="text" style="width:160px" value="{$row->Stadt|koobispecialchars}" /></td>
</tr>
</table>

<div class="headers">{#Settings_companyImp#} <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Settings_companyImpInf} class="absmiddle" src="{$imgpath}/help.png" alt="" /></div>
{$Impressum}
<br />
<br />


{if $ispro==1}
<div class="headers">{#Settings_startsettings#}</div>
<table width="100%"  border="0" cellpadding="4" cellspacing="0">
<tr>
<td width="220" class="row_left">
<img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Setting_shopstart_inf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
{#Settings_shopasstartpage#}
</td>
<td class="row_right">
<label><input type="radio" name="shop_is_startpage" id="radio" value="1" {if $row->shop_is_startpage=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="shop_is_startpage" id="radio" value="0" {if $row->shop_is_startpage=='0'}checked="checked"{/if} />{#No#}</label>
</td>
</tr>
</table>
{/if}

<div class="headers">{#Settings_regsettings#}</div>
<table width="100%"  border="0" cellpadding="4" cellspacing="0">
<tr>
<td width="220" class="row_left">
<img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Settings_userreg_inf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
{#Settings_userregdone#}</td>
<td class="row_right">
<label><input type="radio" name="Reg_Typ" id="radio" value="norm" {if $row->Reg_Typ=='norm'}checked="checked"{/if} />Direkt nach der Registrierung</label>
<label><input type="radio" name="Reg_Typ" id="radio" value="email" {if $row->Reg_Typ=='email'}checked="checked"{/if} />Nach E-Mail Best&auml;tigung durch den Benutzer</label>
</td>
</tr>
</table>



<div class="headers">
{#Settings_mailserversettings#}
</div>
<table width="100%"  border="0" cellpadding="4" cellspacing="0">
<td width="220" class="row_left">
<img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Settings_emailm_inf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
{#Settings_mailmethod#}</td>
    <td class="row_right">
	<select class="input" onchange="set_method();" id="Mail_Typ" name="Mail_Typ">
      <option value="mail" {if $row->Mail_Typ=='mail'}selected="selected"{/if}>MAIL</option>
      <option id="smtp" value="smtp" {if $row->Mail_Typ=='smtp'}selected="selected"{/if}>SMTP</option>
      <option id="sendmail" value="sendmail" {if $row->Mail_Typ=='sendmail'}selected="selected"{/if}>SENDMAIL</option>
    </select>    </td>
  </tr>



  <tr id="Mail_Port">
    <td width="220" class="row_left">{#Settings_smtp_port#}</td>
    <td class="row_right"><input class="input" name="Mail_Port" id="Mail_Port" type="text" style="width:25px"  value="{$row->Mail_Port}" size="5" maxlength="4" /></td>
  </tr>
  <tr id="Mail_Host">
    <td width="220" class="row_left">{#Settings_smtp_server#}</td>
    <td class="row_right"><input class="input" name="Mail_Host" type="text" style="width:160px" value="{$row->Mail_Host}"  />
    {$langadmin.mailsetting_smtp_example}</td>
  </tr>
  <tr id="Mail_Username">
    <td width="220" class="row_left">{#Settings_sm_user#}</td>
    <td class="row_right"><input class="input" name="Mail_Username" id="Mail_Username"  type="text" style="width:160px" value="{$row->Mail_Username}"  /></td>
  </tr>
  <tr id="Mail_Passwort">
    <td class="row_left">{#Settings_sm_pass#}</td>
    <td class="row_right"><input class="input" name="Mail_Passwort" id="Mail_Passwort" type="text" style="width:160px" value="{$row->Mail_Passwort}"  /></td>
  </tr>
  <tr id="Mail_Sendmailpfad">
    <td width="220" class="row_left">{#Settings_sm_path#}</td>
    <td class="row_right"><input class="input" name="Mail_Sendmailpfad" id="Mail_Sendmailpfad" type="text" style="width:160px" value="{$row->Mail_Sendmailpfad}"  />
    {$langadmin.mailsetting_sendmail_example}</td>
  </tr>
  </table>





<div class="headers">{#Settings_mailsettings#}</div>
<table width="100%"  border="0" cellpadding="4" cellspacing="0">
<tr>
  <td width="220" class="row_left">
<img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Settings_emaila_inf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  {#Settings_mailemail#}</td>
  <td class="row_right"><input class="input" name="Mail_Absender" type="text" style="width:160px" value="{$row->Mail_Absender}" /></td>
</tr>
<tr>
  <td class="row_left">
<img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Settings_emailab_inf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
 {#Settings_mailsender#}</td>
  <td class="row_right"><input class="input" name="Mail_Name" type="text" style="width:160px" value="{$row->Mail_Name}" /></td>
</tr>


<tr>
  <td class="row_left">
<img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Settings_htmlh_inf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
 {#Settings_mailheader#}
 </td>
  <td class="row_right"><textarea class="input" style="width:400px; height:70px" onclick="this.style.height='120px'" onmouseout="this.style.height='70px'" name="Mail_Header">{$row->Mail_Header|koobispecialchars}</textarea></td>
</tr>

<tr>
  <td class="row_left">
<img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Settings_htmlf_inf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
{#Settings_mailfooter_html#}
<div class="leftinf">
<strong>{#Settings_rp#}</strong>
<br />
%%OWNER%% = {#Settings_rp_yname#}<br />
%%STREET%% = {#Settings_rp_ystreet#}<br />
%%TOWN%% = {#Settings_rp_yfrom#}
</div>
</td>
  <td class="row_right"><textarea id="xi" class="input" style="width:400px; height:70px" onclick="this.style.height='120px'" onmouseout="this.style.height='70px'" name="Mail_Fuss_HTML">{$row->Mail_Fuss_HTML|koobispecialchars}</textarea></td>
</tr>


<tr>
  <td class="row_left">
<img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Settings_textf_inf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
{#Settings_mailfooter_text#}
<div class="leftinf">
<strong>{#Settings_rp#}</strong>
<br />
%%OWNER%% = {#Settings_rp_yname#}<br />
%%STREET%% = {#Settings_rp_ystreet#}<br />
%%TOWN%% = {#Settings_rp_yfrom#}
</div></td>
  <td class="row_right"><textarea class="input" style="width:400px; height:70px" onclick="this.style.height='120px'" onmouseout="this.style.height='70px'" name="Mail_Fuss">{$row->Mail_Fuss|koobispecialchars}</textarea></td>
</tr>
<tr>
</table>



<div class="headers">{#Settings_forbidden#}</div>
<table width="100%"  border="0" cellpadding="4" cellspacing="0">
  <tr>
    <td class="row_left">
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Settings_useSecure_inf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
    {#Settings_useSecure#}
    </td>
    <td class="row_right">
<label><input type="radio" name="Sicherheitscode" id="radio" value="1" {if $row->Sicherheitscode=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="Sicherheitscode" id="radio" value="0" {if $row->Sicherheitscode=='0'}checked="checked"{/if} />{#No#}</label>
    </td>
  </tr>
  <td width="220" class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Settings_emailf_inf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  {#Settings_fmails#}</td>
  <td class="row_right"><textarea class="input" style="width:400px; height:70px" onclick="this.style.height='120px'" onmouseout="this.style.height='70px'" name="EmailGesperrt">{$row->EmailGesperrt|koobispecialchars}</textarea></td>
</tr>
<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Settings_emailfd_inf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  {#Settings_fmaildomains#}</td>
  <td class="row_right"><textarea class="input" style="width:400px; height:70px" onclick="this.style.height='120px'" onmouseout="this.style.height='70px'" name="EmailDomainsGesperrt">{$row->EmailDomainsGesperrt|koobispecialchars}</textarea></td>
</tr>
<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Settings_ip_inf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  {#Settings_fips#}  </td>
  <td class="row_right"><textarea class="input" style="width:400px; height:70px" onclick="this.style.height='120px'" onmouseout="this.style.height='70px'" name="IpGesperrt">{$row->IpGesperrt|koobispecialchars}</textarea></td>
</tr>
<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Settings_spam_inf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  {#Settings_fwords#}  </td>
  <td class="row_right"><textarea class="input" style="width:400px; height:70px" onclick="this.style.height='120px'" onmouseout="this.style.height='70px'" name="Spamwoerter">{$row->Spamwoerter|koobispecialchars}</textarea></td>
</tr>
<tr>
  <td class="row_left">{#Settings_spamrp#}</td>
   <td class="row_right"><input class="input" name="SpamRegEx" type="text" style="width:160px" value="{$row->SpamRegEx}" /></td>
</tr>
</table>




<div class="headers">{#Settings_kcoptions#}</div>
<table width="100%"  border="0" cellpadding="4" cellspacing="0">
<tr>
  <td width="220" class="row_left">{#Settings_kcactive#}</td>
  <td class="row_right">
<label><input type="radio" name="KoobiCode_Aktiv" id="radio" value="1" {if $row->KoobiCode_Aktiv=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="KoobiCode_Aktiv" id="radio" value="0" {if $row->KoobiCode_Aktiv=='0'}checked="checked"{/if} />{#No#}</label></td>
</tr>
<tr>
<td class="row_left">{#Settings_kcformat#}</td>
<td class="row_right">
<label><input type="radio" name="KommentarFormat" id="radio" value="1" {if $row->KommentarFormat=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="KommentarFormat" id="radio" value="0" {if $row->KommentarFormat=='0'}checked="checked"{/if} />{#No#}</label></td>
</tr>
<tr>
<td class="row_left">{#Settings_kcsmilies#}</td>
<td class="row_right">
<label><input type="radio" name="KoobiCode_Smilies" id="radio" value="1" {if $row->KoobiCode_Smilies=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="KoobiCode_Smilies" id="radio" value="0" {if $row->KoobiCode_Smilies=='0'}checked="checked"{/if} />{#No#}</label></td>
</tr>
<tr>
<td class="row_left">{#Settings_kcimages#}</td>
<td class="row_right">
<label><input type="radio" name="KoobiCode_Bild" id="radio" value="1" {if $row->KoobiCode_Bild=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="KoobiCode_Bild" id="radio" value="0" {if $row->KoobiCode_Bild=='0'}checked="checked"{/if} />{#No#}</label></td>
</tr>
<tr>
<td class="row_left">{#Settings_kclinkcode#}</td>
<td class="row_right">
<label><input type="radio" name="KoobiCode_Links" id="radio" value="1" {if $row->KoobiCode_Links=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="KoobiCode_Links" id="radio" value="0" {if $row->KoobiCode_Links=='0'}checked="checked"{/if} />{#No#}</label></td>
</tr>
<tr>
<td class="row_left">{#Settings_kcemailcode#}</td>
<td class="row_right">
<label><input type="radio" name="KoobiCode_Email" id="radio" value="1" {if $row->KoobiCode_Email=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="KoobiCode_Email" id="radio" value="0" {if $row->KoobiCode_Email=='0'}checked="checked"{/if} />{#No#}</label></td>
</tr>
<tr>
<td class="row_left">{#Settings_commentsmoderated#}</td>
<td class="row_right">
<label><input type="radio" name="Kommentar_Moderiert" id="radio" value="1" {if $row->Kommentar_Moderiert=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="Kommentar_Moderiert" id="radio" value="0" {if $row->Kommentar_Moderiert=='0'}checked="checked"{/if} />{#No#}</label></td>
</tr>
<tr>
<td class="row_left">{#Settings_commentsiconsuse#}</td>
<td class="row_right">
<label><input type="radio" name="Kommentare_Icon" id="radio" value="1" {if $row->Kommentare_Icon=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="Kommentare_Icon" id="radio" value="0" {if $row->Kommentare_Icon=='0'}checked="checked"{/if} />{#No#}</label></td>
</tr>
<tr>
  <td class="row_left">{#Settings_commenticonsw#}</td>
  <td class="row_right"><input class="input" name="Kommentare_IconBreite" type="text" style="width:50px"  value="{$row->Kommentare_IconBreite}" size="5" maxlength="3" /></td>
</tr>
<tr>
  <td class="row_left">{#Settings_commentslength#}</td>
  <td class="row_right"><input class="input" name="Kommentar_Laenge" type="text" style="width:50px"  value="{$row->Kommentar_Laenge}" size="5" maxlength="4" /></td>
</tr>
<tr>
  <td class="row_left">{#Settings_commentspage#}</td>
  <td class="row_right"><input class="input" name="Kommentare_Seite" type="text" style="width:50px"  value="{$row->Kommentare_Seite}" size="5" maxlength="3" /></td>
</tr>
</table>

<div class="headers">{#Settings_fieldsettings#}</div>
<table width="100%"  border="0" cellpadding="4" cellspacing="0">
<tr>
  <td width="220" class="row_left">{#Settings_f_company#}</td>
  <td class="row_right">
<label><input type="radio" name="Reg_Firma" id="radio" value="1" {if $row->Reg_Firma=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="Reg_Firma" id="radio" value="0" {if $row->Reg_Firma=='0'}checked="checked"{/if} />{#No#}</label>
  </td>
</tr>
<tr>
  <td class="row_left">{#Settings_f_ustid#}</td>
  <td class="row_right">
<label><input type="radio" name="Reg_Ust" id="radio" value="1" {if $row->Reg_Ust=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="Reg_Ust" id="radio" value="0" {if $row->Reg_Ust=='0'}checked="checked"{/if} />{#No#}</label>
  </td>
</tr>
<tr>
  <td class="row_left">{#Settings_f_fon#}</td>
  <td class="row_right">
<label><input type="radio" name="Reg_Fon" id="radio" value="1" {if $row->Reg_Fon=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="Reg_Fon" id="radio" value="0" {if $row->Reg_Fon=='0'}checked="checked"{/if} />{#No#}</label>
  </td>
</tr>
<tr>
  <td class="row_left">{#Settings_f_fax#}</td>
  <td class="row_right">
<label><input type="radio" name="Reg_Fax" id="radio" value="1" {if $row->Reg_Fax=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="Reg_Fax" id="radio" value="0" {if $row->Reg_Fax=='0'}checked="checked"{/if} />{#No#}</label>
  </td>
</tr>
<tr>
  <td class="row_left">{#Settings_f_birth#}</td>
  <td class="row_right">
<label><input type="radio" name="Reg_Birth" id="radio" value="1" {if $row->Reg_Birth=='1'}checked="checked"{/if} />{#Yes#}</label>
<label><input type="radio" name="Reg_Birth" id="radio" value="0" {if $row->Reg_Birth=='0'}checked="checked"{/if} />{#No#}</label>
  </td>
</tr>

</table>

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

<script>
set_method();
</script>
