{if permission('own_avatar')}
<script language="javascript" src="javascripts/jupload.js" type="text/javascript"></script>
{/if}
<script language="javascript" src="{$jspath}/jvalidate.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
<!-- 
{include file="$incpath/other/validate_conf.tpl"}
{if permission('own_avatar')}
function ajaxFileUpload(updir,divid,resize)
{ldelim}
	$("#loading_" + divid)
	.ajaxStart(function(){ldelim}
		$(this).show();
		document.getElementById('buttonUpload_' + divid).value = '{#Global_Wait#}';
		document.getElementById('buttonUpload_' + divid).disabled = true;
		
	{rdelim})
	.ajaxComplete(function(){ldelim}
		$(this).hide();
		document.getElementById('buttonUpload_' + divid).value = '{#Global_Upload#}';
		document.getElementById('buttonUpload_' + divid).disabled = false;
	{rdelim});

	var up = 'index.php?action=avatarupload&p=useraction' + updir + '&divid=' + divid + '&resize=' + resize;
	
	$.ajaxFileUpload
	(
		
		{ldelim}
			url: up,
			secureuri:false,
			fileElementId:'fileToUpload_' + divid,
			dataType: 'json',
			success: function (data, status)
			{ldelim}
				if(typeof(data.error) != 'undefined')
				{ldelim}
					if(data.error != '')
					{ldelim}
						document.getElementById('UpInf_' + divid).innerHTML  = data.error;
					}else
					{ldelim}
						document.getElementById('UpInf_' + divid).innerHTML = data.msg;
						document.getElementById('newFile_' + divid).value =  data.html;
						
					{rdelim}
				{rdelim}
			{rdelim},
			error: function (data, status, e)
			{ldelim}
				document.getElementById('UpInf_' + divid).innerHTML = e;
			{rdelim}
		{rdelim})
	return false;
{rdelim}
{/if}

$(document).ready(function() {ldelim}
	var validator = $("#pform").validate(
	{ldelim}
		rules: 
		{ldelim}
			{if $koobi_version=='PRO'} 
				Vorname: {ldelim}required: true{rdelim},
				Nachname: {ldelim}required: true{rdelim},
				Strasse_Nr: {ldelim}required: true{rdelim},
				Postleitzahl:{ldelim}required: true,number:true{rdelim},
				Ort:{ldelim}required: true{rdelim}
			{/if}
		{rdelim},
		messages: 
		{ldelim}
		{rdelim},
			
		submitHandler: function() 
		{ldelim} 
			document.forms['pform'].submit();
		{rdelim},
		
		success: function(label) 
		{ldelim}
			
		{rdelim}
	{rdelim});
{rdelim});
// -->
</script>


{if $error}
<div class="error_box"> {#ErrorOcured#}
  <ul>
{foreach from=$error item=reg_error}
<li>{$reg_error}</li>
{/foreach}
</ul>
</div>
{/if}


<div id="ok">
<form id="pform" name="pform" action="index.php?p=useraction&amp;action=profile&amp;area={$area}" method="post" enctype="multipart/form-data">
<div class="box_innerhead">{#Profile_Cdata#}</div>
<div class="box_data">

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="profile_tableborder">
<tr>
  <td class="row_first" width="40%" align="right"><label for="l_Benutzername">{#Profile_Username#}</label></td>
  <td class="row_second">
  {if permission('username')}
  <input name="reg_username" type="text" class="input" id="l_Benutzername" style="width:150px" value="{$smarty.post.reg_username|stripslashes|default:$data.Benutzername|escape:html|stripslashes}" maxlength="20" />
  {else}
  {$smarty.session.user_name}
  {/if}  
  </td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right">{#Profile_Email#}</td>
  <td class="row_second">{$smarty.session.login_email}</td>
</tr>
{if permission('email_change')}
<tr>
  <td class="row_first" width="40%" align="right"><label for="l_newmail">{#Profile_EmailNew#}</label></td>
  <td class="row_second"><input name="newmail" type="text" class="input" id="l_newmail" style="width:150px" value="{$smarty.post.newmail|escape:html|stripslashes}" /></td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right"><label for="l_newmail2">{#Profile_EmailNew2#}</label></td>
  <td class="row_second"><input name="newmail2" type="text" class="input" id="l_newmail2" style="width:150px" value="{$smarty.post.newmail2|escape:html|stripslashes}" /></td>
</tr>
{/if}
</table>
</div>


<div class="box_innerhead">{#PersonalData#}
{if $koobi_version=='PRO'} <span class="box_innerhead_inf">{#Profile_RequiredInf#}</span>{/if}
</div>
<div class="box_data">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="profile_tableborder">
{if $koobi_version=='PRO'}
<tr>
  <td class="row_first" width="40%" align="right"><label for="l_vorname">{#Profile_FirstName#} <sup>*</sup></label></td>
  <td class="row_second"><input class="input" style="width:150px" name="Vorname" type="text" id="l_vorname" value="{$smarty.post.Vorname|stripslashes|default:$data.Vorname|escape:html|stripslashes}" /></td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right"><label for="l_nachname">{#Profile_LastName#} <sup>*</sup></label></td>
  <td class="row_second"><input class="input" style="width:150px" name="Nachname" type="text" id="l_nachname" value="{$smarty.post.Nachname|stripslashes|default:$data.Nachname|escape:html|stripslashes}" /></td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right"><label for="l_firma">{#Profile_company#}</label></td>
  <td class="row_second"><input class="input" style="width:150px" name="Firma" type="text" id="l_firma" value="{$smarty.post.Firma|stripslashes|default:$data.Firma|escape:html|stripslashes}" /></td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right"><label for="l_ustid">{#Profile_vatnum#}</label></td>
  <td class="row_second"><input class="input" style="width:150px" name="UStId" type="text" id="l_ustid" value="{$smarty.post.UStId|stripslashes|default:$data.UStId|escape:html|stripslashes}" /></td>
</tr>

<tr>
  <td class="row_first" width="40%" align="right"><label for="l_strassenr">{#Profile_Street#} <sup>*</sup></label></td>
  <td class="row_second"><input class="input" style="width:150px" name="Strasse_Nr" type="text" id="l_strassenr" value="{$smarty.post.Strasse_Nr|stripslashes|default:$data.Strasse_Nr|escape:html|stripslashes}" /></td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right"><label for="l_zip">{#Profile_Zip#} / {#Profile_Town#} <sup>*</sup></label></td>
  <td class="row_second">
  <input class="input" style="width:50px" name="Postleitzahl" type="text" id="l_zip" value="{$smarty.post.Postleitzahl|stripslashes|default:$data.Postleitzahl|escape:html|stripslashes}" />
  <input class="input" style="width:95px" name="Ort" type="text" id="l_ort" value="{$smarty.post.Ort|stripslashes|default:$data.Ort|escape:html|stripslashes}" />  </td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right"><label for="l_fon">{#Profile_Phone#}</label></td>
  <td class="row_second"><input class="input" style="width:150px" name="Telefon" type="text" id="l_fon" value="{$smarty.post.Telefon|stripslashes|default:$data.Telefon|escape:html|stripslashes}" /></td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right"><label for="l_fax">{#Profile_Fax#}</label></td>
  <td class="row_second"><input class="input" style="width:150px" name="Telefax" type="text" id="l_fax" value="{$smarty.post.Telefax|stripslashes|default:$data.Telefax|escape:html|stripslashes}" /></td>
</tr>
{/if}

<tr>
  <td class="row_first" width="40%" align="right"><label for="l_reg_country">{#Profile_Country#}</label></td>
  <td class="row_second">
  <select class="input"  name="country" id="l_reg_country" style="width:150px">
  {foreach from=$countries item=c}
  <option value="{$c.Code}" {if $smarty.request.send!=1}{if $data.LandCode==$c.Code}selected=&quot;selected&quot;{/if}{else}{if $smarty.post.country==$c.Code}selected=&quot;selected&quot;{/if}{/if}>{$c.Name}</option>
  {/foreach}
  </select>  
  </td>
</tr>
</table>
</div>

{if get_active('optional_data')}

<div class="box_innerhead">{#Profile_Optional#}</div>
<div class="box_data">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="profile_tableborder">
<tr>
  <td class="row_first" align="right"><label for="l_Geschlecht">{#Profile_Gender#}</label></td>
  <td class="row_second">
  <select name="Geschlecht" class="input" id="l_Geschlecht">
    <option value="-" {if $data.Geschlecht=='-'}selected="selected" {/if}>{#User_NoSettings#}</option>
    <option value="m" {if $data.Geschlecht=='m'}selected="selected" {/if}>{#User_Male#}</option>
    <option value="f" {if $data.Geschlecht=='f'}selected="selected" {/if}>{#User_Female#}</option>
  </select>  </td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right"><label for="l_reg_birth">{#Profile_Birth#}</label></td>
  <td class="row_second">
  <input class="input"  name="birth" type="text" id="l_reg_birth" style="width:100px" value="{$smarty.post.birth|stripslashes|escape:html|default:$data.Geburtstag}" maxlength="10" />{#BirthFormat#}  </td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right"><label for="l_icq">{#Profile_ICQ#}</label></td>
  <td class="row_second"><input class="input" style="width:150px" name="icq" type="text" id="l_icq" value="{$smarty.post.icq|stripslashes|default:$data.icq|escape:html|stripslashes}" /></td>
</tr>
<tr>
  <td class="row_first" align="right"><label for="l_skype">{#Profile_Scype#}</label></td>
  <td class="row_second"><input class="input" style="width:150px" name="skype" type="text" id="l_skype" value="{$smarty.post.skype|stripslashes|default:$data.skype|escape:html|stripslashes}" /></td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right"><label for="l_msn">{#Profile_MSN#}</label></td>
  <td class="row_second"><input class="input" style="width:150px" name="msn" type="text" id="l_msn" value="{$smarty.post.msn|stripslashes|default:$data.msn|escape:html|stripslashes}" /></td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right"><label for="l_webseite">{#Profile_Web#}</label></td>
  <td class="row_second"><input class="input" style="width:150px" name="Webseite" type="text" id="l_webseite" value="{$smarty.post.Webseite|stripslashes|default:$data.Webseite|escape:html|stripslashes}" /></td>
</tr>

{if $signatur_erlaubt==1}
<tr>
  <td class="row_first" width="40%" align="right"><label for="l_signatur">{#Profile_Sig#}</label>
  <br />
  <br />
  {#Profile_SigLength#}{$signatur_laenge}
  {if $signatur_koobicode==1}
  <br />
  {#Profile_KoobiCode#} {#Profile_IsAllowed#}
  {/if}  </td>
  <td class="row_second"><textarea class="input" style="width:98%;height:100px" name="Signatur" id="l_signatur">{$smarty.post.Signatur|default:$data.Signatur|escape:html}</textarea></td>
</tr>
{/if}

<tr>
  <td class="row_first" width="40%" align="right"><label for="l_interessen">{#Profile_Int#}</label></td>
  <td class="row_second"><input type="text" class="input" style="width:98%" name="Interessen" id="l_interessen" value="{$smarty.post.Interessen|stripslashes|default:$data.Interessen|escape:html|stripslashes}" /></td>
</tr>

<tr>
  <td class="row_first" align="right"><label for="l_beruf">{#Profile_Job#}</label></td>
  <td class="row_second"><input type="text" class="input" style="width:98%" name="Beruf" id="l_beruf" value="{$smarty.post.Beruf|stripslashes|default:$data.Beruf|escape:html|stripslashes}" /></td>
</tr>
<tr>
  <td class="row_first" align="right"><label for="l_essen">{#Profile_Food#}</label></td>
  <td class="row_second"><input type="text" class="input" style="width:98%" name="Essen" id="l_essen" value="{$smarty.post.Essen|stripslashes|default:$data.Essen|escape:html|stripslashes}" /></td>
</tr>
<tr>
  <td class="row_first" align="right"><label for="l_musik">{#Profile_Music#}</label></td>
  <td class="row_second"><input type="text" class="input" style="width:98%" name="Musik" id="l_musik" value="{$smarty.post.Musik|stripslashes|default:$data.Musik|escape:html|stripslashes}" /></td>
</tr>
<tr>
  <td class="row_first" align="right">&nbsp;</td>
  <td class="row_second">&nbsp;</td>
</tr>
</table>
</div>
{/if}


{if get_active('user_videos')}
<div class="box_innerhead">{#Forums_UserVideosMy#}</div>
<div class="box_data">
{#Forums_UserVideosMyInf#}
<br />
<br />
{if $myvideos}
<div class="infobox">
<h3>{#Forums_UserVideosCurr#}</h3>
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="profile_tableborder">
  <tr>
  <td width="100"><strong>{#Forums_UserVideosVideoId#}</strong></td>
  <td width="100"><strong>{#Forums_UserVideosName#}</strong></td>
  <td width="50"><strong>{#Forums_UserVideosVideoSrc#}</strong></td>
  <td width="10"><strong>{#Forums_UserVideosVideoPos#}</strong></td>
  <td><strong>{#Forums_UserVideosVideoDel#}</strong></td>
  </tr>
  {foreach from=$myvideos item=u}
  <tr>
  <td><input name="Video[{$u->Id}]" type="text" class="input" style="width:100px" value="{$u->Video}" maxlength="20" /></td>
  <td><input name="Name[{$u->Id}]" type="text" class="input" style="width:150px" value="{$u->Name|koobispecialchars}" maxlength="100" /></td>
  <td>
    <select name="VideoSource[{$u->Id}]" class="input">
  <option value="myvideo" {if $u->VideoSource=='myvideo'}selected="selected"{/if}>MyVideo</option>
  <option value="youtube" {if $u->VideoSource=='youtube'}selected="selected"{/if}>YouTube</option>
  </select>  </td>
  <td><input name="Position[{$u->Id}]" type="text" class="input" style="width:30px" value="{$u->Position}" maxlength="2"></td>
  <td><input name="DelVideo[{$u->Id}]" type="checkbox" value="1" /></td>
  </tr>
  {/foreach}
</table>
</div>
{/if}

{if $myvideosCount<'4'}
<div class="infobox">
<h3>{#Forums_UserVideosNew#}</h3>
<br />
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="profile_tableborder">
<tr>
  <td width="100"><strong>{#Forums_UserVideosVideoId#}</strong></td>
  <td width="100"><strong>{#Forums_UserVideosName#}</strong></td>
  <td width="50"><strong>{#Forums_UserVideosVideoSrc#}</strong></td>
  <td><strong>{#Forums_UserVideosVideoPos#}</strong></td>
</tr>
  {section name=new loop=$myvideosCountLoop}
  <tr>
  <td><input name="VideoNeu[]" type="text" class="input" style="width:100px" value="" maxlength="20" /></td>
  <td><input name="NameNeu[]" type="text" class="input" style="width:150px" value="" maxlength="100" /></td>
  <td>
  <select name="VideoSourceNeu[]" class="input">
  <option value="myvideo">MyVideo</option>
  <option value="youtube">YouTube</option>
  </select>  </td>
  <td><input name="PositionNeu[]" type="text" class="input" style="width:30px" value="1" maxlength="2"></td>
  </tr>
  {/section}
  </table>
  </div>
{/if}
</div>
{/if}





{if get_active('forums')}
<div class="box_innerhead">{#Profile_Avatar#}</div>
<div class="box_data">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="profile_tableborder">
<tr>
  <td width="40%" align="right" class="row_first">{#Profile_AvatarStandard#} </td>
  <td class="row_second">
 
  <label><input type="radio" name="Avatar_Default" value="1" {if $data.Avatar_Default==1}checked="checked" {/if}/>{#Yes#}</label>
  <label><input type="radio" name="Avatar_Default" value="0" {if $data.Avatar_Default==0}checked="checked" {/if}/>{#No#}</label>
  </td>
</tr>

{if $avatar && permission('own_avatar')}
<tr>
  <td width="40%" align="right" class="row_first">{#Profile_AvatarDelete#}</td>
  <td class="row_second">
  <input type="radio" name="Avatar_Del" value="1" />{#Yes#}
  <input name="Avatar_Del" type="radio" value="0" checked="checked" />{#No#}  </td>
</tr>
{/if}
<tr>
  <td width="40%" align="right" class="row_first">{#Profile_AvatarImage#}</td>
  <td class="row_second">{if $avatar}{$avatar}{else}{#Profile_AvatarNone#}{/if}</td>
</tr>
{if permission('own_avatar')}
<tr>
  <td width="40%" align="right" class="row_first">{#Profile_AvatarNew#}</td>
  <td nowrap="nowrap" class="profile_second">
    <div id="UpInf_1"></div><div id="loading_1" align="center"  style="display:none;"><img style="margin-bottom:15px" src="{$imgpath_page}loading.gif" alt="" /></div>
    <input id="fileToUpload_1" type="file" size="20" name="fileToUpload_1" class="input" />
    <input type="button" class="button" id="buttonUpload_1" onclick="return ajaxFileUpload('','1','200');" value="{#Global_Upload#}" />
    <input type="hidden" name="newAvatar" id="newFile_1" />

  </td>
</tr>
{/if}
</table>
</div>
{/if}


<div class="box_innerhead">{#Profile_Profile#}</div>
<div class="box_data">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="profile_tableborder">
<tr>
  <td class="row_first" width="40%" align="right">{#Profile_Public#}</td>
  <td class="row_second">
  <label><input name="Profil_public" type="radio" value="1" {if $data.Profil_public==1}checked="checked"{/if} />{#Yes#}</label> 
  <label><input name="Profil_public" type="radio" value="0" {if $data.Profil_public==0}checked="checked"{/if} />{#No#}</label>  </td>
</tr>
<tr>
  <td class="row_first" align="right">{#Profile_PublicAll#}</td>
  <td class="row_second">
  <label><input name="Profil_Alle" type="radio" value="1" {if $data.Profil_Alle==1}checked="checked"{/if} />{#Yes#}</label> 
  <label><input name="Profil_Alle" type="radio" value="0" {if $data.Profil_Alle==0}checked="checked"{/if} />{#Profile_PublicAll2#}</label> 
  </td>
</tr>
<tr>
  <td class="row_first" align="right">{#Profile_TownPublic#}</td>
  <td class="row_second">
  <label><input name="Ort_Public" type="radio" value="1" {if $data.Ort_Public==1}checked="checked"{/if} />{#Yes#}</label> 
  <label><input name="Ort_Public" type="radio" value="0" {if $data.Ort_Public==0}checked="checked"{/if} />{#No#}</label>  </td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right">{#Profile_SBirth#}</span></td>
  <td class="row_second">
  <label><input name="Geburtstag_public" type="radio" value="1" {if $data.Geburtstag_public==1}checked="checked"{/if} />{#Yes#}</label> 
  <label><input name="Geburtstag_public" type="radio" value="0" {if $data.Geburtstag_public==0}checked="checked"{/if} />{#No#}</label>  </td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right">{#Profile_BInv#}</td>
  <td class="row_second">
	<label><input name="Unsichtbar" type="radio" value="1" {if $data.Unsichtbar==1}checked="checked"{/if} />{#Yes#}</label>
	<label><input name="Unsichtbar" type="radio" value="0" {if $data.Unsichtbar==0}checked="checked"{/if} />{#No#}</label>  </td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right">{#Profile_RNl#}</td>
  <td class="row_second">
	<label><input name="Newsletter" type="radio" value="1" {if $data.Newsletter==1}checked="checked"{/if} />{#Yes#}</label>
	<label><input name="Newsletter" type="radio" value="0" {if $data.Newsletter==0}checked="checked"{/if} />{#No#}</label>  </td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right">{#Profile_REm#}</td>
  <td class="row_second">
	<label><input name="Emailempfang" type="radio" value="1" {if $data.Emailempfang==1}checked="checked"{/if} />{#Yes#}</label>
	<label><input name="Emailempfang" type="radio" value="0" {if $data.Emailempfang==0}checked="checked"{/if} />{#No#}</label>  </td>
</tr>
</table>
</div>


{if get_active('forums')}

<div class="box_innerhead">{#Profile_ForumsSettings#}</div>
<div class="box_data">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="profile_tableborder">
<tr>
  <td class="row_first" width="40%" align="right">{#Profile_ForumsSettingsThreads#}</td>
  <td class="row_second"><input name="Forum_Themen_Limit" type="text" class="input" value="{$smarty.post.Forum_Themen_Limit|stripslashes|default:$data.Forum_Themen_Limit|escape:html|stripslashes}" size="5" maxlength="2" /></td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right">{#Profile_ForumsSettingsPosts#}</td>
  <td class="row_second"><input name="Forum_Beitraege_Limit" type="text" class="input" value="{$smarty.post.Forum_Beitraege_Limit|stripslashes|default:$data.Forum_Beitraege_Limit|escape:html|stripslashes}" size="5" maxlength="2" /></td>
</tr>
</table>
</div>
{/if}


{if get_active('pn')}

<div class="box_innerhead">{#Profile_Guestbook_PrivateMessages#}</div>
<div class="box_data">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="profile_tableborder">
<tr>
  <td class="row_first" width="40%" align="right">{#Profile_RPn#}</td>
  <td class="row_second">
	<label><input name="Pnempfang" type="radio" value="1" {if $data.Pnempfang==1}checked="checked"{/if} />{#Yes#}</label>
	<label><input name="Pnempfang" type="radio" value="0" {if $data.Pnempfang==0}checked="checked"{/if} />{#No#}</label>  </td>
</tr>
<tr>
  <td class="row_first" width="40%" align="right">{#Profile_REPn#}</td>
  <td class="row_second">
	<label><input name="PnEmail" type="radio" value="1" {if $data.PnEmail==1}checked="checked"{/if} />{#Yes#}</label>
	<label><input name="PnEmail" type="radio" value="0" {if $data.PnEmail==0}checked="checked"{/if} />{#No#}</label>  </td>
</tr>
<tr>
  <td class="row_first" align="right">{#Profile_PopUpPn#}</td>
  <td class="row_second">
  <label><input name="PnPopup" type="radio" value="1" {if $data.PnPopup==1}checked="checked"{/if} />{#Yes#}</label>
  <label><input name="PnPopup" type="radio" value="0" {if $data.PnPopup==0}checked="checked"{/if} />{#No#}</label>  </td>
</tr>
</table>
</div>
{/if}

{if get_active('user_guestbook')}

<div class="box_innerhead">{#Profile_GuestbookUser#}</div>
<div class="box_data">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="profile_tableborder">
<tr>
  <td class="row_first" width="40%" align="right">{#Profile_AGb#}</td>
  <td class="row_second">
	<label><input name="Gaestebuch" type="radio" value="1" {if $data.Gaestebuch==1}checked="checked"{/if} />{#Yes#}</label>
	<label><input name="Gaestebuch" type="radio" value="0" {if $data.Gaestebuch==0}checked="checked"{/if} />{#No#}</label>  </td>
</tr>

<tr>
  <td class="row_first" align="right">{#Profile_Guestbook_OptNoGuests#}</td>
  <td class="row_second">
  <label><input name="Gaestebuch_KeineGaeste" type="radio" value="0" {if $data.Gaestebuch_KeineGaeste==0}checked="checked"{/if} />{#Yes#}</label>
	<label><input name="Gaestebuch_KeineGaeste" type="radio" value="1" {if $data.Gaestebuch_KeineGaeste==1}checked="checked"{/if} />{#Profile_Guestbook_OptNoGuests2#}</label>  </td>
</tr>
<tr>
  <td class="row_first" align="right">{#Profile_Guestbook_Moderated#}</td>
  <td class="row_second">
  <label><input name="Gaestebuch_Moderiert" type="radio" value="0" {if $data.Gaestebuch_Moderiert==0}checked="checked"{/if} />{#Yes#}</label>
	<label><input name="Gaestebuch_Moderiert" type="radio" value="1" {if $data.Gaestebuch_Moderiert==1}checked="checked"{/if} />{#Profile_Guestbook_Moderated2#}</label>  </td>
</tr>
<tr>
  <td class="row_first" align="right">{#Profile_Guestbook_MaxChars1#}</td>
  <td class="row_second"><input name="Gaestebuch_Zeichen" type="text" class="input" id="Gaestebuch_Zeichen" value="{$data.Gaestebuch_Zeichen}" size="5" maxlength="4" />
    {#Profile_Guestbook_MaxChars2#}</td>
</tr>
<tr>
  <td class="row_first" align="right">{#Profile_Guestbook_AllowSmilies#} </td>
  <td class="row_second">
  <label><input name="Gaestebuch_smilies" type="radio" value="1" {if $data.Gaestebuch_smilies==1}checked="checked"{/if} />{#Yes#}</label>
	<label><input name="Gaestebuch_smilies" type="radio" value="0" {if $data.Gaestebuch_smilies==0}checked="checked"{/if} />{#No#}</label>  </td>
</tr>
<tr>
  <td class="row_first" align="right">{#Profile_Guestbook_AllowBBcode#}</td>
  <td class="row_second">
  <label><input name="Gaestebuch_bbcode" type="radio" value="1" {if $data.Gaestebuch_bbcode==1}checked="checked"{/if} />{#Yes#}</label>
	<label><input name="Gaestebuch_bbcode" type="radio" value="0" {if $data.Gaestebuch_bbcode==0}checked="checked"{/if} />{#No#}</label>  </td>
</tr>
<tr>
  <td class="row_first" align="right">{#Profile_Guestbook_AllowImgCode#}</td>
  <td class="row_second">
   <label><input name="Gaestebuch_imgcode" type="radio" value="1" {if $data.Gaestebuch_imgcode==1}checked="checked"{/if} />{#Yes#}</label>
	<label><input name="Gaestebuch_imgcode" type="radio" value="0" {if $data.Gaestebuch_imgcode==0}checked="checked"{/if} />{#No#}</label>
  </td>
</tr>
</table>
</div>
{/if}
<p>
	<input type="submit" value="{#SaveProfile#}" class="button" accesskey="s">
    <input name="area" type="hidden" value="{$area}" />
    <input name="lang" type="hidden" value="{$smarty.session.lang}" />
	<input name="send" type="hidden" value="1" />
  </p>
</form></div>