{if('{empty}' != '1')}
	<div class="r_block">
		<div class="r_block_head">
			Статистика
		</div>
		<div class="r_block_c pad0">
			{if('{error}' == '')}
			<div class="table-responsive mb-0">
				<table class="table table-bordered table-hover">
					<thead>
						<tr>
							<td>Место</td>
							<td>Ник</td>
							<td>Убийств</td>
							<td>Смертей</td>
							<td>В голову</td>
							{if('{type}' == '2')}
								<td>Звание</td>
							{/if}
							{if(in_array({type}, array(1,2,3,4,5)))}
							<td>Skill</td>
							{/if}
							{if('{type}' == '6')}
							<td>Ранг</td>
							{/if}
						</tr>
					</thead>
					<tbody id="stats">
						{func GetData:stats("{start}","{server}","{limit}")}
					</tbody>
				</table>
			</div>
			{else}
			<input class="btn btn-default w-100 disabled" type="button" value="{error}"></input>
			{/if}
		</div>
	</div>
	<div id="pagination2"><center>{pagination}</center></div>
</div>
<div class="right_block">
	<div class="l_block">
		<div class="l_block_head">
			Найти
		</div>
		<div class="l_block_c">
			<div class="input-group">
				<span class="input-group-btn">
					<button onclick="search_stats({server})" class="btn btn-default" type="button">Найти</button>
				</span>
				<input type="text" class="form-control" id="search_stats" placeholder="Введите ник/steam_id/ip">
				<script> set_enter('#search_stats', 'search_stats({server})'); </script>
			</div>
		</div>
	</div>

	<div class="l_block">
		<div class="l_block_head">
			Сортировать
		</div> 
		<div class="l_block_c">
			<ul class="nav nav-pills nav-stacked">
				{servers}
			</ul>
		</div>
	</div>

	{if(is_auth())}
		{include file="/home/right_col.tpl"}
	{else}
		{include file="/index/reg_form.tpl"}
	{/if}
</div>
{else}
	<div class="r_block">
		<div class="r_block_head">
		Статистика
		</div> 
		<div class="r_block_c">
			<input class="btn btn-default w-100 disabled" type="button" value="Статистика пуста. Сервера не привязаны к источникам информации."></input>
		</div>
	</div>
</div>

<div class="right_block">
	<div class="l_block">
		<div class="l_block_head">
			Сортировать
		</div> 
		<div class="l_block_c">
			<ul class="nav nav-pills nav-stacked">
				<input class="btn btn-default w-100 disabled" type="button" value="Серверов нет"></input>
			</ul>
		</div>
	</div>

	{if(is_auth())}
		{include file="/home/right_col.tpl"}
	{else}
		{include file="/index/reg_form.tpl"}
	{/if}
</div>
{/if}

