{* $Header: /cvsroot/bitweaver/_bit_users/templates/user_information_inc.tpl,v 1.2.2.1 2005/06/28 20:51:12 squareing Exp $ *}
{strip}
{if $userData->mUserPrefs.user_information eq 'public' or $gBitUser.mUserId eq $userData.mUserId}
	<div class="row">
		{formlabel label="Login"}
		{forminput}
			{if $gBitSystemPrefs.display_name eq 'login'}<strong>{/if}
				{$userData->mInfo.login}
			{if $gBitSystemPrefs.display_name eq 'login'}</strong>{/if}
		{/forminput}
	</div>

	<div class="row">
		{formlabel label="Real Name"}
		{forminput}
			{if $gBitSystemPrefs.display_name eq 'real_name'}<strong>{/if}
				{$userData->mInfo.real_name}
			{if $gBitSystemPrefs.display_name eq 'real_name'}</strong>{/if}
		{/forminput}
	</div>

	{if $userData->mUserPrefs.country}
		<div class="row">
			{formlabel label="Country"}
			{forminput}
				{biticon ipackage="users" ipath="flags/" iname="`$userData->mUserPrefs.flag`" iexplain="`$userData->mUserPrefs.flag`"} {$userData->mUserPrefs.country}
			{/forminput}
		</div>

		<div class="row">
			{formlabel label="Language"}
			{forminput}
				{$userData->mUserPrefs.bitlanguage}
			{/forminput}
		</div>
	{/if}

	{foreach from=$customFields key=i item=field}
		<div class="row">
			{formlabel label=$field}
			{forminput}
				{$userData->mUserPrefs.$field}
			{/forminput}
		</div>
	{/foreach}

	{if $gBitUser->isAdmin()}
		<div class="row">
			{formlabel label="User ID"}
			{forminput}
				{$userData->mInfo.user_id}
			{/forminput}
		</div>

		<div class="row">
			{formlabel label="Registered Email"}
			{forminput}
				{$userData->mInfo.email}
			{/forminput}
		</div>
	{/if}

	{if $userData->mInfo.publicEmail}
		<div class="row">
			{formlabel label="Email Address"}
			{forminput}
				{$userData->mInfo.publicEmail}
			{/forminput}
		</div>
	{/if}

	<div class="row">
		{formlabel label="Member since"}
		{forminput}
			{$userData->mInfo.registration_date|bit_long_date}
		{/forminput}
	</div>

	<div class="row">
		{formlabel label="Last Login"}
		{forminput}
			{$userData->mInfo.last_login|bit_long_datetime}
		{/forminput}
	</div>

	{if $gBitSystem->isPackageActive( 'messu' ) and $userData->mUserPrefs.allowMsgs ne 'n' and $gBitUser->mUserId ne $userData->mUserId}
		<div class="row">
			{formlabel label="Send Message"}
			{forminput}
				{tr}Send a <a href="{$gBitLoc.MESSU_PKG_URL}compose.php?to={$userInfo.login}">personal message</a> to this user{/tr}
			{/forminput}
		</div>
	{/if}
{else}
	<div class="norecords">
		{tr}This users information is not publically viewable.{/tr}
	</div>
{/if}
{/strip}
