<tr class="edit_forum" id="forum{id}">
	<td>
		<img id="image{id}" src="../{img}" style="width: 50px; min-width: 50px;">
	</td>
	<td>
		<div class="input-group">
			<form enctype="multipart/form-data" action="ajax/actions_c.php" method="POST" id="img_form{id}">
				<input type="hidden" id="token" name="token" value="{token}">
				<input type="hidden" id="id" name="id" value="{id}">
				<input type="hidden" id="load_forum_img" name="load_forum_img" value="1">
				<input type="hidden" id="phpaction" name="phpaction" value="1">
				<input class="input-file" type="file" id="img" accept="image/*" name="img"/>
				<input class="btn btn-default btn-sm" type="submit" value="Изменить">
				<img class="disp-n" id="img_loader{id}" src="../templates/{template}/img/loader.gif">
				<div id="img_result{id}"></div>
			</form>
			<script>
				$("#img_form{id}").submit(function (event){
					event.preventDefault();
					var data = new FormData($('#img_form{id}')[0]);
					$.ajax({
						type: "POST",
						url: "../ajax/actions_c.php",
						data: data,
						contentType: false,
						processData: false,
						beforeSend: function() {
							$('#img_loader{id}').show();
						}
					}).done(function (html) {
						$("#img_result{id}").empty();
						$("#img_result{id}").append(html);
						$('#img_loader{id}').hide();
						$('#img_form{id}')[0].reset();
					});
				});
			</script>
		</div>
	</td>
	<td>
		<input id="forum_name{id}" type="text" class="form-control input-sm" value="{name}">
	</td>
	<td>
		<input id="forum_description{id}" type="text" class="form-control input-sm" value="{description}">
	</td>
	<td>
		<div class="btn-group-vertical w-100">
			<div onclick='up_forum("{id}","{section_id}");' class="btn btn-default btn-sm">
				<span class="m-icon icon-up"></span> <i class="hidden-xs">Поднять</i>
			</div>
			<div onclick='down_forum("{id}","{section_id}");' class="btn btn-default btn-sm">
				<span class="m-icon icon-down"></span> <i class="hidden-xs">Опустить</i>
			</div>
		</div>
	</td>
	<td>
		<div class="btn-group-vertical w-100">
			<div id="edit_forum_btn{id}" onclick='edit_forum("{id}");' class="btn btn-default btn-sm">
				<span class="m-icon icon-pencil"></span> <i class="hidden-xs">Изменить</i>
			</div>
			<div onclick='dell_forum("{id}");' class="btn btn-default btn-sm">
				<span class="m-icon icon-trash"></span> <i class="hidden-xs">Удалить</i>
			</div>
		</div>
	</td>
</tr>