
 <?php

	function navigation($active_nav) {
		echo"  
 <div class=\"navbar navbar-default navbar-fixed-top navbar-inverse\">
      <div class=\"container\">
        <div class=\"navbar-header\">
        <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\"#example\">
          <span class=\"icon-bar\"></span>
          <span class=\"icon-bar\"></span>  
          <span class=\"icon-bar\"></span>
        </button>
          <a href=\"\" class=\"navbar-brand\">Asset Listing</a>
        </div>
        <div class=\"collapse navbar-collapse\" id=\"example\">
          <ul class=\"nav navbar-nav\">
            <li ";
		  if($active_nav=="index") { echo"class=\"active\""; }
		  echo"><a href=\"./\"><span  class=\"glyphicon glyphicon-home\"></span> Home</a></li>
            <li ";
		  if($active_nav=="display") { echo"class=\"active\""; }
		  echo"><a href=\"display.php\"><span class=\"glyphicon glyphicon-list-alt\"></span> View List</a></li>
            <li ";
		  if($active_nav=="update_page") { echo"class=\"active\""; }
		  echo"><a href=\"update_page.php\"><span class=\"glyphicon glyphicon-pencil\"></span> Update List</a></li>
            <li ";
		  if($active_nav=="advance_search") { echo"class=\"active\""; }
		  echo"><a href=\"advance_search.php\"><span class=\"glyphicon glyphicon-search\"></span> Advance Search</a></li>
            <li>
            <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">
            <span class=\"glyphicon glyphicon-user\"></span> Super Admin
            <span class=\"caret\"></span>
            </a>
            <ul class=\"dropdown-menu\">
              <li ";
		  
		  if($active_nav=="add_item") { echo"class=\"active\""; }
		  echo"><a href=\"add_item.php\"><span class=\"glyphicon glyphicon-shopping-cart\"></span> Add item</a></li>              
            </ul>
            </li>
          </ul>
           <form action=\"search.php\" method=\"POST\" class=\"navbar-form navbar-left\" role=\"search\">
            <div class=\"form-group \">
              <input type=\"text\" name=\"search\" class=\"form-control\" placeholder=\"Search Here\">
            </div>
            <button name=\"submit\" type=\"submit\" class=\"btn btn-primary \"><span class=\"glyphicon glyphicon-search\"></span></button>
  
          </form>
		  <ul class=\"nav navbar-nav  navbar-left \" >
		   <li>
		   <form action=\"homepage.php\" method=\"POST\" class=\"navbar-form\">
            <a href=\"\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">
            <span class=\"glyphicon glyphicon-user\">
			 </span>";
			   
			echo"<span class=\"caret\"></span>
            </a>
            <ul class=\"dropdown-menu\">
			<li class=\"divider\"></li>
			  
				
				
            </ul>
			</form>
		  </ul>";

	 
	 echo"
        </div>
      </div>
    </div>";
	}

?>