<?php
if(isset($_SESSION["status"]))
{

    if($_SESSION["status"]=="admin")
    {
    ?>


 <li>
                            

                            <a href="index2.php"><i class="glyphicon glyphicon-home"></i> Admin Dashboard</a>
                        </li>
                        

<li>
                          

                        <li>
                            <a href="profile.php"><i class="glyphicon glyphicon-user"></i> Admin Profile</a>
                        </li>
                        
                        <li>
                            <a href="update.php"><i class="glyphicon glyphicon-edit"></i> Admin Update Profile</a>
                        </li>
                        
                        <li>
                            <a href="updatepicture.php"><i class="glyphicon glyphicon-camera"></i> Admin Update Picture</a>
                        </li>
                        
                        <li>
                            <a href="add_product.php"><i class="glyphicon glyphicon-plus"></i> Admin Add Market</a>
                        </li>
                            
                        
                         <li>
                            <a href="vieworder.php"><i class="glyphicon glyphicon-list"></i> Admin View Market</a>
                        </li>
                        
                        
                       
                        <li>
                            <a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Admin Logout</a>
                        </li>
                        


<?php
}
elseif  (isset($_SESSION["status"]))
{

    if($_SESSION["status"]=="visitor")
    {
    ?>

  


 <li>
                            

                            <a href="index2.php"><i class="glyphicon glyphicon-home"></i> Dashboard</a>
                        </li>
                        

<li>
                          

                        <li>
                            <a href="profile.php"><i class="glyphicon glyphicon-user"></i> Profile</a>
                        </li>
                        
                        <li>
                            <a href="update.php"><i class="glyphicon glyphicon-edit"></i> Update Profile</a>
                        </li>
                        
                        <li>
                            <a href="updatepicture.php"><i class="glyphicon glyphicon-camera"></i> Update Picture</a>
                        </li>
                        
                        <li>
                            <a href="add_product.php"><i class="glyphicon glyphicon-plus"></i> Add Market</a>
                        </li>
                            
                        
                         <li>
                            <a href="vieworder.php"><i class="glyphicon glyphicon-list"></i> View Market</a>
                        </li>
                        
                        
                         <li>
                            <a href="viewRating.php"><i class="glyphicon glyphicon-star"></i> Rating</a>
                        </li>
                        
                       
                        <li>
                            <a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
                        </li>

<?php
}
else 
{ 
  ?>
   <li>
                            

                            <a href="index2.php"><i class="glyphicon glyphicon-home"></i> Dashboard</a>
                        </li>
                        

<li>
                          

                        <li>
                            <a href="profile.php"><i class="glyphicon glyphicon-user"></i> Profile</a>
                        </li>
                        
                        <li>
                            <a href="update.php"><i class="glyphicon glyphicon-edit"></i> Update Profile</a>
                        </li>
                        
                        <li>
                            <a href="updatepicture.php"><i class="glyphicon glyphicon-camera"></i> Update Picture</a>
                        </li>
                        
                        <li>
                            <a href="add_product.php"><i class="glyphicon glyphicon-plus"></i> Add Market</a>
                        </li>
                            
                        
                         <li>
                            <a href="vieworder.php"><i class="glyphicon glyphicon-list"></i> View Market</a>
                        </li>
                        
                        
                         <li>
                            <a href="viewRating.php"><i class="glyphicon glyphicon-star"></i> Rating</a>
                        </li>
                        
                       
                        <li>
                            <a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
                        </li>

 <?php
}
}
}
?>