<div class="sidebar float-left">
	<div class="block navigation">
		<div class="header">
			Навигация <i aria-hidden="true" class="fa fa-align-justify float-right"></i>
		</div>
		<? echo $desing['left_menu']; ?>
	</div>
	<div class="block navigation ulist">
		<div class="header">
			Игровые сервера <i aria-hidden="true" class="fa fa-steam float-right"></i>
		</div>
		{servers}
	</div>
	<div class="last-events m-b-25">
		<div class="header">
			Последние события <i aria-hidden="true" class="fa fa-bullhorn float-right"></i>
		</div>
		<div id="lastsignup"></div>
	</div>
	<div class="block">
		<div class="header">
			Последние на форуме
			<i class="fa fa-commenting float-right" aria-hidden="true"></i>
		</div>
		<div id="lastforum"></div>
	</div>
	<div class="block">
		<div class="header">
			Пользователи онлайн
			<span class="float-right" id="users_online_number"></span>
		</div>
		<div class="online-users" id="online_users"></div>
		{func Widgets:online_users()}
	</div>
	<div class="block">
		<div class="header">
			Топ 5 пользователей
			<i class="fa fa-trophy float-right" aria-hidden="true"></i>
		</div>
		<div class="top-users" id="topusers"></div>
	</div>
</div>

<script>
	jQuery(document).ready(function($)
	{
		load_bans('{start}', '{server}');
	});

	function load_bans(start, server)
	{
		$.ajax({
			type: 'POST',
			url: '../templates/SquareLine/php/unban.php',
			data: 'token='+$('#token').val()+'&start='+start+'&server='+server,
			success: function(data)
			{
				if(data.indexOf('<td>') != -1)
					$('#bans thead').show();

				$('#bans').show();
				$('#bans tbody').html(data);

				if(data.indexOf('<td>') == -1)
					$('#bans > tbody > div').addClass('m-l-5 m-b-5 m-r-5 m-t-5');
			}
		});
	}
</script>

<div class="content float-right">
	<a class="button-big active float-right" href="../bans/add_ban"><i class="fa fa-plus-square"></i> Добавить заявку</a>

	<div class="clear"></div>

	<div class="block">
		<div class="header">Заявки на разбан</div>

		<table class="table-list" id="bans">
			<thead class="table-list th">
				<tr>
					<th align="left" width="20%">Пользователь</th>
					<th align="left" width="30%">Ник</th>
					<th align="left" width="90">Статус</th>
					<th align="left">Сервер</th>
					<th align="left" width="20%">Дата</th>
				</tr>
			</thead>
			{func GetData:bans_applications("{start}","{server}","{limit}")}
		</table>
	</div>

	<center><div>{pagination}</div></center>
</div>