<script type='text/javascript'>
function displaylimit(thename, theid, thelimit){
var theform=theid!=""? document.getElementById(theid) : thename;
var limit_text='<font class="smallfont">{$lang['number_of_characters_remaining']} <span style="font-weight:900;" id="'+theform.toString()+'">'+thelimit+'</span></font>';
if (document.all||ns6)
document.write(limit_text)
if (document.all){
eval(theform).onkeypress=function(){ return restrictinput(thelimit,event,theform)}
eval(theform).onkeyup=function(){ countlimit(thelimit,event,theform)}
}
else if (ns6){
document.body.addEventListener('keypress', function(event) { restrictinput(thelimit,event,theform) }, true);
document.body.addEventListener('keyup', function(event) { countlimit(thelimit,event,theform) }, true);
}
}

</script>
{template}address_bar_part1{/template}
<a href="index.php?page=usercp&index=1">{$lang['User_Control_Panel']}</a>
{$_CONF['info_row']['adress_bar_separate']}
 {$lang['Your_Personal_Information']}
{template}address_bar_part2{/template}
<table border="0" width="98%" cellpadding="0" style="border-collapse: collapse;margin: auto;">
	<tr>
		<td width="20%" valign="top">{template}usercp_menu{/template}</td>
		<td width="80%" valign="top">
		<form name="info" method="post" action="index.php?page=usercp&control=1&info=1&start=1">
	<div align="center">
	<table border="0" cellspacing="1" width="100%" class="border" >
		<tr>
			<td class="tcat" width="80%" colspan="2" align="center">
			{$lang['Your_Personal_Information']}
			</td>
		</tr>
	{if {$_CONF['info_row']['active_birth_date']} == 1 }
<tr>
		<td class="row1">
		{$lang['Birth_date']}
		</td>
		<td class="row1">
{if {$_CONF['rows']['member_row']['bday_year']} == '' }
{template}birth_date{/template}
{else}
{template}usercp_birth_date{/template}
{/if}
		</td>
	</tr>
{/if}
		<tr>
			<td class="row1">
			{$lang['user_country']}
			</td>
			<td class="row1" width="60%">
				<input name="country" type="text" value="{$_CONF['rows']['member_row']['user_country']}" />
			</td>
		</tr>
			<tr>
		<td class="row1">
		{$lang['user_gender']}
		</td>
		<td class="row1" width="60%">
			<select name="gender" id="select_gender">
			{if {$_CONF['rows']['member_row']['user_gender']} == m}
				<option value="m" selected="selected">{$lang['gender_m']}</option>
				<option value="f">{$lang['gender_f']}</option>
			{else}
				<option value="m">{$lang['gender_m']}</option>
				<option value="f" selected="selected">{$lang['gender_f']}</option>
			{/if}
			</select>
		</td>
	</tr>
		<tr>
			<td class="row1">
			{$lang['user_website']}
			</td>
			<td class="row1" width="60%">
				{if {$_CONF['rows']['member_row']['user_website']} != ''}
				<input name="website" type="text" value="{$_CONF['rows']['member_row']['user_website']}" size="40" dir="ltr" />
				{else}
				<input name="website" type="text" value="http://" size="40" dir="ltr" />
				{/if}
			</td>
		</tr>
		<tr>
			<td class="row1">
			{$lang['Information_about_you']}
			</td>
			<td class="row1" width="60%">
				<textarea name="info" rows="1" id="info" cols="46" onKeyDown="textCounter(this,'progressbar1',255)" onKeyUp="textCounter(this,'progressbar1',255)" onFocus="textCounter(this,'progressbar1',255)">{$_CONF['rows']['member_row']['user_info']}</textarea>
 <br />
<script>
zextCounter(document.getElementById("info"),"progressbar1",255)</script>
<script type='text/javascript'>
displaylimit("info","info",255)
</script>
</td>
		</tr>
	</table>
	</div>
	<br />
{if !{$No_extrafields}}
  	<div align="center">
  <table border="0" cellspacing="1" width="100%" class="border" >
    <tr>
      <td class="tcat" width="80%" colspan="2" align="center">
      {$lang['Additional_information']}
      </td>
    </tr>

    {Des::while}{extrafields}
      <tr>
    <td class="row1">
    {$extrafields['name']}
    </td>
    <td width="60%" class="row1">
      {$extrafields['type_html']}
{if {$extrafields['required']} == 'yes'}
{$lang['required']}
 {/if}
    </td>
  </tr>

  {/Des::while}

  </table>

	</div>

	<br />
  {/if}
	{if {$_CONF['info_row']['allow_apsent']}}
	<div align="center">
	<table border="0" cellspacing="1" width="100%" class="border" >
		<tr>
			<td class="tcat" width="80%" colspan="3" align="center">
			{$lang['Absence_Settings']}
			</td>
		</tr>
		<tr>
			<td class="row1">
			{$lang['Do_you_want_to_absence']}
			</td>
			<td class="row1" width="60%" colspan="2">
				<select name="away" size="1">
					{if {$_CONF['rows']['member_row']['away']} == 0}
						<option value="1">{$lang['Yes']}</option>
						<option selected="selected" value="0">{$lang['No']}</option>
					{else}
						<option selected="selected" value="1">{$lang['Yes']}</option>
						<option value="0">{$lang['No']}</option>
					{/if}
				</select>
			</td>
		</tr>
		<tr>
					<td class="row1">
			{$lang['Reason_for_absence']}
			</td>
			<td class="row1" width="80%" colspan="2">
				<textarea name="away_msg" rows="1" id="away_msg" cols="46">{$_CONF['rows']['member_row']['away_msg']}</textarea>
 <br />
 			<font class="smallfont">{$lang['varchar']}</font>

</td>
		</tr>
		<tr>
			<td class="row1" width="80%" colspan="3">
				{$lang['you_naw']}
				{if {$_CONF['rows']['member_row']['away']} == 0}
					<strong>{$lang['No_Absent']}</strong>
				{else}
					<strong>{$lang['Absent']}</strong>
				{/if}
			</td>
		</tr>
		<tr>
			<td class="row1" width="80%" colspan="3">
{$lang['absence_Note']}
			</td>
		</tr>
	</table>
	</div>
	{/if}

	<br />

	<div align="center">

<table border="0" cellspacing="1" width="100%" class="border" >
		<tr>
			<td class="row1" width="80%" align="center">

		<input name="send" type="submit" value="{$lang['Adopted_entries']}" />
		</td>
		</tr>
	</table>
      </div>
      </form>

		</td>
	</tr>
</table>



<br />