{include file="$gentemplates/$header_tpl"}
{strip}
	<div class="header">{$lang.mobile.my_mailbox}</div>
	<div id="mailbox_menu">
		<div>
			<span><a href="{$form.inbox_link}" {if $mailbox_menu_sel ne 'inbox'}class="unselected"{/if}>{$lang.mobile.inbox}</a></span>
			<span><a href="{$form.outbox_link}" {if $mailbox_menu_sel ne 'outbox'}class="unselected"{/if}>{$lang.mobile.sent}</a></span>
			<span id="last"><a href="{$form.write_link}" {if $mailbox_menu_sel ne 'new'}class="unselected"{/if}>{$lang.mobile.new_message}</a></span>
		</div>
	</div>
	<div id="mail">
		<table cellpadding="0" cellspacing="0">
			<tr>
				<td valign="top">
					<div id="user_icon"><img src="{$data.icon_path}" alt="" /></div>
				</td>
				<td valign="top">
					<div id="user_info">
						<div id="user_login"><span><a href="{$data.profile_link}">{$data.name}</a></span></div>
						<div id="user_city">{if $data.city_name}{$data.city_name}{else}&nbsp;{/if}</div>
						<div id="user_age">{$data.age}&nbsp;{$lang.mobile.years_old}</div>
						<div id="user_photos">{$data.photo_count}&nbsp;{$lang.mobile.photo}</div>
					</div>
				</td>
				{if $par ne 'from'}
				<td valign="top" align="right">
					<form action="{$data.reply_link}" method="POST">
					<input type="submit" class="button" value="{$lang.mobile.reply}" />
					</form>
				</td>
				{/if}
			</tr>
		</table>
		<div id="subject">{$data.subject_msg}</div>
		<div>{$data.text_msg}</div>
	</div>
{/strip}
{include file="$gentemplates/$footer_tpl"}