<?php 

//include the online visitors starts here since header is inluded in all the pages

//set online visitors
echo set_online_visitors();


?>


    
    
        <div class="row">
    	
            <div class="container">
              <div class="col-lg-4">
              	<a href="http://wwww.ibbu.edu.ng"><img src="<?php echo $path ?>images/ibbu-logo.png" /></a>
              </div>
              
              
              	<div col-lg-6>
                
                
                <div class="well-sm" style="background-color:#FFF;  padding:3px;">
    	
                            <div class="container">
                              <form class="navbar-form navbar-right">
                              
                                  <div class="input-group input-group-sm" style="max-width:400px;">
                                      <input id="srch-term" class="form-control" type="text" name="srch-term" placeholder="Search the site..."></input>
                                      <div class="input-group-btn">
                                          <button class="btn btn-default" type="submit">
                                              <i class="glyphicon glyphicon-search"></i>
                                          </button>
                                      </div>
                                  </div>
                              
                              </form>
                       
                            
                            </div><!-- /container -->
                        
                        </div><!--  / well -->
                	<span class="help-block text-right"><a style="color:#999;" href="index.php"> Home </a> - <a style="color:#999;" href="faq/"> Faq </a> - <a style="color:#999;" href="contact_us.php"> Contact Us </a></span>
                
                
                <div col-lg-6>
                </div>
              	
              </div>
            
            </div><!-- /container -->
        
        </div><!--  / row -->




<?php

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

?>  
 <div class="row"> <!-- row starts -->
    <nav class="navbar 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" /></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-left">
                    <li <?php if($current_page == 'index.php'){echo 'class="active"';} ?>><a href="<?php echo $path; ?>index.php">HOME</a></li>
                    
                    <li <?php if($current_page == 'about.php' || $current_page == 'about_nigerstate.php')
												 {echo 'class="active"';} ?>>
                    <a class="dropdown-toggle" href="#" data-toggle="dropdown" >ABOUT IBBUL  <b class="caret"></b></a>
                    
                      
                        
                        <ul class="dropdown-menu">
                          <li ><a href="<?php echo $path; ?>about.php?#sec0" title="Welcome Note">WELCOME NOTE BY THE VC</a>
                          </li>
                          <li ><a href="<?php echo $path; ?>about.php?#sec1" title="History">HISTORY OF IBBUL</a>
                          </li>
                          <li ><a href="<?php echo $path; ?>about.php?#sec3" title="Objectives of IBBUL">OBJECTIVES OF IBBUL</a>
                          </li>
                          <li ><a href="<?php echo $path; ?>about.php?#sec4" title="Mission Statement">MISSION STATEMENT</a>
                          </li>
                          <li ><a href="<?php echo $path; ?>about.php?#sec5" title="Vision Statement">VISION STATEMENT</a>
                          </li>
                          <li ><a href="<?php echo $path; ?>about.php?#sec6" title="Closing Statement">CLOSING STATEMENT</a>
                          </li>
                          <li><a  href="<?php echo $path; ?>about_nigerstate.php" title="About Niger State" data-toggle="tooltip" >ABOUT NIGER STATE</a>
                         </li>
                      
                    	</ul>  
                    </li>
                    
                    
                    <li  <?php if($current_page == 'ibbu_governing_council.php' || $current_page == 'principal_officers.php' || $current_page == 'registry.php' || $current_page == 'bursary.php' || $current_page == 'servicom_unit.php' || $current_page == 'vice_chancellor.php')
					{echo 'class="active"';} ?> >
                    <a  class="dropdown-toggle" href="#" data-toggle="dropdown"   title="Administration">ADMINISTRATION <b class="caret"></b></a>
                    
                    <ul class="dropdown-menu">
                        <li><a    href="<?php echo $path; ?>ibbu_governing_council.php" title="IBBU Governing Council">IBBU GOVERNING COUNCIL</a>
                          
                          <li ><a class="trigger right-caret"  title="Office of the VC">OFFICE OF THE VC</a>
                          
                                   <ul class="dropdown-menu sub-menu">
                                     <li ><a href="<?php echo $path; ?>vice_chancellor.php" title="THE VICE CHANCELLOR" >THE VICE CHANCELLOR</a>
                                     </li>
                                     <li ><a href="<?php echo $path; ?>servicom_unit.php" title="IBBU SERVICOM UNIT" >SERVICOM UNIT</a>
                                     </li>
                                     
                                     <li ><a href="<?php echo $path; ?>information_unit.php" title="INFORMATION & PUBLICATION UNITS" >INFORMATION & PUBLICATION UNITS</a>
                                     </li>
                                     <li ><a href="<?php echo $path; ?>internal_audit_unit.php" title="INTERNAL AUDIT" >INTERNAL AUDIT</a>
                                     </li>
                                     <li ><a href="<?php echo $path; ?>security_unit.php" title="SECURITY DIVISION" >SECURITY DIVISION</a>
                                     </li>
                                     
                                    </ul>
                          
                            </li>
                            <li ><a href="<?php echo $path; ?>principal_officers.php" title="Principal Officers">PRINCIPAL OFFICERS</a>
                            </li>
                            <li><a href="<?php echo $path; ?>registry.php" title="Registry">REGISTRY</a>
                            </li>
                               <li><a href="<?php echo $path; ?>bursary.php" title="Bursary">BURSARY</a>
                            </li>
                            <!--<li><a href="" title="Staff">Staff</a>
                            </li>-->
                       
                    </ul>
                    </li>
                    
                     
                   	<!-- Academics start -->
                    <li <?php if($current_page == 'departments/index.php' || $current_page == 'academic_calender.php' || $current_page == 'admissions.php' || $current_page == 'studying_at_ibbu.php'){echo 'class="active"';} ?>><a  class="dropdown-toggle" href="#" data-toggle="dropdown">ACADEMICS <b class="caret"></b></a>
                      <ul class="dropdown-menu">
                            <li ><a class="trigger right-caret" href="#" data-toggle="dropdown">FACULTIES</a>
                              <ul class="dropdown-menu sub-menu">
                                
                                <?php
                                
                                    //show faculty titles 
                                    $qh =  "SELECT * FROM faculties WHERE status = '0' ORDER BY title ";
                                    $rh = mysqli_query($dbc,$qh);
                                    
                                    if(mysqli_num_rows($rh)>0 )
                                    {
                                        while($row_h = mysqli_fetch_array($rh,MYSQLI_ASSOC))
                                        {
                                            $id_h = $row_h['íd'];
                                
                                 ?>
                                
                                
                                     <li ><a  class="trigger right-caret" href="<?php echo $path; ?>faculties/index.php?/=FACULTY OF  <?php echo $row_h['title']; ?>&carryf=<?php echo $row_h['id']; ?>&carrynot=<?php echo md5($row_h['id']); ?>" >FACULTY OF  <?php echo strtoupper($row_h['title']); ?></a> 
                                     
                                      <ul class="dropdown-menu sub-menu">
                                     
                                     <?php 
                                        
                                        //show department title
                                        $qh1 =  "SELECT id, title FROM departments WHERE faculty_id = '".$row_h['id']."' AND status ='0' ORDER BY title";
                                        $rh1 = mysqli_query($dbc,$qh1);
                                        
                                        if(mysqli_num_rows($rh1)>0 )
                                        {
                                            while($row_h1 = mysqli_fetch_array($rh1,MYSQLI_ASSOC))
                                            {
                                                //$id_h1 = $row_h1['íd'];
                                    
                                     ?>
                                    
                                      
                                      <li ><a  href="<?php echo $path; ?>departments/index.php?/=DEPARTMENT OF  <?php echo $row_h1['title']; ?>&carryd=<?php echo $row_h1['id']; ?>&carryf=<?php echo $row_h['id']; ?>"> DEPARTMENT OF  <?php echo $row_h1['title']; ?></a>
                                       </li>
                                     
                                     <?php
                                            }//end of while
                                        }//end of if
                                        else
                                        {
                                     ?>
                                           
                                           <li >
                                     
                                            No Department added yet.
                                            
                                             </li>
                                           
                                         
                                      <?php
                                            
                                        }//end of else
                                      ?>
                               
                                     </ul>
                                   
                                        
                                     
                                  </li>
                                
                                
                                <?php
                                        }//end of while
                                    }//end of if
                                
                                ?>
                                
                               
                                     
                                
                            </ul>
                            </li> 
                             <!-- end of faculty -->
                             
                             
                            <li ><a href="<?php echo $path; ?>pg_schools.php">PG SCHOOLS</a></li> 
                            <li ><a href="<?php echo $path; ?>academic_calender.php">ACADEMIC CALENDAR</a></li>
                            <li ><a href="<?php echo $path; ?>admissions.php">ADMISSIONS</a></li>
                            <li ><a href="<?php echo $path; ?>studying_at_ibbu.php" title="Studying at IBBU">STUDYING AT IBBU</a> </li>
                             
                     </ul>
                   </li>
                   <!-- end of academics -->
            		
                    
                     <li <?php if($current_page == 'pg_schools.php'){echo 'class="active"';} ?>><a href="<?php echo $path; ?>pg_schools.php">PG SCHOOLS</a></li>
                   
                    
                  <!--   
                    <li ><a class="dropdown-toggle" href="#" data-toggle="dropdown">FACULTIES<b class="caret"></b></a>
                      <ul class="dropdown-menu">
                          <li><a class="trigger right-caret" >Faculty of Agriculture</a>
                              <ul class="dropdown-menu sub-menu">
                               <li ><a >Department Of Agriculture Economics &Extension Ser</a>
                               </li>
                        	  </ul>
                        </li>
                        <li ><a class="trigger right-caret" >Faculty of Applied Science & Technology</a>
                        </li>
                        <li ><a  class="trigger right-caret" >Faculty of Education & Arts</a>
                        <li ><a  class="trigger right-caret" >Faculty of Languages &amp; Communication Studies</a>
                        <li ><a  class="trigger right-caret" >Faculty of Management &amp; Social Sciences</a>
                        <li ><a  class="trigger right-caret" >Faculty of Natural Sciences</a></li>
                        
                        
                    </ul>
                    </li>-->
                    
                    <li <?php if($current_page == 'ict_mis.php' || $current_page == 'academic_planning.php' || $current_page == 'general_studies.php' || $current_page == 'consultancy_services.php' || $current_page == 'development_units.php' || $current_page == 'quality_assurance.php'  || $current_page == 'caster.php'  || $current_page == 'entrepreneurship_counselling.php'){echo 'class="active"';} ?> >
                     <a  class="dropdown-toggle" href="#" data-toggle="dropdown">DIRECTORATES & UNITS <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                         <li><a  href="<?php echo $path; ?>ict_mis.php" title="ICT & MANAGEMENT INFORMATION SYSTEM	(MIS)">ICT & MANAGEMENT INFORMATION SYSTEM	(MIS)</a> </li>
                         <li><a  href="<?php echo $path; ?>academic_planning.php" title="ACADEMIC PLANNING"> ACADEMIC PLANNING		</a></li>
                         <li><a  href="<?php echo $path; ?>general_studies.php" title="GENERAL STUDIES">GENERAL STUDIES		</a></li>
                         <li><a  href="<?php echo $path; ?>consultancy_services.php" title="CONSULTANCY SERVICES"> CONSULTANCY SERVICES	</a></li>
                          <li><a href="<?php echo $path; ?>development_units.php" title="DEVELOPMENT UNITS">DEVELOPMENT UNITS</a></li>
                         <li><a  href="<?php echo $path; ?>quality_assurance.php"  title="QUALITY ASSURANCE">QUALITY ASSURANCE		</a></li>
                         <li><a  href="<?php echo $path; ?>caster.php"  title="CENTER FOR APPLIED SCIENCE AND TECHNOLOGICAL RESEARCH (CASTER)">CENTER FOR APPLIED SCIENCE AND TECHNOLOGICAL RESEARCH (CASTER)	</a></li>
                         <li><a  href="<?php echo $path; ?>entrepreneurship_counselling.php"  title="ENTERPRENEURSHIP AND COUNCELLING CENTER">ENTERPRENEURSHIP AND COUNCELLING CENTER	</a></li>
                        

                       
                    </ul>
                    </li>
                    
                    
                    
                     <li ><a class="dropdown-toggle" href="#" data-toggle="dropdown" >LIBRARY<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                      <li ><a  title="Structure of the Assembly">eLIBRARY</a>
                      </li>
                      <li ><a  class="trigger right-caret">PUBLICATIONS</a>
                         <ul class="dropdown-menu sub-menu">
                             <li ><a class="trigger right-caret" >LECTURES</a>
                                  <ul class="dropdown-menu sub-menu">
                                     <li ><a href="#">VC's Seminars</a></li>
                                     <li ><a >Public Lectures</a></li>
                                     <li ><a >Inaugural Lectures</a></li>
                                    
                                   </ul>
                             </li>
                              <li ><a >IBBU Journals</a></li>
                            
                          </ul>
                      </li>
                      
                  </ul>
                  </li>
                    
                 
                    
                    
                  <?php /*?>  <li ><a class="dropdown-toggle" href="#" data-toggle="dropdown" >RESEARCH <b class="caret"></b></a>
                     	<ul class="dropdown-menu" >
                          	   <li ><a href="<?php echo $path; ?>">Research at IBBU</a></li>
                        </ul>
                        
                    </li><?php */?>
                    
                    
                    
                    
                    <li>
                    	<a class="dropdown-toggle" href="#" data-toggle="dropdown" >MAIL & PORTALS <b class="caret"></b></a>
                        <ul class="dropdown-menu" >
                        		     <li ><a href="<?php echo $path; ?>#">MAIL PORTAL</a></li>
                               	 	 <li ><a class="list-group-item" href="staff/"><i class="glyphicon glyphicon-forward"></i> STAFF PORTAL</a></li>
                                    <li > <a class="list-group-item" href="#"><i class="glyphicon glyphicon-forward"></i> ADMISSIONS STATUS /CHECKING</a></li>
                                    <li > <a class="list-group-item" href="students/"><i class="glyphicon glyphicon-forward"></i> UNDER GRADUATE STUDENT PORTAL</a></li>
                                    <!--  <li > <a class="list-group-item" href="#"><i class="glyphicon glyphicon-forward"></i> IJMB/REMEDIALS(SPGS) REGISTRATION PORTAL </a></li>-->
                                    <li > <a class="list-group-item" href="#"><i class="glyphicon glyphicon-forward"></i> IJMB APPLICATION </a></li>
                                     <li ><a class="list-group-item" href="#"><i class="glyphicon glyphicon-forward"></i> IJMB REGISTRATION PORTAL </a></li>
                                    <li > <a class="list-group-item" href="#"><i class="glyphicon glyphicon-forward"></i> POSTGRADUATE SCHOOL PORTAL</a></li>
                                    <!-- <li > <a class="list-group-item" href="#"><i class="glyphicon glyphicon-forward"></i> e Library</a></.li>-->
                                                    
                            </li>
                         </ul>
                    </li>
                     
                   
                  
                   
                   
                   
                    <li <?php if($current_page == 'pictures.php' || $current_page == 'videos.php' || $current_page == 'news.php' || $current_page == 'single_news.php' || $current_page == 'events.php' || $current_page == 'single_video.php' || $current_page == 'single_event.php'){echo 'class="active"';} ?> class="dropdown" >
                    	<a class="dropdown-toggle" href="#" data-toggle="dropdown">MEDIA
                         <b class="caret"></b>
                        </a>
                        
                        <ul class="dropdown-menu">
							  <li><a href="<?php echo $path; ?>news.php">NEWS</a>
                    			</li>
                            <li>
                             <li>
                     				<a href="<?php echo $path; ?>events.php">EVENTS</a>
                    		 </li>
                             <li>
                                <a href="<?php echo $path; ?>pictures.php"> PICTURE GALLERIA</a>
                            </li>
                            <li><a href="<?php echo $path; ?>videos.php">VIDEOS</a></li>
                        
                        </ul>  
                    </li>
                    
                   
              
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container -->
        
      
        
        
    </nav>
    
  </div> <!-- /row -->