<!-- Tray -->

<div id="tray" class="box">
  <p class="f-left box"> 
    <!-- Switcher --> 
    <span class="f-left" id="switcher"> <a href="#" rel="1col" class="styleswitch ico-col1" title="Display one column"><img src="images/switcher-1col.gif" alt="1 Column" /></a> <a href="#" rel="2col" class="styleswitch ico-col2" title="Display two columns"><img src="images/switcher-2col.gif" alt="2 Columns" /></a> </span> Project: <strong><?php echo SITE_NAME; ?></strong> </p>
  <p class="f-right">User: <strong><?php echo $_SESSION['admin_fname'].' '.$_SESSION['admin_lname'] ?></strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><a href="admin-login.php?act=logout" id="logout">Log out</a></strong></p>
</div>
<!--  /tray -->
<hr class="noscreen" />
<!-- Menu -->
<div id="menu" class="box">
  <ul class="box f-right">
    <li><a href="<?php echo SITE_URL; ?>backend"><span><strong>Dashboard</strong></span></a></li>
    <li><a href="<?php echo SITE_URL; ?>" target="_blank"><span><strong>Visit Site &raquo;</strong></span></a></li>
  </ul>
  <?php 
		if($_SESSION['admin_access']!='Full'){
			$admin_access = explode(',',$_SESSION['admin_access']);
		}else{
			$admin_access = array();
		}
		$fname=basename($_SERVER['SCRIPT_FILENAME']);
		?>
  <ul class="box">
    <?php if($_SESSION['admin_access']=='Full' || ( in_array('1',$admin_access)) ){ ?>
    <li onmouseover="this.className = 'dropdown-on'" onmouseout="this.className = 'dropdown-off'">
      <div><a href="adminlist.php"><span>Admin</span></a>
        <?php if($event_access[1] && in_array('add',$event_access[1]) || $_SESSION['admin_access']=='Full'){ ?>
        <!-- Dropdown menu -->
        <div class="drop">
          <ul class="box">
            <li><a href="addadmin.php">Add Admin</a></li>
          </ul>
        </div>
        <!-- /drop -->
        <?php } ?>
      </div>
    </li>
    <?php } ?>
    <li onmouseover="this.className = 'dropdown-on'" onmouseout="this.className = 'dropdown-off'">
      <div><a href="userlist.php"><span>User</span></a>
        <!-- Dropdown menu -->
        <div class="drop">
          <ul class="box">
            <li><a href="adduser.php">Add User</a></li>
          </ul>
        </div>
        <!-- /drop -->
      </div>
    </li>
    
    <li onmouseover="this.className = 'dropdown-on'" onmouseout="this.className = 'dropdown-off'">
      <div><a href="restaurantlist.php"><span>Restaurant</span></a>
        <!-- Dropdown menu -->
        <div class="drop">
          <ul class="box">
            <li><a href="addrestaurant.php">Add Restaurant</a></li>
          </ul>
        </div>
        <!-- /drop -->
      </div>
    </li>
    
    <li onmouseover="this.className = 'dropdown-on'" onmouseout="this.className = 'dropdown-off'">
      <div><a href="nominationlist.php"><span>Nominations</span></a>
        <!-- Dropdown menu -->
        <div class="drop">
          <ul class="box">
            <li><a href="addnomination.php">Add Nomination</a></li>
          </ul>
        </div>
        <!-- /drop -->
      </div>
    </li>
    
   
  </ul>
</div>
<!-- /header --> 
