<?php
require_once(SABLE_THEME_WORKING_PATH.'menu/menu_func.php');
?>
<nav class="navbar-default navbar-static-side" role="navigation"  style="min-height: 1200px;">
    <div class="sidebar-collapse">
        <ul class="nav metismenu" id="side-menu">
            <li class="nav-header">
                <div class="profile-element text-center">
                    <span>
                        <img alt="image" class="img-circle pointer" src="<?php echo($usrImage); ?>" onClick="<?php echo($onclick) ?>"/>
                    </span>

                    <span class="clear">
                        <span class="block m-t-xs">
                            <strong class="font-bold">
                                <?php SableGeneralFunctions::printFullUserName(false); ?></b>
                            </strong>
                        </span>                              
                    </span>
                    <span class="clear">
                        <span class="block m-t-xs">
                            <strong class="font-normal">
                                <?php SableGeneralFunctions::printAccessName(); ?></b>
                            </strong>
                        </span>                              
                    </span>

                    <div class="logo-element">NAV</div>
                </div>
             </li>                    
            <!-- LOG OUT -->
            <li class="landing_link">
                <a href="<?php SableSystem::printSableLinkPath('login/logout.php'); ?>">
                    <i class="fa fa-sign-out-alt"></i> <span class="nav-label">Log Out</span>
                </a>                    
            </li>  
            <!-- HOME -->
			<?php
                $dbIcon = ($_SESSION['user']['access_level'] >= SABLE_ACCESS_CLERK) ? "fa-tachometer-alt"    : "fa-home";
                $dbText = ($_SESSION['user']['access_level'] >= SABLE_ACCESS_CLERK) ? "Dashboard"            : "Home";
            ?>
            <li class="special_link">
                <a href="<?php SableSystem::printSableLinkPath('home/'); ?>"><i class="fa <?php echo($dbIcon); ?>"></i> <span class="nav-label"><?php echo($dbText); ?></span></a>                    
            </li>            
			<?php
			if ($_SESSION['user']['access_level'] >= SABLE_ACCESS_SUPER)	
				require_once(SABLE_THEME_WORKING_PATH.'menu/index_super.php');
			elseif ($_SESSION['user']['access_level'] >= SABLE_ACCESS_ADMIN)
				require_once(SABLE_THEME_WORKING_PATH.'menu/index_admin.php');
			elseif ($_SESSION['user']['access_level'] >= SABLE_ACCESS_MANAGER)
				require_once(SABLE_THEME_WORKING_PATH.'menu/index_manager.php');
			elseif ($_SESSION['user']['access_level'] >= SABLE_ACCESS_CLERK)
				require_once(SABLE_THEME_WORKING_PATH.'menu/index_clerk.php');
			elseif ($_SESSION['user']['access_level'] >= SABLE_ACCESS_USER)		
				require_once(SABLE_THEME_WORKING_PATH.'menu/index_clerk.php');
            ?>
        </ul>
    </div>
</nav>