<div class="server-block-info">
	<div class="server-name float-left">{name}</div>
	<div class="server-address float-right"><i class="fa fa-map-marker" aria-hidden="true"></i> <a href="steam://connect/{address}">{address}</a></div>
	<div class="clear"></div>
	<div class="server-info">
		<img src="{map_img}" alt="{map_name}">
		<div class="server-data float-left">
			<p><i class="fa fa-globe" aria-hidden="true"></i> Локация: Москва</p>
			<p><i class="fa fa-picture-o" aria-hidden="true"></i> Карта: {map_name}</p>
			<p><i class="fa fa-users" aria-hidden="true"></i> <a href="#" onclick="get_players({id}); return false" data-toggle="modal" data-target="#server_{id}">Онлайн: {now} / {max}</a></p>
		</div>
		<a href="steam://connect/{address}"><div class="server-connect float-right">Подключиться</div></a>
	</div>
</div>

<script>$('#server_{id}').modal('hide')</script>

<div id="server_{id}" class="modal fade bs-example-modal-lg table-list" tabindex="-1" role="dialog" aria-hidden="true">
	<div class="modal-dialog modal-lg">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title">Игроки</h4>
			</div>
			<div class="modal-body">
				<table class="table table-bordered">
					<thead>
						<tr>
							<td>#</td>
							<td>Ник</td>
							<td>Убийств</td>
							<td>Время</td>
							<? if ('{rcon}' == '1' && isset($_SESSION['id']) && (strripos($users_groups[$_SESSION['rights']]['rights'], "s") !== false)) { ?>
							<td>Действие</td>
							<? } ?>
						</tr>
					</thead>
					<tbody class="server_players" id="players{id}"></tbody>
				</table>
				
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">Закрыть</button>
			</div>
		</div>
	</div>
</div>