﻿<!DOCTYPE html>
<html>
<head>

	<!-- Yandex.Metrika counter -->
	<script type="text/javascript" >
		(function (d, w, c) {
			(w[c] = w[c] || []).push(function() {
				try {
					w.yaCounter49551097 = new Ya.Metrika2({
						id:49551097,
						clickmap:true,
						trackLinks:true,
						accurateTrackBounce:true,
						webvisor:true
					});
				} catch(e) { }
			});

			var n = d.getElementsByTagName("script")[0],
				s = d.createElement("script"),
				f = function () { n.parentNode.insertBefore(s, n); };
			s.type = "text/javascript";
			s.async = true;
			s.src = "https://mc.yandex.ru/metrika/tag.js";

			if (w.opera == "[object Opera]") {
				d.addEventListener("DOMContentLoaded", f, false);
			} else { f(); }
		})(document, window, "yandex_metrika_callbacks2");
	</script>
	<noscript><div><img src="https://mc.yandex.ru/watch/49551097" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
	<!-- /Yandex.Metrika counter -->

	<script src="https://cdn.jsdelivr.net/ga-lite/latest/ga-lite.min.js" async></script>
	<script>
		var galite = galite || {};
		galite.UA = 'UA-121435554-1'; 
		galite.anonymizeIp = true;
	</script>

	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	
	<?php
		$dbconn = pg_connect("host=localhost dbname=baritun user=baritun_user password=0666Baritun") or die('Could not connect: ' . pg_last_error());
					
		$query = '
			select id
			from detskaya
			where id = ' . $_GET['detskaya_id'];
		
		$result = pg_query($query) or die('Ошибка: ' . pg_last_error());
		while ($line = pg_fetch_array($result, null, PGSQL_BOTH)) {
			echo "
				<title>Мебель для детской комнаты D-$line[0] - baritun.am</title>
				<meta name=\"description\" content=\" baritun.am - Детская мебель модель D-$line[0] - мебель для детей в Ереване и Армении \">
				<link rel=\"canonical\" href=\"https://baritun.am/tovari/mebel/detskaya/view.php?detskaya_id=" . $_GET['detskaya_id'] . "\" />
			";
		}
					
		pg_free_result($result);
		// Закрытие соединения
		pg_close($dbconn);		

	
	?>
	
	
	<link rel="icon" href="../../../img/logo10.png" sizes="any" type="image/png">
	
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
	<link rel="stylesheet" href="../../../css/styles.css">
	<link rel="stylesheet" href="../../../css/smoothproducts.css">
</head>
<body>
	
	
	<div class="container">
		<div class="row">
			<div class="col-lg-8 col-md-8 col-sm-7 hidden-xs phone-nums">
				&nbsp;
				<span>Окна: ☎ </span><a href="tel:094312160">094-31-21-60</a>
				&nbsp;
				<span>Двери и мебель: ☎ </span><a href="tel:094312160">094-31-21-60</a>
			</div>
			<div class="col-xs-9 visible-xs phone-nums">
				&nbsp;
				<span>Окна, балконы: ☎ </span><a href="tel:094312160">094-31-21-60</a>
			</div>
			<div class="col-lg-4 col-md-4 col-sm-5 col-xs-3 right languages">
			
				<?php
						
						echo "
							<a href=\"https://baritun.am/arm/tovari/mebel/detskaya/view.php?detskaya_id=" . $_GET['detskaya_id'] . "\" title=\"Armenian\">
								<img src=\"../../../img/armenia-flag.png\" alt=\"armenian-language\" title=\"armenian-language\" width=\"19\" height=\"19\" />
							</a>
							<a href=\"https://baritun.am/tovari/mebel/detskaya/view.php?detskaya_id=" . $_GET['detskaya_id'] . "\" title=\"Russian\">
								<img src=\"../../../img/russia-flag.png\" alt=\"russian-language\" title=\"russian-language\" width=\"19\" height=\"19\" />
							</a>&nbsp;
						";
				
					
				?>
			</div>
			<div class="col-xs-12 visible-xs phone-nums">
				&nbsp;
				<span>Двери, мебель: ☎ </span><a href="tel:094312160">094-31-21-60</a>
			</div>
		</div>
	</div>
	
	<hr class="line">

	<div class="container">
		<nav class="navbar navbar-default">
			<div class="container-fluid">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="https://baritun.am">BariTun.am</a>
				</div>

				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav">
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Окна и балконы<span class="caret"></span></a>
							<ul class="dropdown-menu">
								<li><a href="https://baritun.am/okna.html">Окна и двери</a></li>
								<li><a href="https://baritun.am/setki.html">Сетки</a></li>
								<li><a href="https://baritun.am/remont.html">Ремонт окон</a></li>
							</ul>
						</li>
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Двери <span class="caret"></span></a>
							<ul class="dropdown-menu">
								<li><a href="https://baritun.am/tovari/dveri/mejkom/doorskomn.php">Межкомнатные двери</a></li>
								<!--<li role="separator" class="divider"></li>-->
								<!--<li><a href="#">Установка дверей</a></li>-->
							</ul>
						</li>
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Мебель <span class="caret"></span></a>
							<ul class="dropdown-menu">
								<li><a href="https://baritun.am/tovari/mebel/">Вся мебель</a></li>
								<li><a href="https://baritun.am/tovari/mebel/kuhnya/">Кухонная мебель</a></li>
								<li><a href="https://baritun.am/tovari/mebel/spalnya/">Мебель для спальни</a></li>
								<li><a href="https://baritun.am/tovari/mebel/gostinaya/">Мебель для гостиной(стенки)</a></li>
								<li><a href="https://baritun.am/tovari/mebel/prihojaya/">Мебель для прихожей</a></li>
								<li><a href="https://baritun.am/tovari/mebel/detskaya/">Детская мебель</a></li>
								<li><a href="https://baritun.am/tovari/mebel/ofisnaya/">Офисная мебель</a></li>
								<li><a href="https://baritun.am/tovari/mebel/divani-i-kresla/">Диваны и кресла</a></li>
							</ul>
						</li>
					</ul>
				</div>
			</div>
		</nav>
	</div>	

	<div class="container clearfix">
		<div class="row">
		
			<?php
				$dbconn = pg_connect("host=localhost dbname=baritun user=baritun_user password=0666Baritun") or die('Could not connect: ' . pg_last_error());
							
				$query = '
					select id, photo1
					from detskaya
					where id = ' . $_GET['detskaya_id'];
				
				$result = pg_query($query) or die('Ошибка: ' . pg_last_error());
				while ($line = pg_fetch_array($result, null, PGSQL_BOTH)) {
					echo "
			
						<div class=\"h1 center\">
							<h1>Детская мебель</h1>
						</div>
						<div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12 \">
							<div class=\"page\">
								<br>
								<div class=\"sp-loading\"><img src=\"../../../img/tovari/sp-loading.gif\"><br>LOADING IMAGES</div>
								<div class=\"sp-wrap\">
									<a href=\"$line[1]\"><img src=\"$line[1]\" alt=\"Детская мебель\"></a>
								</div>
							</div>
						</div>
						<div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12 remont-text door-view-info\">
							<br>
							<div><b>Модель:</b> <span class=\"tovar-num\">D-$line[0]</span></div><br>
							<div><b>Доступные материалы:</b> дерево, ламинат, МДФ, МДФ крашеный, МДФ шпонированный</div><br>
							<br>
						</div>

					";
				}
							
				pg_free_result($result);
				// Закрытие соединения
				pg_close($dbconn);		

			
			?>
		

		</div>
	</div>
	
	<br>
	<br>
	<div class="why-low-price">
		<div class="container">
			<div class="row">
				<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 col-xxs-12 perezv">
					Хотите заказать или узнать подробности?			
				</div>
			</div>
			<div class="row">
				<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 col-xxs-12 perezv">
					<br>
					Позвоните нам <span>☎ </span> <a href="tel:094312160">094-31-21-60</a>	
				</div>
			</div>
			<div class="row">
				<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 col-xxs-12 perezv">
					 <br>Или оставьте телефон мы позвоним сами
				</div>
			</div>
			<div class="row">
				<div class="col-lg-3 col-md-3 col-sm-0 col-xs-0 col-xxs-0">		
				</div>
				<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 col-xxs-12 perezv">
					<form action="https://baritun.am/send.php" method="post">
						<br>
						<div class="col-lg-7 col-md-7 col-sm-8 col-xs-7 col-xxs-7">
							<input type="text" id="fname" name="user_phone" placeholder="Ваш телефон">
						</div>
						<div class="col-lg-5 col-md-5 col-sm-4 col-xs-5 col-xxs-5">
							<input type="submit" value="Перезвоните мне">
						</div>
					</form>
				</div>
				<div class="col-lg-3 col-md-3 col-sm-0 col-xs-0 col-xxs-0">		
				</div>
			</div><br>
		</div>
	</div>
		
	
	<footer id="myFooter">
		<div class="container center">				
			<p class="footer-copyright"><br>© 2018 — BariTun. Все права защищены.<br></p>
		</div>
	</footer>

	
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
	<script src="../../../js/scripts.js"></script>
	
	<script type="text/javascript" src="../../../js/smoothproducts.min.js"></script>
	<script type="text/javascript">
	/* wait for images to load */
	$(window).load(function() {
		$('.sp-wrap').smoothproducts();
	});
	</script>

</body>
</html>