{include file="./toolbar.tpl"}
<div class="col-md-12">
	<div class="panel-heading clearfix">
		<img src="{avatar user_id=$user->user_id type=$user->avatar}" alt="{t s1=$user->realname|default:$user->login|escape}Аватар пользователя %s{/t}" class="avatar img-thumbnail pull-left">
		<h1>{$user->realname|default:$user->login|escape} {if $user->realname}a.k.a. {$user->login|escape}{/if}</h1>
	</div>
	<div class="row-md-12">
		<table class="table span6">
			{if $user->register_date}
			<tr>
				<td>{t}Зарегистрирован{/t}:</td><td>{$user->register_date|date_format:"%H:%M %d/%m/%Y"}</td>
			</tr>
			{/if}
			{if $user->last_visit}
			<tr>
				{$last_visit=($user->online)?$user->online:$user->last_visit}
				<td>{t}Последний раз был здесь{/t}:</td><td>{$last_visit|date_format:"%H:%M %d/%m/%Y"}</td>
			</tr>
			{/if}
			{if $user->email}
			<tr>
				<td>E-mail:</td><td>{$user->email|escape}</td>
			</tr>
			{/if}
			{if $user->icq}
			<tr>
				<td>ICQ:</td><td>{$user->icq|escape}</td>
			</tr>
			{/if}
			{if $user->website}
			<tr>
				<td>Website:</td><td><a href="http://{$user->website|escape}">http://{$user->website|escape}</a></td>
			</tr>
			{/if}
			{if $user->jabber}
			<tr>
				<td>Jabber:</td><td>{$user->jabber|escape}</td>
			</tr>
			{/if}
			{if $user->msnm}
			<tr>
				<td>Microsoft Messanger:</td><td>{$user->msnm|escape}</td>
			</tr>
			{/if}
			{if $user->skype}
			<tr>
				<td>Skype:</td><td>{$user->skype|escape}</td>
			</tr>
			{/if}
			{if $userStat}
			{foreach $userStat as $data}
			<tr>
				<td>{t}{$data.name|escape}{/t}:</td><td>{if $data.path}<a href="{$data.path}">{$data.count}</a>{else}{$data.count}{/if}</td>
			</tr>
			{/foreach}
			{/if}
		</table>
	</div>
</div>