<!DOCTYPE html>
<html lang="en">

<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="description" content="">
    <meta name="author" content="">

    <title>LocalPay.ru - AdminPL</title>

    <link href="/cp/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="/cp/bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
    <link href="/cp/dist/css/sb-admin-2.css" rel="stylesheet">
    <link href="/cp/bower_components/morrisjs/morris.css" rel="stylesheet">
    <link href="/cp/bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
	<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/jquery-bootgrid/1.3.1/jquery.bootgrid.min.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="http://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="http://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

	<!-- JavaScripts -->
    <script src="/cp/bower_components/jquery/dist/jquery.min.js"></script>
    <script src="/cp/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
    <script src="/cp/bower_components/metisMenu/dist/metisMenu.min.js"></script>
    <script src="/cp/dist/js/sb-admin-2.js"></script>
    <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-bootgrid/1.3.1/jquery.bootgrid.min.js"></script>
    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
    <script>
        $(function () {
          $('[data-toggle="tooltip"]').tooltip()
        })

        function fly_p(name,text){
            var fly_id = Math.floor(Math.random() * (111111111));
            tip = "info";
            if(name == "1"){tip = "success";}
            if(name == "2"){tip = "danger";}
            if(name == "3"){tip = "info";}
            $("#notification").append('<div class="alert alert-'+tip+'" id="fly_'+fly_id+'">'+text+'</div>');
            $("#fly_"+fly_id).fadeIn("slow");
            setTimeout(function(){fly_r(fly_id)},3000);
        }
        function fly_r(id){
            $("#fly_"+id).fadeOut("slow");
        }
    </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">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <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="/">LocalPay.ru <span class="label label-default">AdminPL</span></a>
            </div>
            <!-- /.navbar-header -->

            <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <img src="https://i.yapx.ru/B6qK.png" style="border-radius: 50px; width: 18px;"> <?=$user['user_login']?> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="/user"><i class="fa fa-user fa-fw"></i> Профиль</a></li>
                        <li><a href="/money"><i class="fa fa-rub fa-fw"></i> Вывод средств</a></li>
                        <li class="divider"></li>
                        <li><a href="/exit"><i class="fa fa-sign-out fa-fw"></i> Выйти</a></li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                <!-- /.dropdown -->
            </ul>
            <!-- /.navbar-top-links -->

            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li class="sidebar-search">
                            <img src="https://i.yapx.ru/B6qK.png" style="border-radius: 50px; margin-right: 10px; width: 50px"> 
                            <b><?=$user['user_firstname']?> <?=$user['user_lastname']?></b>
                        </li>
                        <li><a href="/"><i class="fa fa-home fa-fw"></i> Главная</a></li>
                        <?if($user['user_group'] >= "3"):?><li><a href="/project/all"><i class="fa fa-list fa-fw"></i> Проекты</a></li><?endif?>
                        <?if($user['user_group'] >= "3"):?><li><a href="/stats"><i class="fa fa-list fa-fw"></i> Логи</a></li>	<?endif?>					
                        <?if($user['user_group'] >= "2"):?><li><a href="/support/all"><i class="fa fa-list fa-fw"></i> Поддержка</a></li><?endif?>
                    </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>