<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 max float-left">
            <p>
                <span class="float-left"><i class="fa fa-globe" aria-hidden="true"></i> Локация: Москва</span>
                <span class="m-l-25 float-right"><i class="fa fa-id-card-o" aria-hidden="true"></i> <a href="../admins?server={id}">Список админов</a></span>
            </p>
            <p>
                <span class="m-t-7 float-left"><i class="fa fa-picture-o" aria-hidden="true"></i> Карта: <span class="map">{map_name}</span></span>
                <span class="m-t-7 m-l-25 float-right"><i class="fa fa-ban" aria-hidden="true"></i> <a href="../banlist?server={id}">Бан лист</a></span>
            </p>
            <p>
                <span class="float-left"><i class="fa fa-users" aria-hidden="true"></i> Онлайн:  {now}/{max} </span>
                <span class="m-l-25 float-right"><i class="fa fa-list-alt" aria-hidden="true"></i> <a onclick="get_players({id});" class="c-p" data-toggle="modal" data-target="#server{id}">Список игроков</a></span>
            </p>
        </div>
        <a href="steam://connect/{address}">
            <div class="server-connect float-right">Подключиться</div>
        </a>
    </div>
</div>

<div id="server{id}" class="modal fade">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title">Игроки</h4>
            </div>
            <div class="modal-body">
                <div class="table-responsive mb-0">
                    <table class="table table-bordered">
                        <thead>
                            <tr>
                                <td>#</td>
                                <td>Ник</td>
                                <td>Убийств</td>
                                <td>Время</td>
                                {if('{rcon}' == '1' && isset($_SESSION['id']) && is_worthy_specifically("s", {id}))}
                                <td>Действие</td>
                                {/if}
                            </tr>
                        </thead>
                        <tbody id="players{id}" class="server_players">
                            <tr>
                                <td colspan="4">
                                    <center><img src="{site_host}templates/{template}/img/loader.gif"></center>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Закрыть</button>
            </div>
        </div>
    </div>
</div>