<div ng-include="'views/barraCabecalho.html'"></div>
<div class="header" style="background:none; background-color:#333366; margin-bottom:10px; padding:0">
    <div class="container" style="padding-bottom:0px; padding-top:10px;" ng-show="root_mostraBarraCabecalho===true">
        <!--<img src="../app/images/logo_inventario_pg_interiores.png"/>
        <div style="padding-top:10px" ng-controller="escolaController" ng-init="carregarEscola()">
            <label style="color:white">{{nomeEscola}}</label>
        </div>
        <div style="text-align:right">
            <div style="color:#fff;">{{getNomeEntradaUtilizador()}}</div>
            <div style="color:#fff;">{{getUltimaEntradaUtilizador()}}</div>
        </div>-->
        <div class="col-md-6" style="padding-left: 0px; padding-bottom:5px" ng-controller="escolaController" ng-init="carregarEscola()">
            <img src="../app/images/logo_inventario_pg_interiores.png" />
            <br />
            <label style="color:white; margin-top:10px">{{nomeEscola}}</label>
        </div>
        <div class="col-md-6" style="text-align:right; padding-top:20px">
            <div style="color:#fff;">{{getNomeEntradaUtilizador()}}</div>
            <div style="color:#fff;">{{getUltimaEntradaUtilizador()}}</div>
        </div>
    </div>
    <div class="container" role="navigation" style="padding:0;">
        <div class="container-fluid">
            
            <ul class="nav navbar-nav">

                <li ng-style="isActive1('/cadastro')"><a href="#cadastro" class="ma" ng-style="isActive1('/cadastro')">Bens</a></li>
                <li ng-style="isActive1('/local')"><a href="#local" class="ma" ng-style="isActive1('/local')">Locais</a></li>
                <li ng-style="isActive1('/gestao')"><a href="#gestao" class="ma" ng-style="isActive1('/gestao')">Gestão</a></li>
                <li ng-style="isActive1('/plano')"><a href="#plano" class="ma" ng-style="isActive1('/plano')">Manutenção</a></li>
                <li ng-style="isActive1('/diversos')"><a href="#diversos" class="ma" ng-style="isActive1('/diversos')">Diversos</a></li>
            </ul>
            
            <form class="navbar-form navbar-right"
                  role="navigation">
                            
                <!--<button ng-controller="escolaController" ng-click="imprimirManual()" type="button"
                        popover-placement="bottom"
                        popover-trigger="mouseenter"
                        data-popover="Manual"
                        class="btn btn-primary btn-md">

                    <span class="glyphicon glyphicon-question-sign"></span>
                </button>-->
                <div class="form-group">
                    
                    <select class="form-control" id="tipoperfil" style=""
                            ng-model="perfilSeleccionado"
                            ng-change="selPerfilUsar(perfilSeleccionado)"
                            ng-options="e.NomePerfil for e in perfisuser"></select>

                </div>
                <button id="botaoAnoCivil"
                        popover-placement="bottom"
                        popover-trigger="mouseenter"
                        data-popover="Ano Civil"
                        ng-controller="escolaController"
                        ng-init="getAnoSel()"
                        onclick="location.href='#/diversos'" type="button"
                        class="btn btn-default btn-md">
                    {{selectedAnoCivil.Ano}}
                </button>
                <!--<button popover-placement="bottom"
                        popover-trigger="mouseenter"
                        data-popover="Sair"
                        ng-controller="loginController"
                        ng-click="logout=true; encerrarSessao()" type="button"
                        class="btn btn-default btn-md">
                    <span class="glyphicon glyphicon-off"></span>
                </button>-->
            </form>

        </div>
    </div>


</div>
