<aside class="main-sidebar">
  <section class="sidebar">

	<div class="user-panel">
	  <div class="pull-left image"><img src="/kernel/image/avatar.png" class="img-circle" alt="User Image"></div>
	  <div class="pull-left info"><p>Николай Довгопол</p><i class="fa fa-user text-success fa-fw"></i> <?=user::nick($user['id'], 0)?></div>
	</div>

	<form action="#" method="get" class="sidebar-form">
	  <div class="input-group">
		<input type="text" name="q" class="form-control" placeholder="Поиск...">
		<span class="input-group-btn">
		<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i></button>
		</span>
	  </div>
	</form>

	<ul class="sidebar-menu" data-widget="tree">
	<li class="header"><b>Основная навигация</b></li>
<?php
$count['user'] = $pdo->query(("SELECT COUNT(*) FROM `user`"), 0)->fetchColumn();

if (user_access('adm_panel_show')) echo '<li><a href="'.CPANEL.'"><i class="fa fa-shield fa-fw"></i><span> Контроль панель</span></a></li>';
echo '<li><a href="/module/pages/users.php"><i class="fa fa-user fa-fw"></i><span> Пользователи</span>

<span class="pull-right-container"><small class="label pull-right bg-blue">'.$count['user'].'</small></span>

</a></li>';
?>
	<li class="header"><b>Информация</b></li>
	  <li><a href="/"><i class="fa fa-file fa-fw"></i><span> Скоро будет раздел</span></a></li>
	</ul>
  </section>
</aside>
