<div class="col-md-6">
	<div class="block">
		<div class="block_head">
			<span class="glyphicon glyphicon-align-left"></span> Информация
		</div>

		<p><span class="glyphicon glyphicon-user"></span> <b>Ник: </b>{nick}</p>
		<p><span class="glyphicon glyphicon-warning-sign"></span> <b>Причина: </b>{reason}</p>
		<p><span class="glyphicon glyphicon-map-marker"></span> <b>Статус: </b><span id="status" class="label label-{color}">{status}</span></p>
		<p><span class="glyphicon glyphicon-tasks"></span> <b>Сервер: </b>{server}</p>
		<p><span class="glyphicon glyphicon-user"></span> <b>Пользователь: </b><a href="../profile?id={author_id}">{author_login}</a></p>
		<p><span class="glyphicon glyphicon-calendar"></span> <b>Дата создания: </b>{date}</p>
		<p><span class="glyphicon glyphicon-comment"></span> <b>Пояснения: </b></p>
		<div class="with_code">{text}</div>
		{if('{closed}' != '0')}
			<p><span class="glyphicon glyphicon-user"></span> <b>Рассмотрел: </b><a href="../profile?id={closed}">{closed_a}</a></p>
		{else}
			<p><div id="closed"></div></p>
		{/if}
		{if(('{bid}' != '0') || is_worthy("o") || is_worthy("i"))}
			<hr>
			<b class="mt--10"><span class="glyphicon glyphicon-cog"></span> Действие</b><br>
		{/if}
		{if('{bid}' != '0')}
			<input type="hidden" class="form-control" id="search_ban" value="{bid}">
			<button onclick="search_ban_application({server_id})" type="button" class="btn btn-info btn-sm f-l">Найти</button>
			<div id="ban" class="modal fade bs-example-modal-lg" 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" id="baninfo">
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-default" data-dismiss="modal">Закрыть</button>
						</div>
					</div>
				</div>
			</div>
		{/if}
		{if(is_worthy_specifically("i", {server_id}))}
			<div id="buttons" class="f-l">
				<button onclick="close_ban({id},'1','{bid}');" type="button" class="btn btn-success btn-sm ml-5">Разбанен</button>
				<button onclick="close_ban({id},'2','{bid}');" type="button" class="btn btn-warning btn-sm">Не разбанен</button>
			</div>
		{/if}
		{if(is_worthy_specifically("o", {server_id}))}
			<button onclick="dell_ban({id});" type="button" class="btn btn-danger btn-sm ml-5">Удалить</button>
		{/if}
	</div>
</div>
<div class="col-md-6">
	<div class="block">
		<div class="block_head">
			<span class="glyphicon glyphicon-th"></span> Доказательства
		</div>
		<p>
			<span class="glyphicon glyphicon-picture"></span> <b>Скриншоты:</b><br>
			{if('{imgs}' == '0')}
				Пользователь не прикрепил скриншотов
			{else}
				{imgs}
			{/if}
		</p>
		<p>
			<span class="glyphicon glyphicon-hdd"></span> <b>Демо:</b><br>
			{if('{demo}' == '0')}
				Пользователь не указал ссылку на демо
			{else}
				<a class="btn2" href="{demo}" target="_blank">
					Скачать <span class="glyphicon glyphicon-link"></span>
				</a>
			{/if}
		</p>
	</div>
</div>
<div class="col-md-12">
	<div class="block">
		<div class="block_head">
			<span class="glyphicon glyphicon-comment"></span> Комментарии
		</div>
		{if('{allow}' == '1')}
			<div id="add_new_comments">
				<textarea id="text" class="form-control maxMinW100" maxlength="500"></textarea>
				<div class="smile_input_forum">
					<input id="send_btn" class="btn2 mt-10" type="button" onclick="send_ban_comment({id});" value="Отправить"></input>
					<div id="smile_btn" class="smile_btn visible-lg-inline-block" data-container="body" data-toggle="popover" data-placement="top" data-content="empty"></div>
				</div>
			</div>
			<script>
				$(document).ready(function() {
					init_tinymce("text", "lite", "{file_manager_theme}", "{file_manager}", "{{md5($conf->code)}}");
					get_smiles('#smile_btn', 1);
				});

				$('#smile_btn').popover({ html: true, animation: true, trigger: "click" });
				$('#smile_btn').on('show.bs.popover', function () {
					$(document).mouseup(function (e) {
						var container = $(".popover-content");
						if (container.has(e.target).length === 0){
							$('#smile_btn').popover('hide'); selected = 'gcms_smiles';
						}
					});
				});

				function set_smile(elem){
					var smile =  "<img src=\""+$(elem).attr("src")+"\" class=\"g_smile\" height=\"20px\" width=\"20px\">";
					tinymce.activeEditor.insertContent(smile);
					$('#smile_btn').popover('hide'); selected = 'gcms_smiles';
				}
			</script>
		{/if}
		<div id="comments">
			<center><img src="{site_host}templates/{template}/img/loader.gif"></center><br>
		</div>
		<script>load_ban_comments("{id}");</script>
	</div>
</div>