<div class="grey_bg">
		
				<div class="nav_three">
				<ul>
				
				<?php 	
				
				$desigsss = mysql_query("SELECT * FROM designation where desig_id='$rowsg[e_post]' and departs_id='$rowsg[departid]'");
    $desigsss = mysql_fetch_array($desigsss);
			
				$menu_list_act1=mysql_fetch_array(mysql_query("SELECT * FROM menu where menu_id in(".$desigsss['desig_rights'].") and sort_order!=0 and menu_link='add_project.php' order by sort_order"));
				$menu_list_act2=mysql_fetch_array(mysql_query("SELECT * FROM menu where menu_id in(".$desigsss['desig_rights'].") and sort_order!=0 and menu_link='add_activity.php' order by sort_order"));
				$menu_list_act3=mysql_fetch_array(mysql_query("SELECT * FROM menu where menu_id in(".$desigsss['desig_rights'].") and sort_order!=0 and menu_link='activities_done.php' order by sort_order"));
				$menu_list_act4=mysql_fetch_array(mysql_query("SELECT * FROM menu where menu_id in(".$desigsss['desig_rights'].") and sort_order!=0 and menu_link='activities_report.php' order by sort_order")); 
				
				?>
						<?php 
$url = $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
$url_path = parse_url($url, PHP_URL_PATH);
$parts = explode('/', $url_path);
$last = end($parts);
 ?>
                
<?php if($userid==1){?>
<a href="add_project.php"><li <?php if($last=='add_project.php'){?> class="li-activity"<?php } ?>><font color="#FFFFFF"><translate>Project</translate></font></li></a>
<a href="add_activity_view.php"><li <?php if($last=='add_activity_view.php'){?> class="li-activity"<?php } ?>><font color="#FFFFFF"><translate>Activity Plan</translate></font></li></a>
				
								
							
<a href="activities_report.php"><li <?php if($last=='activities_report.php'){?> class="li-activity"<?php } ?>><font color="#FFFFFF"><translate>Activities Completed</translate></font></li></a>
<?php }else {?>

		<a href="add_project.php"><li <?php if($last=='add_project.php'){?> class="li-activity"<?php } ?>><font color="#FFFFFF"><translate>Project</translate></font></li></a>
<a href="add_activity.php"><li <?php if($last=='add_activity.php'){?> class="li-activity"<?php } ?>><font color="#FFFFFF"><translate>Activity Plan</translate></font></li></a>
<a href="activities_done.php"><li <?php if($last=='activities_done.php'){?> class="li-activity"<?php } ?>><font color="#FFFFFF"><translate>Activities Done</translate></font></li></a>
<a href="activities_report.php"><li <?php if($last=='activities_report.php'){?> class="li-activity"<?php } ?>><font color="#FFFFFF"><translate>Activities Completed</translate></font></li></a>
				
		
<?php }?>





				</ul>
				
				 <select class="nav_mob">
      <option selected="selected">SELECT MENU</option>
      <option>Activity Plan</option>
      <option>Activities Done</option>
      <option>Activities Completed</option>
      <option>Project</option>
       </select>
				
				

				</div>
				

				
				</div>