echo '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="/css/style.css" rel="stylesheet" type="text/css" />
<link href="/css/font-awesome.css" rel="stylesheet"> 
<script src="/js/jquery-1.11.1.min.js"></script>
<script src="/js/modernizr.custom.js"></script>
<link href="//fonts.googleapis.com/css?family=Roboto+Condensed:400,300,300italic,400italic,700,700italic" rel="stylesheet" type="text/css">
<link href="/css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="/js/wow.min.js"></script>
	<script>
		 new WOW().init();
	</script>
<script src="/js/metisMenu.min.js"></script>
<script src="/js/custom.js"></script>
<link href="/css/custom.css" rel="stylesheet">
<title>'.(isset($title) ? $title : $_SERVER['HTTP_HOST']).' </title>
</head>
<body>	<div class="main-content">
		<!--left-fixed -navigation-->
		<div class=" sidebar" role="navigation">
            <div class="navbar-collapse">
				<nav class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-left" id="cbp-spmenu-s1">
					<ul class="nav" id="side-menu">
						<li>
							<a href="/"><i class="fa fa-home nav_icon"></i>Главная</a>
						</li>
						<li>
							<a href="#"><i class="fa fa-cogs nav_icon"></i>Услуги <span class="nav-badge">12</span> <span class="fa arrow"></span></a>
							<ul class="nav nav-second-level collapse">
							
							$query = mysql_query("SELECT * FROM `services_dir` ORDER BY `id` ASC");

while ($folder = mysql_fetch_assoc($query))
{
echo '<li><a  href="/scripts/tarifs.php?dir='. $folder['id'] .'">'. html($folder['name']) .'
</a></li>';
}

							</ul>
							<!-- /nav-second-level -->
						</li>
						<li class="">
							<a href="#"><i class="fa fa-th-large nav_icon"></i>Управление сайтом <span class="fa arrow"></span></a>
							<ul class="nav nav-second-level collapse">
								<li>
									<a href="http://w-hosting.tk:1500/ispmgr">ISP Manager<span class="nav-badge-btm">WEB</span></a>
								</li>
								<li>
									<a href="/isp">ISP Manager<span class="nav-badge-btm">WAP</span></a>
								</li>
								<li>
									<a href="http://w-hosting.tk:1500/myadmin">PHPMyAdmin<span class="nav-badge-btm">WEB</span></a>
								</li>
								<li>
									<a href="/wapma">PHPMyAdmin<span class="nav-badge-btm">WAP</span></a>
								</li>
							
							</ul>
							<!-- /nav-second-level -->
							<!-- //nav-second-level -->
							<!-- //nav-second-level -->
						</li>
						<li>
							<a href="#"><i class="fa fa-file-text-o nav_icon"></i>Информация<span class="nav-badge-btm">02</span><span class="fa arrow"></span></a>
							<ul class="nav nav-second-level collapse">
								<li>
									<a href="/info.php?support">Служба поддержки</a>
								</li>
								<li>
									<a href="/info.php?server">Информация о сервере</a>
								</li>
								<li>
									<a href="/rule.php">Праила хостига</a>
								</li>
							</ul>
							<!-- //nav-second-level -->
						</li>
						<li>
							<a href="/scripts/guest.php" class="chart-nav"><i class="fa fa-bar-chart nav_icon"></i>Гостевая <span class="nav-badge-btm pull-right">('.$guest_count.' '.($guest_new_count > 0? '/ <font color="red">+'.$guest_new_count.'</font>' : '').')</span></a>
						</li>
					</ul>
					<div class="clearfix"> </div>
					<!-- //sidebar-collapse -->
				</nav>
			</div>
		</div>';