<?php
$post		= $_SESSION['post'];
$userid		= $_SESSION['userid'];
 ?>
<div id='cssmenu'>
<ul>
    <li><div><a href='home.php'><img src="img/home.png" alt="Home | <?php echo $MAIN_data['logo_alt'];?>" title="Home | <?php echo $MAIN_data['logo_title'];?>" 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>
            <?php if($_SESSION['post']=='Admin'){?> 
            <li><a href="home.php?page=state_edit"><span class="text">State Master</span></a></li>
            <li><a href="home.php?page=town_master"><span class="text">Project Master</span></a></li>
            <li><a href="home.php?page=distributor_master"><span class="text">Level Master</span></a></li>
            <li><a href="home.php?page=add_atten_st"><span class="text">Attendence Type</span></a></li>
			<?php }?>
       		<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>
   <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>
            <?php if($_SESSION['post']=='Admin'){?>  
            <li><a href="home.php?page=atten_upload"><span class="text">Attendence Upload</span></a></li>
            <!---<li><a href="home.php?page=atten_pending_upload"><span class="text">Attendence Excel Pending</span></a></li>-->
            <?php }?>
     </ul>
   </li>
   <?php /*
   <li><a href='#'>Calculate Salary</a>
       <ul>
   <?php if($_SESSION['post']=='Admin'){?>
            <li><a href="home.php?page=salary_mail_send"><span class="text">Salary Mail</span></a></li>
            <li><a href="home.php?page=email_list"><span class="text">Mail List</span></a></li> 
    <?php } ?>
           
            <li><a href="home.php?page=cal_salary"><span class="text">Calculate Salary</span></a></li>
       </ul>
   </li>  
    <?php if($_SESSION['post']=='Admin'){?>  
   <li><a href='#'>Invoice Master</a>
       <ul>
            <li><a href="home.php?page=rspl_invoice"><span class="text">RSPL Invoice</span></a></li>
            <li><a href="home.php?page=view_invoice"><span class="text">View Invoice</span></a></li>
            <li><a href="home.php?page=isr_details"><span class="text">ISR Details</span></a></li>
            <li><a href="home.php?page=rspl_invoice_manual"><span class="text">Manual Invoice </span></a></li>
	   </ul>
   </li>
   <?php } ?>
   
   <?php if($_SESSION['post']=='Admin'){?>  
   <li><a href='#'>Ryka</a>
       <ul>
            <li><a href="home.php?page=product_master"><span class="text">Product Master</span></a></li>
            <li><a href="home.php?page=client_registration"><span class="text">Client Registration</span></a></li>
            <li><a href="home.php?page=purchase"><span class="text">Purchase Invoice</span></a></li>
            <li><a href="home.php?page=sale_invoice"><span class="text">Sale Invoice</span></a></li>            
	   </ul>
   </li>
   <?php } ?>
   */?>
   <li style="float:right;"><div><a href="home.php?page=logout"><img alt="Logout | <?php echo $MAIN_data['logo_alt'];?>" title="Logout | <?php echo $MAIN_data['logo_title'];?>"  src="img/logout.png" style="margin-top: 11px;"/></a></div></li>
   <li style="float:right;color:#fff;"><div><?php echo str_replace('&',', ',$_SESSION['post']);?></li>

</ul>
</div>