<?php if($_SESSION["admin_bi"]) { /*usar em js*/ echo "<div id='usuario_admin'></div>"; }?>
<nav class="navbar navbar-inverse navTopo" >
  <div class="container-fluid">
    
	<div class="navbar-header" style="top: 0px; height: 50px;">
	  <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
		<span class="icon-bar"></span>
		<span class="icon-bar"></span>
		<span class="icon-bar"></span>                        
	  </button>
	
   </div>
   
    <div class="collapse navbar-collapse" id="myNavbar" style=" ">
      <ul class="nav navbar-nav">
        
       <!-- <li class="active"><a href="javaScript:void(0)" onclick="openNav()"><i class="fa fa-tachometer"></i>
            <span class="nav-link-text">Dashboard</span></a>
		</li>-->
        <li><a href="javaScript:void(0)" class="listar_analises anav">Relatórios</a></li>
		<?php if($_SESSION["admin_bi"]) { ?>
		<li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="#">Admin <span class="caret"></span></a>
          <ul class="dropdown-menu">
			<li style="margin-left: 10px;">Cadastros</li>
            <li><a href="javaScript:void(0)" class="anav lista_paginas_admin">Dashboard</a></li><!--cria_pagina.php-->
			<li><a href="javaScript:void(0)" class="anav listar_analises_adm">Análises</a></li>
			<li><a href="javaScript:void(0)" class="anav lista_conexoes_admin">Conexoes</a></li>
			<li><a href="javaScript:void(0)" class="anav lista_modelos_dados">Modelo dados</a></li>
			<li><a href="javaScript:void(0)" class="anav lista_areas_admin">Áreas</a></li>
			<li><a href="javaScript:void(0)" class="anav lista_usuarios_admin">Usuários</a></li>
			<li style="margin-left: 10px;">Permissões</li>
			<li><a href="javaScript:void(0)" class="anav lista_permissao_analise">Permissão Aanálises</a></li>
			<li><a href="javaScript:void(0)" class="anav lista_permissao_pagina">Permissão Dashboard</a></li>
			<li><a href="javaScript:void(0)" class="anav lista_grupo_permissao_admin">Grupos permissões</a></li>
			<li style="margin-left: 10px;">Importação</li>
			<li><a href="javaScript:void(0)" class="anav layout_importacao">Layout Importação</a></li>
			<li><a href="javaScript:void(0)" class="anav importacao_file">Importação</a></li>
			<li style="margin-left: 10px;">Outros</li>
			<li><a href="javaScript:void(0)" class="anav log_acesso">Log acesso</a></li>
			<li><a href="javaScript:void(0)" class="anav carga_tabela">Carga tabela</a></li>
          </ul>
        </li>
		<?php } ?>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#"><span class="glyphicon glyphicon-user"></span> <?php echo explode(" ",$_SESSION["nome_usuario_bi"])[0];?></a></li>
        <li><a href="sair.php"><span class="glyphicon glyphicon-log-out"></span> Sair</a></li>
      </ul>
    </div>
  </div>
</nav>

<!--
<li class="active" style="position: fixed;  transform:  translateX(-50%) translateY(-50%) rotate(-90deg); padding: 10px; top: 120px; left: 10px;">
	<a href="javaScript:void(0)" onclick="openNav()">
	<i class="fa fa-tachometer" style="color: #cccccc;"></i>
	 <span class="nav-link-text" style="color: #cccccc;">Dashboard</span></a>
</li>-->

<a id="btnOpenNav" href="javaScript:void(0)" onclick="openNav()">
	<li class="active botaoDashLateral" style="position: fixed;  padding: 11px; padding-left: 10px; top: 100px; left: -5px; background: black; z-index: 10;">
		<i class="fa-solid fa-chart-line" style="color: #cccccc;"></i>
		 <span class="nav-link-text" style="color: #cccccc;"> &nbsp; Dashboard</span>
	</li>
</a>

<nav class="navbar navbar-inverse menuTitulo" id="menuSobreporAnav" style=" width: 220px; position: fixed; top: 0px; border-right: 0; z-index: 12;">
<div class="container-fluid">
  <div class="navbar-header" style="top: 0px; height: 50px;">
	
		<a class="navbar-brand" href="#" style="font-size: 18px; font-weight: bold;" ><i class="fa-solid fa-chart-line" style="font-size: 18px; font-weight: bold;" ></i> Mini Reports</a>
   </div>
</div>
</nav>