<?php include('z_a_version_check.php'); 		?>
<?php	include('field_names.php'); 	?>
<?php	include('menu_checks.php'); ?>
<?php	

			$admin_word = "admin";	
			
			
			$xfdc 	= $_GET['xfdc'];			
			
	if ($xfdc == "" && $nfid == "") {	$xfdc 	= $_GET['xfdc']; }
	if ($xfdc == "" && $nfid == "1") {	$xfdc 	= $_COOKIE["unidx"]; }			
			
			include('menu_vars.php'); 		
?>
<div class="bs-example">
    <nav class="navbar navbar-expand-lg navbar-light bg-white">
	<div class="container-fluid">	
        <a class="navbar-brand" href="menu.php?pid=<?php echo $pid ?>&xuid=<?php echo $xuid ?>&lang=<?php echo $lang ?>&xfdc=<?php echo $xfdc ?>" class="navbar-brand" >
		<h3> &#9776; <?php echo $nmenu ?></h3> </a>
		</a>
		
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ms-auto mb-2 mb-lg-0">


		<!-- FORMS SECTION -->
        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
            <span style='color:<?php echo $menu_color_forms ?>'><i class="fas fa-desktop"></i></span> <?php echo $forms_name ?>
          </a>
          <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
            <li class="dropdown-item"><?php echo $form1 ?></li>
            <li class="dropdown-item"><?php echo $form2 ?></li>
            <li class="dropdown-item"><?php echo $form3 ?></li>
            <li class="dropdown-item"><?php echo $form4 ?></li>
            <li class="dropdown-item"><?php echo $form5 ?></li>
            <li class="dropdown-item"><?php echo $form6 ?></li>
            <li class="dropdown-item"><?php echo $form7 ?></li>
            <li class="dropdown-item"><?php echo $form8 ?></li>
            <li class="dropdown-item"><?php echo $form9 ?></li>
            <li class="dropdown-item"><?php echo $form10 ?></li>
            <li class="dropdown-item"><?php echo $form11 ?></li>
            <li class="dropdown-item"><?php echo $form12 ?></li>
          </ul>
        </li>				
		
		<!-- REPORTS SECTION -->
        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
			<span style='color:<?php echo $menu_color_reports ?>'><i class="far fa-file-alt"></i></span> <?php echo $reps_name ?>
          </a>
          <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
            <li class="dropdown-item"><?php echo $rep1 ?></li>
            <li class="dropdown-item"><?php echo $rep2 ?></li>
            <li class="dropdown-item"><?php echo $rep3 ?></li>
            <li class="dropdown-item"><?php echo $rep4 ?></li>
            <li class="dropdown-item"><?php echo $rep5 ?></li>
            <li class="dropdown-item"><?php echo $rep6 ?></li>
            <li class="dropdown-item"><?php echo $rep7 ?></li>
            <li class="dropdown-item"><?php echo $rep8 ?></li>
            <li class="dropdown-item"><?php echo $rep9 ?></li>
            <li class="dropdown-item"><?php echo $rep10 ?></li>
            <li class="dropdown-item"><?php echo $rep11 ?></li>
            <li class="dropdown-item"><?php echo $rep12 ?></li>
          </ul>
        </li>						
		


		<!-- VIEWS SECTION -->
        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
				<span style='color:<?php echo $menu_color_views ?>'><i class="fas fa-chart-bar"></i></span> <?php echo $views_name ?>
          </a>
          <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
            <li class="dropdown-item"><?php echo $view1 ?></li>
            <li class="dropdown-item"><?php echo $view2 ?></li>
            <li class="dropdown-item"><?php echo $view3 ?></li>
            <li class="dropdown-item"><?php echo $view4 ?></li>
            <li class="dropdown-item"><?php echo $view5 ?></li>
            <li class="dropdown-item"><?php echo $view6 ?></li>
            <li class="dropdown-item"><?php echo $view7 ?></li>
            <li class="dropdown-item"><?php echo $view8 ?></li>
            <li class="dropdown-item"><?php echo $view9 ?></li>
            <li class="dropdown-item"><?php echo $view10 ?></li>
            <li class="dropdown-item"><?php echo $view11 ?></li>
            <li class="dropdown-item"><?php echo $view12 ?></li>
          </ul>
        </li>								
				

		<!-- STRUCTURE SECTION -->				
		<?php if (strpos($usrole, $admin_word) !== false) {	?>						

        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
				<span style='color:<?php echo $menu_color_struc ?>'><i class="fas fa-database"></i></span> <?php echo $structure_name ?>
          </a>
          <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
            <li class="dropdown-item"><?php echo $struc1 ?></li>
            <li class="dropdown-item"><?php echo $struc2 ?></li>
            <li class="dropdown-item"><?php echo $struc3 ?></li>
            <li class="dropdown-item"><?php echo $struc4 ?></li>
            <li class="dropdown-item"><?php echo $struc5 ?></li>
            <li class="dropdown-item"><?php echo $struc6 ?></li>
            <li class="dropdown-item"><?php echo $struc7 ?></li>
            <li class="dropdown-item"><?php echo $struc8 ?></li>
            <li class="dropdown-item"><?php echo $struc9 ?></li>
            <li class="dropdown-item"><?php echo $struc10 ?></li>
            <li class="dropdown-item"><?php echo $struc11 ?></li>
            <li class="dropdown-item"><?php echo $struc12 ?></li>
          </ul>
        </li>								


		<?php } ?>
            </ul>
         </div>
	</div>
    </nav>

</div>