<?
include($_SERVER["DOCUMENT_ROOT"]."/php/cookie.php");
include($_SERVER["DOCUMENT_ROOT"]."/php/default.php");
connect();
?>
<?
if (!isset($page_id)){$page_id=37;}
//get_meta($page_id);
?>
<? $page_name="feedback";?>
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
	<html><head>
	<title><? if ($meta_title<>"") {?><?=$meta_title?><? } else {?>Стеллажи<? } ?></title>
	<META NAME="description" CONTENT="<? if ($meta_descr<>"") {?><?=$meta_descr?><? } else {?>Стеллажи<? } ?>">
	<META NAME="keywords" CONTENT="<? if ($meta_key<>"") {?><?=$meta_key?><? } else {?>Стеллажи<? } ?>">
	<? include($_SERVER["DOCUMENT_ROOT"]."/php/top_head.php"); ?>
	<script type="text/javascript" src="/feedback/js/jquery-ui.min.js"></script>
	<script type="text/javascript" src="/feedback/js/uploader.js"></script>
</head>
<? include($_SERVER["DOCUMENT_ROOT"]."/top.php"); ?>
<div class="sidebar <?=$colClass?>-3">
	<? include($_SERVER["DOCUMENT_ROOT"]."/inc.right.php"); ?>
</div>
<div class="inner-content <?=$colClass?>-9">
	<?
	// COLUM CENTR START ++++++++++++++
	//
	?>
	<? //page_out($page_id);?>
	<?
	include($_SERVER['DOCUMENT_ROOT']. '/feedback/Img.php');
	//
	// COLUM CENTR END  -----------------------
	$res = mysql_query("SELECT * FROM `feedback` WHERE `id`='".(int)$_GET['id']."'");
	$row = mysql_fetch_assoc($res);
	?>
	<h2>Ответ на отзыв</h2>
	<i><?=$row['name']?></i><br><?=$row['text']?>
	<form id="f_form2" style="margin-top: 20px;">

		<div class="form-group">
			<label>Комментарий*</label>
			<textarea class="form-control" name="text"></textarea>
		</div>

		<div class="well">
			<div id="f_images2"></div>
			<div class="clearfix"></div>
		<span class="btn btn-success fileinput-btn" ><i class="fa fa-plus"> Добавить фото</i>
		<input type="file" multiple name="img"></span>
		</div>

		<div class="alert alert-danger f-error" id="f_text_error2" style="display: none;">введите текст комментария</div>

		<button type="submit" class="btn btn-default" id="f_submit_btn2"><i class="fa fa-check"></i> Отправить</button>
		<p class="help-block">*Обязательное поле</p>
		<input type="hidden" name="parent_id" value="<?=$row['id']?>">
		<input type="hidden" name="name" value="Ответ">
		<input type="hidden" name="email" value="">
		<input type="hidden" name="url" value="save_reply">
	</form>

	<?
	// COLUM RIGHT START ++++++++++++++++++++
	//
	?>

	<?
	if($admin == 'admin') include $_SERVER['DOCUMENT_ROOT'].'/feedback/feedback_admin.js.php';
	//
	// COLUM RIGHT END ------------------------
	?>
</div>

<?include ($DOCUMENT_ROOT."/bottom.php");?>