<div id="selListAll">
	<h2 class="clsManageAnswers">{$LANG.viewmembers_title}</h2>
	{if $myobj->isShowPageBlock('form_settings')}
		<p><a href="editMembers.php?uid={$myobj->getFormField('uid')}">{$LANG.edit_this_member}</a></p>
		<p>&nbsp;</p>
	{/if}
	{include file='../general/information.tpl'}
	{if $myobj->isShowPageBlock('form_settings')}
		<form name="form_view_settings" id="form_view_settings" method="post" action="{$myobj->getCurrentUrl(true)}">
			<table summary="{$LANG.editmembers_tbl_summary}" class="clsManageSettings">
			  <tr>
				<td colspan="2"><h3 class="clsViewMemberHeading">{$LANG.common_account_details}</h3></td>
			  </tr>
			  {if $myobj->getFormField('name') neq $CFG.user.not_allowed }
			  {if isUserImageAllowed()}
				<tr>
					<th>&nbsp;</th>
					<td class="clsFormFieldCellDefault">
						<div id="selUserImage">
						{if $user_details_arr.photo_server_url AND $user_details_arr.photo_ext OR $user_details_arr.image_path}
							<p id="selImageBorder">{$myobj->displayProfileImage($user_details_arr, 'small' , false)}</p>
						{/if}
						</div>
					</td>
				</tr>
			{/if}
			  <tr>
				<th class="clsViewMembers">{$LANG.common_user_email}</th>
				<td>{$myobj->getFormField('email')}</td>
			  </tr>
			  <tr>
				<th>{$LANG.login_user_name}</th>
				<td>{$myobj->getFormField('name')}</td>
			  </tr>
			  <tr>
				<th>{$LANG.common_gender}</th>
				<td>{$myobj->getFormField('gender')}</td>
			  </tr>
			  <tr>
				<th>{$LANG.common_user_access}</th>
				<td>{$myobj->getFormField('user_access')}</td>
			  </tr>
			  <tr>
				<th>{$LANG.common_bio}</th>
				<td>{$myobj->getFormField('bio')|nl2br}</td>
			  </tr>
			  <tr>
				<th>{$LANG.editmembers_subscribe_keywords}</th>
				<td>{$myobj->getFormField('subscribe_keywords')}</td>
			   </tr>
			 {if !$CFG.admin.module.facebook or !$myobj->isFacebookUser($myobj->getFormField('uid'))}

			   <tr>
					<td colspan="2"><h3 class="clsViewMemberHeading">{$LANG.editmembers_all_email_notification}</h3></td>
			   </tr>
			   <tr>
					<th>{$LANG.editmembers_keyword_mail}</th>
					<td>{$myobj->getFormField('keyword_mail') eq 'Yes')? $LANG.common_yes:$LANG.common_no}</td>
			   </tr>
			   <tr>
					<th>{$LANG.editmembers_reply_mail}</th>
					<td>{$myobj->getFormField('reply_mail') eq 'Yes')? $LANG.common_yes:$LANG.common_no}</td>
			   </tr>
			   <tr>
					<th>{$LANG.editmembers_favorite_mail}</th>
					<td>{$myobj->getFormField('favorite_mail') eq 'Yes')? $LANG.common_yes:$LANG.common_no}</td>
			   </tr>
			   <tr>
					<th>{$LANG.editmembers_best_answer_mail}</th>
					<td>{$myobj->getFormField('best_ans_mail') eq 'Yes')? $LANG.common_yes:$LANG.common_no}</td>
			   </tr>
			   <tr>
					<th>{$LANG.editmembers_abuse_mail}</th>
					<td>{$myobj->getFormField('abuse_mail') eq 'Yes')? $LANG.common_yes:$LANG.common_no}</td>
			   </tr>
			   <tr>
					<th>{$LANG.editmembers_internal_mail}</th>
					<td>{$myobj->getFormField('internal_mail') eq 'Yes')? $LANG.common_yes:$LANG.common_no}</td>
			   </tr>
			   {/if}

			   <tr>
					<td colspan="2"><h3 class="clsViewMemberHeading">{$LANG.index_block_settings}</h3></td>
			   </tr>
			   {foreach key=pifKey item=pifValue from=$populateIndexPageFields_arr.val}
				   <tr>
						<th>{$pifValue.label}</th>
						<td>{$pifValue.value}</td>
					</tr>
			   {/foreach}
			   {else}
			   	   <tr>
					<td colspan="2"><p class="clsBold clsTwitterAlertIcon">{$LANG.twitter_user}</p></td>
			   </tr>	
			   {/if}
			</table>
		</form>
	{/if}
</div>