{include file="header.tpl"}

<div id="sidebar">
{include file="sidebar.tpl"}
</div>

<div class="mainContent">

	<div class="news_right" id="news">
	<div class="news_cnr_top"><img src="images/cnr_tl.gif" alt="corner" width="8" height="8" class="cnr" style="display: none" /></div>
	<h2>{$smarty.const.ABOUT_YOU}</h2>
		<p class="center-align">
		{if $thumb}
			<a href="member.php?action=viewfull"><img src="{$thumb}" alt="{$records.0.user}" /></a><br />
			<a href="member.php?action=delete">{$smarty.const.DELETE_PROFILE_IMAGE}</a>
		{else}
			<a href="member.php"><img src="images/no_image.gif" alt="No Image" /></a><br />
			<a href="useredit.php">{$smarty.const.ADD_PROFILE_IMAGE}</a>
		{/if}
		</p>
		<p>
		{$records.0.first_name}	{$records.0.last_name}<br />
		{$smarty.const.LOGGED_IN_AS} {$records.0.user}<br />
		{$smarty.const.PHONE} {if $records.0.phone}{$records.0.phone}{else}{$smarty.const.NO_INFO}{/if}<br />
		{$smarty.const.ALT_PHONE} {if $records.0.alt_phone}{$records.0.alt_phone}{else}{$smarty.const.NO_INFO}{/if}<br />
		{$smarty.const.FAX} {if $records.0.fax}{$records.0.fax}{else}{$smarty.const.NO_INFO}{/if}<br />
		{$smarty.const.REGISTERED_ON}<br />
		{$records.0.reg_date}<br />
		{$smarty.const.ACCOUNT_TYPE} {if $admin} Admin {elseif $seller} Seller {else} User {/if}
		</p>
		
	<div class="news_cnr_bottom"><img src="images/cnr_bl.gif" alt="corner" width="8" height="8" class="cnr" style="display: none" /></div>
	</div> 


<h1>{$smarty.const.MEMBER_HOME}</h1>
	<p>{$smarty.const.MEMBER_NEWS}</p>

{if $success}
	<p class="green"><strong>{$success}</strong></p>
{elseif $error_message}
	<p class="red"><strong>{$error_message}</strong></p>
{/if}

{if $fullview}
<p class="center-align">
<a href="member.php"><img src="{$img}" alt="{$records.0.user}" /></a><br />
<a href="member.php?action=delete">{$smarty.const.DELETE_PROFILE_IMAGE}</a>
</p>
{/if}

</div>

{include file="footer.tpl"}