{include file="$gentemplates/$header_tpl"}
{strip}
	<div class="header">{$lang.mobile.edit_my_profile}</div>
	{if $error}
	<div class="error_msg">*&nbsp;{$error}</div>
	{/if}
	<div id="profile_form">
		<form action="homepage.php" method="post" enctype="multipart/form-data">
		<input type="hidden" name="sel" value="save_profile" />
		<div class="field_title">{$lang.mobile.nick}</div>
		<div class="field_input">
			<input type="text" name="login" value="{$data.login}" />
		</div>
		<div class="field_title">{$lang.mobile.fname}</div>
		<div class="field_input">
			<input type="text" name="fname" value="{$data.fname}" />
		</div>
		<div class="field_title">{$lang.mobile.sname}</div>
		<div class="field_input">
			<input type="text" name="sname" value="{$data.sname}" />
		</div>
		<div class="field_title">{$lang.mobile.email}</div>
		<div class="field_input">
			<input type="text" name="email" value="{$data.email}" />
		</div>
		<div class="field_title">{$lang.mobile.password} ({$lang.mobile.leave_pass_empty})</div>
		<div class="field_input">
			<input type="password" name="pass" value="{$data.pass}" />
		</div>
		<div class="field_title">{$lang.mobile.birthday}</div>
		<div class="field_input">
			<select name="b_{$date_part1_name}">
			{foreach item=item from=$date_part1}<option value="{$item.value}" {if $item.sel}selected{/if}>{if $date_part1_name eq 'month'}{$item.name}{else}{$item.value}{/if}</option>{/foreach}
			</select>&nbsp;
			<select name="b_{$date_part2_name}">
			{foreach item=item from=$date_part2}<option value="{$item.value}" {if $item.sel}selected{/if}>{if $date_part2_name eq 'month'}{$item.name}{else}{$item.value}{/if}</option>{/foreach}
			</select>&nbsp;
			<select name="b_{$date_part3_name}">
			{foreach item=item from=$date_part3}<option value="{$item.value}" {if $item.sel}selected{/if}>{if $date_part3_name eq 'month'}{$item.name}{else}{$item.value}{/if}</option>{/foreach}
			</select>
		</div>
		<div class="field_title">{$lang.mobile.i_am}</div>
		<div class="field_input">
			<select name="id_user_type">
			{foreach item=item from=$user_types_val}
				<option value="{$item.id}" {if $item.id eq $data.user_type}selected{/if}>{$item.name}</option>
			{/foreach}
			</select>
		</div>
		<div class="field_title">{$lang.mobile.seeking_a}</div>
		<div class="field_input">
			<select name="id_user_looking_type">
			{foreach item=item from=$user_types_val}
				<option value="{$item.id}" {if $item.id eq $data.user_looking_type}selected{/if}>{$item.name}</option>
			{/foreach}
			</select>
		</div>
		<div id="btn">
			<input type="submit" value="{$lang.mobile.save}" class="button"/>
		</div>
		</form>
	</div>
{/strip}
{include file="$gentemplates/$footer_tpl"}