<?php   
//include('session.php');
//include('lib/conn.php');

?>
  <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
               <div class="container-fluid">
				 <!-- Brand and toggle get grouped for better mobile display -->
				 <div class="navbar-header">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
					 <span class="icon-bar"></span>
                     <span class="icon-bar"></span>
                     <span class="icon-bar"></span>
                    </a>
                    <span class="brand" href="#">Admin Panel</span>
				 </div>
				  <!--.nav-collapse -->
                    <div class="nav-collapse collapse">
                        <ul class="nav pull-right">
						<?php 
						$session_id =isset($_GET['session_id']) ? strtolower($_GET['session_id']) : NULL;
						$query= mysqli_query($con,"select * from admin where admin_id = '$session_id'");
							  $row = mysqli_fetch_array($query);
							  	$firstname =isset($user_row['firstname']) ? strtolower($user_row['firstname']) : NULL;
								$lastname =isset($user_row['lastname']) ? strtolower($user_row['lastname']) : NULL;
								$adminthumbnails =isset($row['adminthumbnails']) ? strtolower($row['adminthumbnails']) : NULL;
						?>
						
                            <li class="dropdown">
                                <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown"><!--img id="avatar1" class="img-responsive" src="<?php echo $row['adminthumbnails']; ?>"-->&nbsp;<?php echo $firstname.'&nbsp;'.$lastname;  ?> <i class="caret"></i>
                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                       <a tabindex="-1" href="change_password_admin.php"><i class="icon-cog"></i>&nbsp;Change Password</a>
									   <a tabindex="-1" href="#myModal3" data-toggle="modal"><i class="icon-picture"></i>&nbsp;Change Picture</a>
                                    </li>
                                    <li class="divider"></li>
                                    <li>
                                        <a tabindex="-1" href="logout.php"><i class="icon-signout"></i>&nbsp;Logout</a>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                    <!--/.nav-collapse -->
                </div>
            </div>
        </div>
		<?php include('admin_change_picture.php'); ?>	