<?php

//set the variable current page
$current_page = basename($_SERVER['SCRIPT_NAME']);

?>  
  
    <nav class="navbar navbar-fixed-top navbar-inverse" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-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="index.php"><img src="images/logo.png" alt="logo" height="80" width="90"/></a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse navbar-ex1-collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li ><a href="http://schoolofhealthtechnologyminna.com/">Back to Main Site</a>
                    </li>
                    
                    <li class="dropdown" <?php if($current_page == 'generate_epin.php' || $current_page == 'apply1.php' || $current_page == 'apply_2.php' || $current_page == 'apply_3.php' || $current_page == 'page_preview.php'  || $current_page == 'apply_4.php'){echo 'class="active"';} ?>>
                    	<!--<a  href="#" >APPLY TODAY
                          <b class="caret"></b>-->
                        </a>-->
                        
                        <!-- deactivate the drop down menu 
                        <ul class="dropdown-menu">

                            <li>
                                <a href="generate_epin.php"> Visit ePIN portal</a>
                            </li>
                            <li><a href="apply1.php">ePin Login</a></li>
                        
                        </ul> -->                      
                    </li>
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container -->
    </nav>