<!--Copyright (C) 2014  Web3king - Alberto Bonacina

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->

<!doctype html>
<html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>RistoMeal</title>
      <!-- If you are using CSS version, only link these 2 files, you may add app.css to use for your overrides if you like. -->
      <link href="<?php echo base_url();?>css/bootstrap.css" rel="stylesheet">
      <link href="<?php echo base_url();?>css/sb-admin.css" rel="stylesheet">
      <link href="<?php echo base_url();?>css/jquery.dataTables.css" rel="stylesheet">
      
      <link href="<?php echo base_url();?>css/font-awesome.min.css" rel="stylesheet">
      <link href="<?php echo base_url();?>css/datepicker.css" rel="stylesheet">

      <!--Mio stile personalizzato -->
      <link href="<?php echo base_url();?>css/style.css" rel="stylesheet">
      <link href='http://fonts.googleapis.com/css?family=Raleway:300' rel='stylesheet' type='text/css'>

      <!--Include jQuery nell'head perchè lo richiede checkbox -->
      <script src="<?php echo base_url();?>js/jquery-1.11.1.min.js"></script>
      <link href="<?php echo base_url();?>css/jquery.alt-checkbox.icon-font.min.css" rel="stylesheet">
      <link href="<?php echo base_url();?>css/jquery.alt-checkbox.min.css" rel="stylesheet">
      <script src="<?php echo base_url();?>js/jquery.alt-checkbox.min.js"></script>

      <link rel="stylesheet" href="<?php echo base_url();?>css/jquery-ui-1.10.4.custom.min.css" />
      
    </head>

    <body>

       <div id="wrapper">

          <nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-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="#">RistoMeal Admin</a>
            </div><!-- /.navbar-header -->


              <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Account <?php echo $this->session->userdata('username');?> <b class="caret"></b></a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="<?php echo base_url() . 'index.php/workspace/logout'; ?>"><i class="fa fa-sign-out"></i> Logout</a></li> 
                    </ul><!-- /.dropdown-user -->
                </li><!-- /.dropdown -->
            </ul><!-- /.navbar-top-links -->

            <div class="navbar-default navbar-static-side" role="navigation">
                <div class="sidebar-collapse">
                        <?php $this->load->view($sidebar_content);?>
                </div><!-- /.sidebar-collapse -->
            </div><!-- /.navbar-static-side -->
        </nav>

        <div id="page-wrapper">
          <?php $this->load->view($main_content);?>
        </div><!-- /#page-wrapper -->


       </div><!-- /#wrapper -->