{include file="$gentemplates/$header_tpl"}
{strip}
	<div class="header">{$lang.mobile.view_profile}</div>
	<div class="profile_page">
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
	{foreach item=element from=$elements name=foo}
		{if $smarty.foreach.foo.iteration eq 1}
        <tr>
            <td>
                <div class="subheader">{$lang.users.page[$element.page]}</div>
            </td>
        </tr>
		{/if}
        {if $element.value ne "" || $element.value_1 ne "" || $element.value_2 ne "" || $element.value_3 ne ""}
		{if $element.couple eq 0}
		<tr>
		    <td style="padding-bottom: 5px;" class=text align="{$default_left}">
		        <table>
		            <tr>
		                {if $element.category eq 'interests'}
		                <td>
		                    <font class="text_head">
		                        {$lang.profile.i}
		                        <img class="int_icon" src="{$site_root}{$template_root}{$template_images_root}/int_{$element.value}.gif" alt="{$element.lang_value}" align=middle>
		                        &nbsp;{$element.name}
		                    </font>
		                </td>
		                {/if}
		                {if $element.category eq 'partner_interests'}
		                <td style="padding-bottom: 5px;" class=text align="{$default_left}">
		                    <font class="text_head">
		                        {$lang.profile.soulmate}
		                        {if $element.value_1 eq 1}<img class="int_icon" src="{$site_root}{$template_root}{$template_images_root}/int_1.gif" alt="{$lang.interests_opt.1}" align=middle>{/if}
		                        {if $element.value_2 eq 1}<img class="int_icon" src="{$site_root}{$template_root}{$template_images_root}/int_2.gif" alt="{$lang.interests_opt.2}" align=middle>{/if}
		                        {if $element.value_3 eq 1}<img class="int_icon" src="{$site_root}{$template_root}{$template_images_root}/int_3.gif" alt="{$lang.interests_opt.3}" align=middle>{/if}
		                        {$element.name}
		                    </font>
		                </td>
		                {/if}
		                {if $element.category ne 'interests' && $element.category ne 'partner_interests'}
		                <td>
		                    <font class="text_head">
		                        {if $element.category ne 'custom'}
		                            {if $lang.profile[$element.name_for_lang]}
		                                {$lang.profile[$element.name_for_lang]}
		                            {else}
		                                {$element.name_for_lang}
		                            {/if}
		                        {else}
		                            {if $lang.userspr[$element.name_for_lang]}
		                                {$lang.userspr[$element.name_for_lang]}
		                            {else}
		                                {$element.name_for_lang}
		                            {/if}
		                        {/if}
		                    </font>
		                </td>
		                <td>
		                    {$element.value}
		                </td>
		                {/if}
		            </tr>
		        </table>
		    </td>
		</tr>
		{/if}
        {/if}
	{/foreach}
	</table>
	</div>
	<div class="profile_page"><input type="button" value="{$lang.mobile.back_to_user_homepage}" class="button" onclick="document.location.href='viewprofile.php?id={$form.id}'" /></div>
{/strip}
{include file="$gentemplates/$footer_tpl"}