{if 1}
<!-- begin personal info -->
<table width="100%" border="0" cellpadding="2" cellspacing="0">
{assign var="page_number" value=0}
{foreach item=element from=$elements name=foo}


	{if $element.page != $page_number}
	   {assign var="page_number" value=$page_number+1}
		{if $count is not even && $count ne 0}
			<td></td></tr>
		{/if}
		{assign var="count" value=0}
		<tr valign=middle>
			<td height="25" colspan="2">
				<h3 class="p-b5">{$lang.users.page[$element.page]} ({$percent[$element.page].percent}%)
					<ins onclick="javascript:location.href='{$site_root}/{$seo.registration}?sel={$element.page}&edit=1';" class="edit-icon sub_icon" title="{$lang.button.edit_this_section}">&nbsp;</ins>
				</h3>
			</td>
		</tr>
	{/if}
	{if $element.value ne "" || $element.couple_value ne "" || $element.value_1 ne "" || $element.value_2 ne "" || $element.value_3 ne "" || $element.couple_value_1 ne 0 || $element.couple_value_2 ne 0 ||  $element.couple_value_3 ne 0}
		{if $element.couple eq 0}
			{if $count is even}<tr>{/if}

			<td width="50%" style="padding: 10px 5px;" class="text" align="{$default_left}">
				<table width="95%">
					<tr>
						<td width="60%">
							{if $element.category eq 'interests'}
								{$lang.builder.i}
								&nbsp;
								<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_{$element.value}.png" alt="{$element.lang_value}" align=middle>
								&nbsp;{$element.name}
							{/if}
							{if $element.category eq 'partner_interests'}
								{$lang.profile.soulmate}
								&nbsp;
								{if $element.value_1}<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_1.png" alt="{$lang.interests_opt.1}" align="middle">{/if}
								{if $element.value_2}<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_2.png" alt="{$lang.interests_opt.2}" align="middle">{/if}
								{if $element.value_3}<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_3.png" alt="{$lang.interests_opt.3}" align="middle">{/if}
								&nbsp;
								{$element.name}
								{assign var="iter" value=$smarty.foreach.foo.iteration+1}
							{/if}
							{if $element.category ne 'interests' && $element.category ne 'partner_interests'}
								<span class="name_for_element">
									{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}
								</span>
							{/if}
						</td>
						<td>
							{if $element.category ne 'interests' && $element.category ne 'partner_interests'}
								{$element.value}
							{/if}
						</td>
					</tr>
				</table>
			</td>
			{if $count is not even}</tr>{/if}
		{/if}
		{assign var="count" value=$count+1}
		{if $element.couple}
			{if ($element.couple eq 1 && $prev_couple eq 0) || $element.couple eq 1 && $count eq 1}
				{if $count is not even}<td></td></tr>{/if}
				<tr>
                                    <!-- background-color:#ffffff;border-{$default_right}:10px solid #F4F4F4;-->
					<td width="50%" style="padding:5px;">
						<div class="header header_cont" style="height:30px;padding-top:10px;padding-{$default_right}:10px;">{$lang.user.first}</div>
					</td>

					<td width="50%" style="padding:5px;">
						<div class="header header_cont" style="height:30px;padding-top:10px;padding-{$default_right}:10px;">{$lang.user.second}</div>
					</td>
				</tr>
			{/if}
			<tr>
				<td width="50%" style="padding:5px;">
					<table width="100%">
						<tr>
							{if $element.category eq 'interests'}
							<td width="60%">
								{if $element.value ne ""}
								<font class="text_head">
									I&nbsp;
									<img src="{$site_root}{$template_root}{$template_images_root}/int_{$element.value}.png" alt="{$element.lang_value}" align="middle">
									&nbsp;{$element.name}
								</font>
								{/if}
							</td>
							{/if}
							{if $element.category eq 'partner_interests'}
								{if $element.value_1 || $element.value_2 ||  $element.value_3}
									{$lang.profile.soulmate}
									&nbsp;
									{if $element.value_1 eq 1}<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_1.png" alt="{$lang.interests_opt.1}" align="middle">{/if}
									{if $element.value_2 eq 1}<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_2.png" alt="{$lang.interests_opt.2}" align="middle">{/if}
									{if $element.value_3 eq 1}<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_3.png" alt="{$lang.interests_opt.3}" align="middle">{/if}
									&nbsp;
									{$element.name}
									{assign var="iter" value=$smarty.foreach.foo.iteration+1}
								{/if}
                            {/if}							
							{if $element.category ne 'interests' && $element.category ne 'partner_interests'}
							<td width="60%">
								<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>
								{if $element.value eq ""}{$lang.ref.none_data}{else}{$element.value}{/if}
							</td>
							{/if}
						</tr>
					</table>
				</td>

				<td width="50%" style="padding:5px;">
					{if $element.couple_value_1 || $element.couple_value_2 || $element.couple_value_3 || $element.couple}
					<table width="100%">
						<tr>
							{if $element.category eq 'interests'}
							<td width="60%">
								{if $element.couple_value ne ""}
								<font class="text_head">
									I&nbsp;
									<img src="{$site_root}{$template_root}{$template_images_root}/int_{$element.couple_value}.png" alt="{$element.couple_lang_value}" align="middle">
									&nbsp;{$element.name}
								</font>
								{/if}
							</td>
							{/if}
							{if $element.category eq 'partner_interests'}	
							{if $element.couple_value_1 ne 0 || $element.couple_value_2 ne 0 ||  $element.couple_value_3 ne 0}
	
                                {$lang.profile.soulmate}
                                &nbsp;
                                {if $element.couple_value_1 eq 1}<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_1.png" alt="{$lang.interests_opt.1}" align="middle">{/if}
                                {if $element.couple_value_2 eq 1}<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_2.png" alt="{$lang.interests_opt.2}" align="middle">{/if}
                                {if $element.couple_value_3 eq 1}<img style="position:relative;top:2px;" src="{$site_root}{$template_root}{$template_images_root}/int_3.png" alt="{$lang.interests_opt.3}" align="middle">{/if}
                                &nbsp;
                                {$element.name}
                                {assign var="iter" value=$smarty.foreach.foo.iteration+1}
                                    {*if $elements[$iter].category != 'partner_interests'}
                                        {$elements[$iter].category} <br /><br />
                                    {/if*}
                            {/if}		
							{/if}
							{if $element.category ne 'interests' && $element.category ne 'partner_interests'}
							<td width="60%">
								<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>
								{if $element.couple_value eq ""}{$lang.ref.none_data}{else}{$element.couple_value}{/if}
							</td>
							{/if}
						</tr>
					</table>
					{/if}
				</td>
			</tr>
		{/if}
		{assign var="prev_couple" value=$element.couple}
	{/if}

{/foreach}
</table>

	{if $data_1.complete < 0}
		<h3 class="p-b5">{$lang.subsection.personal_info_text}</h3>
	{else}
    {/if}
    {if 0}    
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{$lang.users.nick}:</font><br>{$data_1.login}</td>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{$lang.profile.im}:</font>&nbsp;{$data_1.user_subtype}&nbsp;({$data_1.user_type})
		</tr>
		<tr>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{$lang.users.fname}:</font><br>{$data_1.fname}</td>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{$lang.profile.looking_for}:</font><br>{$data_1.looking_user_subtypes} ({$data_1.looking_user_type}) {$data_1.min_age}&nbsp;-&nbsp;{$data_1.max_age} {$lang.profile.years}
			{if $data_1.relationship}<br><font class="text_head">{$lang.users.for}:</font> {$data_1.relationship}{/if}</td>
		</tr>
		<tr>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{$lang.users.sname}:</font><br>{$data_1.sname}</td>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{$lang.users.date_birthday}:</font><br>{$data_1.date_birthday}</td>
		</tr>
		<tr>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{$lang.users.country}:</font><br>{$data_1.country}</td>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{$lang.users.zipcode}:</font><br>{$data_1.zipcode}</td>
		</tr>
		<tr>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{$lang.users.region}:</font><br>{$data_1.region}</td>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{$lang.users.nationality}:</font><br>{$data_1.nationality}</td>
		</tr>
		<tr>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{$lang.users.city}:</font><br>{$data_1.city}</td>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{$lang.users.language}:</font><br>{$data_1.languages}</td>
		</tr>
		<tr>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{$lang.users.email}:</font><br>{$data_1.email}</td>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{if $voipcall_feature}{$lang.users.phone}:</font><br>{$data_1.phone}{/if}</td>
		</tr>
		<tr>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{$lang.users.site_language}:</font><br>{$data_1.site_language}</td>
			<td width="50%" style="padding-bottom: 5px;" class="text" align="{$default_left}"><font class="text_head">{$lang.users.headline}:</font><br>{if $data_1.headline}{$data_1.headline}{/if}</td>
		</tr>
		</table>
	{/if}	
<!-- end personal info -->
{/if}
