{if('{empty}' != '1')}
	{if(is_worthy_specifically("s", {server}))}
		<script src="{site_host}templates/admin/js/timepicker/timepicker.js"></script>
		<script src="{site_host}templates/admin/js/timepicker/jquery-ui-timepicker-addon.js"></script>
		<script src="{site_host}templates/admin/js/timepicker/jquery-ui-timepicker-addon-i18n.min.js"></script>
		<script src="{site_host}templates/admin/js/timepicker/jquery-ui-sliderAccess.js"></script>
	{/if}
	<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>
							<td>Админ</td>
						</tr>
					</thead>
					<tbody id="muts">
						{func GetData:mutlist("{start}","{server}","{limit}")}
					</tbody>
				</table>
			</div>
			{else}
			<input class="btn btn-default w-100 disabled" type="button" value="{error}"></input>
			{/if}
		</div>
		<div id="pagination2"><center>{pagination}</center></div>
	</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_mute({server})" class="btn btn-default" type="button">Найти</button>
					</span>
					<input type="text" class="form-control" id="search_mute" placeholder="Введите ник/steam_id">
					<script> set_enter('#search_mute', 'search_mute({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>

		<div class="l_block">
			<div class="l_block_head">
				Статистика
			</div>
			<div class="l_block_c">
				<table class="table table-bordered mb-0">
					<tr>
						<td width="50%">Всего мутов</td>
						<td width="50%">{count}</td>
					</tr>
					<tr>
						<td width="50%">Активные</td>
						<td width="50%">{count_active}</td>
					</tr>
					<tr>
						<td width="50%">Перманентные</td>
						<td width="50%">{count_permanent}</td>
					</tr>
					<tr>
						<td width="50%">Временные</td>
						<td width="50%">{count_temporal}</td>
					</tr>
				</table>
			</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}
