<?php
require_once('../classes/body.class.php');
require_once('../classes/db.class.php');
require_once('../classes/system.class.php');
$title= new Body;
$title->SetTitle(''.homeurl.' - Мой кабинет');

///Подключаем шапку
$title->GetHeader();
echo '<div class="container-fluid page_header"><div class="container"><div class="row"><div class="col-xs-12 col-sm-8 col-md-9 col-lg-9"><h1>Мой кабинет </h1><ol class="breadcrumb" xmlns:v="http://'.homeurl.'/#"><li typeof="v:Breadcrumb"><a href="/" rel="v:url" property="v:title">'.homeurl.'</a></li><li class="active" typeof="v:Breadcrumb"><span property="v:title">Мой кабинет</span></li></ol></div></div></div></div>';
echo'<div class="container page_body"><div class="row"><div class="col-xs-12 page_content col-lg-9"><div class="navbar page_content_navbar collapse hidden-lg"><div class="container-fluid"><div class="navbar-collapse"></div></div></div><div class="text_box hidden-lg pr_block_small hidden"></div><div class="container-fluid cols_table">';


if ($b == false) {
header('location: /');
die();
}
$count_letter = DB::$dbs->querySingle("SELECT COUNT(id) FROM `letters` WHERE `idwho` = ? AND `read` = ?", [$b['id'],0]);
$notice = DB::$dbs->querySingle("SELECT COUNT(id) FROM jurnal WHERE user_id = ? AND type = ?", [$b['id'],1]);

echo '<div class="catSides"><i class="md-format-list-bulleted"></i> Почта / Контакты </div>

<ul class="nav nav-pills nav-stacked"><li><a href="/messages"><span class="glyphicon glyphicon-envelope"> </span>&nbsp; Личные сообщения'; if (!empty($count_letter)) {echo' (+'.$count_letter.')';} echo'</a></ul>
<ul class="nav nav-pills nav-stacked"><li><a href="/notebook/"><span class="glyphicon glyphicon-book"></span>&nbsp; Личный блокнот</a></ul>
<ul class="nav nav-pills nav-stacked"><li><a href="/journal"><span class="glyphicon glyphicon-bullhorn"> </span>&nbsp; Оповещения'; if (!empty($notice)) {echo' +'.$notice.')';} echo'</a> </ul>
<ul class="nav nav-pills nav-stacked"><li><a href="/ignor"><span class="glyphicon glyphicon-alert"></span>&nbsp; Черный список</a> </ul>
<div class="catSides"><i class="md-format-list-bulleted"></i> Анкета / Настройки </div>
<ul class="nav nav-pills nav-stacked"><li><a href="/setting"><span class="glyphicon glyphicon-send"></span>&nbsp; Личные настройки</a> </ul>
<ul class="nav nav-pills nav-stacked"><li><a href="/wmid"><span class="glyphicon glyphicon-phone"></span>&nbsp; Мои реквизиты</a> </ul>
<ul class="nav nav-pills nav-stacked"><li><a href="/logs"><span class="glyphicon glyphicon-log-out"></span>&nbsp; История авторизаций</a> </ul>
<ul class="nav nav-pills nav-stacked"><li><a href="/gallery/personal.html?id=' . $b['id'] . '"><span class="glyphicon glyphicon-camera"> </span>&nbsp; Персональная галерея</a> </ul>
<div class="catSides"><i class="md-format-list-bulleted"></i> Сервисы сайта</div>
<ul class="nav nav-pills nav-stacked"><li><a href="/search"><span class="glyphicon glyphicon-search"> Поиск пользователя</a> </ul>
<ul class="nav nav-pills nav-stacked"><li><a href="/billing"><span class="glyphicon glyphicon-usd"> Биллинг панель</a> </ul>
<ul class="nav nav-pills nav-stacked"><li><a href="/support/"><span class="glyphicon glyphicon-link"> Служба поддержки</a> </ul>
<ul class="nav nav-pills nav-stacked"><li><a href="/smiles"><span class="glyphicon glyphicon-move"> Список смайлов / BB</a> </ul>
<ul class="nav nav-pills nav-stacked"><li><a href="/logout"><span class="glyphicon glyphicon-share"> Выйти из кабинета</a> </ul>';


///Подключаем меню
$title->GetMenu();

///Подключаем футер
$title->GetFooter();
?>
