{include file="$gentemplates/$header_tpl"}
{strip}
	<div class="header">{$lang.mobile.view_profile}</div>
	<div class="profile_page">
		{if $is_iphone eq 1}
		<div class="profile_left">&nbsp;</div>
		<div class="profile_center">
		{/if}
		<table cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td valign="top" width="70">
					<div id="user_icon"><img src="{$data.icon_path}" alt="" /></div>
				</td>
				<td valign="top">
					<div id="user_info">
						<div id="user_login"><span>{$data.login}</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 $is_iphone eq 1}
				<td align="right">
					<div class="user_status_left">&nbsp;</div>
					<div class="user_status_center">{if $data.is_online eq 1}{$lang.mobile.online}{else}{$lang.mobile.offline}{/if}</div>
					<div class="user_status_right">&nbsp;</div>
					<div style="clear: both;"></div>
				</td>
				{/if}
			</tr>
		</table>
		{if $is_iphone eq 1}
		</div>
		<div class="profile_right">&nbsp;</div>
		<div style="clear: both;"></div>
		{/if}
		<div id="user_completion">
			{$lang.mobile.profile_completion}&nbsp;{$data.complete}%
		</div>
		<div id="user_links" class="user_links">
			<a href="mailbox.php?sel=write&id={$data.id}">{$lang.mobile.send_a_message}</a>
			{if isset($pages)}
			<div>
			{foreach item=item from=$pages}
			<a href="viewprofile.php?sel=page&page={$item.page}&id={$data.id}">{$item.page_name}</a><br>
			{/foreach}
			</div>
			{/if}<br>
			<a href="viewprofile.php?sel=wall&id={$data.id}">{$lang.mobile.wall}</a><br>
			{if $user_id > 2}
			<a href="viewprofile.php?sel=photos&id={$data.id}">{$lang.mobile.photos}</a><br>
			{/if}
		</div>
	</div>
{/strip}
{include file="$gentemplates/$footer_tpl"}