<? global $user;?>
<!DOCTYPE html>
<html>
  <head>
    <title>rank24.pl</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="author" content="www.project-pro.pl - internetowe rozwiązania dla biznesu" />
    <link rel="stylesheet" href="/libraries/framework/skin/default_skin/css/theme.css" />
    <link rel="stylesheet" href="/libraries/framework/admin-tools/admin-forms/css/admin-forms.css" />
    <link rel='stylesheet' type='text/css' href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700'>
    <link rel="stylesheet" href="/libraries/framework/vendor/plugins/magnific/magnific-popup.css">
    <link rel="stylesheet" href="/libraries/framework/vendor/plugins/datepicker/css/bootstrap-datetimepicker.css"> 
    <link rel="stylesheet" href="/libraries/framework/vendor/plugins/colorpicker/css/bootstrap-colorpicker.min.css">
    <link rel="Stylesheet" type="text/css" href="/libraries/framework/vendor/jquery/jquery_ui/jquery-ui.structure.min.css">
    <link rel="Stylesheet" type="text/css" href="/libraries/framework/vendor/jquery/jquery_ui/jquery-ui.theme.min.css">
    <link rel="Stylesheet" type="text/css" href="/libraries/framework/vendor/plugins/daterange/daterangepicker.css">
    <script src="/libraries/framework/vendor/jquery/jquery-1.11.1.min.js"></script>
    <script src="/libraries/framework/vendor/jquery/jquery_ui/jquery-ui.min.js"></script>
    <script src="/libraries/framework/vendor/plugins/magnific/jquery.magnific-popup.js"></script>
    <script src="/libraries/framework/vendor/plugins/moment/moment.js"></script>
    <script src="/libraries/framework/vendor/plugins/moment/pl.js"></script>
    <script src="/libraries/framework/vendor/plugins/datepicker/js/bootstrap-datetimepicker.js"></script>
    <script src="/libraries/framework/vendor/plugins/daterange/daterangepicker.js"></script>
    <script src="/libraries/framework/vendor/plugins/colorpicker/js/bootstrap-colorpicker.min.js"></script>
    <script src="/libraries/functions.js"></script>
    <!--[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.3.0/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" href="/layout/style-css/custom.css" />
  </head>
  <body class="sb-top sb-top-sm">
    <div id="main">
      <header class="navbar navbar-fixed-top navbar-shadow">
        <div class="navbar-branding">
          <a class="navbar-brand" href="/?p=dashboard">
            <b>rank</b>24
          </a>
        </div>
        <div class="nav navbar-nav navbar-right">
          <li class="dropdown menu-merge">
            <a href="#" class="dropdown-toggle fw600 p15" data-toggle="dropdown" aria-expanded="false"> 
              <img src="/layout/user-icon.png" alt="avatar" class="mw30 br64 mr15"> <?= $this -> _user['login'];?>
              <span class="caret caret-tp hidden-xs"></span>
            </a>
            <ul class="dropdown-menu list-group dropdown-persist w250" role="menu">
              <li class="list-group-item">
                <a href="/?rw=user_logout" class="animated animated-short fadeInUp">
                  <span class="fa fa-power-off"></span>Wyloguj się
                </a>
              </li>
            </ul>
          </li>
          <li id="toggle_sidemenu_t">
            <span class="fa fa-bars"></span>
          </li>
        </div>
      </header>
      <aside id="sidebar_left">
        <div class="sidebar-left-content nano-content">
          <ul class="nav sidebar-menu">
            <li>
              <a class="accordion-toggle" href="#">
                <span class="sidebar-title">Monitoring</span>
                <span class="caret"></span>
              </a>
              <ul class="nav sub-nav">
                <li>
                  <a href="/ranker_clients/main_view/">Lista stron</a>
                </li>
                <? if ( $this -> _user['type'] == 'client' ):?>
                  <li>
                    <a href="/?p=client_summary">Podsumowanie</a>
                  </li>
                  <li>
                    <a href="/?p=client_reports">Raporty</a>
                  </li>
                <? endif;?>
              </ul>
            </li>
          </ul>
        </div>
      </aside>
      <section id="content_wrapper">
        <section id="content">
          <? if ( $alert = \S::get_session( 'alert' ) ):
              \S::alert( false );
              ?>
              <div class="container-fluid">
                <div class="row mb10">
                  <div class="alert alert-danger col col-xs-12 alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                    <?= $alert;?>
                  </div>
                </div>
              </div>
              <?
          endif; ?>
          <?= $this -> _content;?>
        </section>
      </section>
    </div>
    <div id="overlay"></div>
    <script src="/libraries/framework/js/utility/utility.js"></script>
    <script src="/libraries/framework/js/main.js"></script>
    <script type="text/javascript">
      jQuery( document ).ready( function()
      {
        "use strict"; 
        Core.init();
      });
    </script>
  </body>
</html>