<?php
$post		= $_SESSION['post'];
$userid		= $_SESSION['userid'];
 ?>
<div id='cssmenu'>
<ul>
    <li><div><a href='home.php'><img src="img/home.png" style="margin-top: 11px;"/></a></div></li>
    <li><a href='#'>Profile</a>
    <ul>
		<li><a href="home.php?page=my_profile"><span class="icon-cog"></span><span class="text">My Profile</span> </a></li>
        <?php if($_SESSION['post']=='Admin'){?>  
        <li><a href="home.php?page=home_setting"><span class="icon-cog"></span><span class="text">Home Setting</span> </a></li>
        <?php } ?>
    </ul>
    </li>
   <li><a href='#'>Master</a>
       <ul> 
            <li><a href="home.php?page=state_list"><span class="text">State List</span></a></li>
            <li><a href="home.php?page=town_master"><span class="text">Town Master</span></a></li> 
       		  <li><a href="home.php?page=add_page"><span class="text">Add Employee</span></a></li>
            <li><a href="home.php?page=page"><span class="text">Employee List</span></a></li>
            <li><a href="home.php?page=excel_page"><span class="text">Employee Excel Download</span></a></li>            
       </ul>   
   </li>
   <?php if($_SESSION['post']=='Admin'){?>
   <li><a href='#'>Mail & Attendence</a>
       <ul>
       		
            <li><a href="home.php?page=add_atten_st"><span class="text">Attendence Status</span></a></li>
            <li><a href="home.php?page=mail_send"><span class="text">Send Mail</span></a></li>
            <li><a href="home.php?page=atten_mail_send"><span class="text">Attendence Mail</span></a></li>
            <li><a href="home.php?page=uan_mail_send"><span class="text">UAN Mail</span></a></li>
            <li><a href="home.php?page=cal_salary"><span class="text">Calculate Salary</span></a></li>
       </ul>
   </li>    
   <?php } ?>
   <li><a href='#'>Attendence Master</a>
       <ul>
       		
            <li><a href="home.php?page=add_atten"><span class="text">Daily Attendence</span></a></li>
            <li><a href="home.php?page=add_old_atten"><span class="text">Old Attendence</span></a></li>
            <li><a href="home.php?page=atten_rpt"><span class="text">Attendence Report</span></a></li>
	   </ul>
   </li>
   	<li style="float:right;"><div><a href="home.php?page=logout"><img src="img/logout.png" style="margin-top: 11px;"/></a></div></li>
   <li style="float:right;color:#fff;"><div><?php echo str_replace('&',', ',$_SESSION['post']);?></div>
   </li>
</ul>
</div>