<? 
//$menu = array(array('url'=> '', 'icon' => 'sliders', 'name'=> 'test')); 
?>
<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="Server-Mon.ru">

    <title>ServerMon - Панель Администратора</title>

    <link href="/theme/admin/public/css/bootstrap.min.css" rel="stylesheet">
    <link href="/theme/admin/public/css/plugins/metisMenu/metisMenu.min.css" rel="stylesheet">
    <link href="/theme/admin/public/css/plugins/timeline.css" rel="stylesheet">
    <link href="/theme/admin/public/css/sb-admin-2.css" rel="stylesheet">
    <link href="/theme/admin/public/css/plugins/morris.css" rel="stylesheet">
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
	
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	<script src="/theme/admin/public/js/jquery.js"></script>
</head>
<body>

    <div id="wrapper">

        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <a class="navbar-brand" href="http://server-mon.ru/" target="_blank">Server Mon <span class="label label-default">v<?=$this->cfg('version')?></span></a>
            </div>
            <ul class="nav navbar-top-links navbar-right">
				<li class=""><a id="servers-update" style="cursor: default;"><i class="fa fa-refresh"></i></a></li>
				<li class=""><a href="<?=$this->setting('url')?>" target="_blank"><i class="fa fa-eye"></i> Просмотр сайта</a></li>
				<li class=""><a href="/admin/main/exit"><i class="fa fa-power-off"></i></a></li>
            </ul>
            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li class="<?if($activeSection == 'main'):?>active<?endif;?>">
							<a href="#"><i class="fa fa-home"></i> Главная <span class="fa arrow"></span></a>
							<ul class="nav nav-second-level">
                               <li><a href="/admin"><i class="fa fa-line-chart"></i> Статистика</a></li>
							   <li><a href="/admin/main/update"><i class="fa fa-refresh"></i> Обновление</a></li>
                            </ul>
						</li>
						<li class="<?if($activeSection == 'modules'):?>active<?endif;?>">
							<a href="#"><i class="fa fa-tasks"></i> Модули <span class="fa arrow"></span></a>
							<ul class="nav nav-second-level">
                                <li><a href="/admin/servers"><i class="fa fa-hdd-o"></i> Сервера</a></li>
								 <li><a href="/admin/games"><i class="fa fa-gamepad"></i> Игры</a></li>
								<li><a href="/admin/users"><i class="fa fa-users"></i> Пользователи</a></li>
								<li><a href="/admin/pages"><i class="fa fa-file-text"></i> Статические страницы</a></li>
                            </ul>
						</li>
						<li class="<?if($activeSection == 'setting'):?>active<?endif;?>">
							<a href="#"><i class="fa fa-cogs"></i> Настройки <span class="fa arrow"></span></a>
							<ul class="nav nav-second-level">
                                <li><a href="/admin/setting"><i class="fa fa-cog"></i> Общие</a></li>
								<li><a href="/admin/setting/security"><i class="fa fa-unlock-alt"></i> Безопасность</a></li>
								<li><a href="/admin/setting/logs"><i class="fa fa-reorder"></i> Логи</a></li>
								<li><a href="/admin/setting/store"><i class="fa fa-shopping-cart"></i> Платежные</a></li>
                            </ul>
						</li>
						<li></li><li></li><li></li><li></li>
						<?php foreach($menu as $item): ?>
							<li><a href="/admin/<?=$item['url']?>"><i class="fa fa-<?=$item['icon']?>"></i> <?=$item['name']?></a></li>
						<?php endforeach; ?>
                    </ul>
                </div>
            </div>
        </nav>