<?php 
	$var=explode('?',$_SERVER['REQUEST_URI']);
		$pages=preg_replace('/.*\/([^\/])/','$1',$var[0]);
		unset($var);
		
?>

<div class="top_port top_port1">
  
    <a href="home.php"><img src="images/logo.png" style="float:left; padding:6px 0px 0px 23px;"></a> <p class="desc" style="padding-top:4px;font-weight:bold;"><span style="color:#79bb41; text-transform:uppercase; font-size:15px; font-weight:bold;"><span class="desc" style="padding-top:4px;font-weight:bold;"><!--<img src="images/mukkadan1.png" style="width:162px ; height:14px;" />--></span></span><span >OIL FILL</p>
    
    
  <div class="userArea" style="margin-right:90px;">
   <p>Welcome <?=$_SESSION['ses_name'];?></p>&nbsp;&nbsp;<a href="logout.php"><img src="images/logout.gif"></a> 
  </div>   

  
  
 </div>
 
<?php if(isset($_REQUEST['msg'])){ ?>
  <div class="warningMessage">
     <p> <?=$_REQUEST['msg']?> </p>
    </div>
    <?php } ?>

 <?php 
 	//$headpg = $_REQUEST['pg'];
	//echo $_SESSION['typename'];
	//echo $_SESSION['ses_name'];
 ?>
 <div class="tabHead" style="  z-index:111;  margin-top:56px; " >
      <ul>
        <?php
			if($_SESSION['typename'] == 'SuperAdmin')
			{
			if(($pages == 'vechicle-list.php') || ($pages == 'add-client.php') || ($pages == 'add-reseller.php') || ($pages == 'client-list.php')|| ($pages == 'reseller-list.php') || ($pages == 'vechicle-details-entry.php') || ($pages == 'view-town.php') || ($pages == 'add-town.php') || ($pages == 'route_list.php') || ($pages == 'add-route.php') || ($pages == 'exportdealer-file.php') ||  ($pages == 'download-master.php') || ($pages == 'product_list.php')  || ($pages == 'add-product.php') || ($pages == 'rate-list.php') || ($pages == 'add-rate.php') || ($pages == 'add-user.php') || ($pages == 'user_list.php') || ($pages == 'exportown-file.php') || ($pages == 'changepassword.php') ||  ($pages == 'add-kopra-oil.php') || ($pages == 'add-kopra-Pinnakku.php') || ($pages == 'add-kopra-sack.php') || ($pages == 'add-tin-kg.php') || ($pages == 'add-sku.php') || ($pages == 'add-brand.php') || ($pages == 'add-agmark.php') || ($pages == 'add-filmroll.php') || ($pages == 'open_balance_purchase.php') || ($pages == 'open_balance_sales.php') || ($pages == 'add-deliveryarea.php') || ($pages == 'list-deliveryarea.php') || ($pages == 'exportdelivery-file.php') || ($pages == 'add-haulting.php') || ($pages == 'add-bank.php') || ($pages == 'bank-list.php') || ($pages == 'general_cases.php') || ($pages == 'village_inspection.php')|| ($pages == 'sales_tax_inspection.php') || ($pages == 'electricity_bill.php') || ($pages == 'vehicle_cases.php') || ($pages == 'lic_premium.php') || ($pages == 'food_safety.php') || ($pages == 'ksfe.php') || ($pages == 'vehicle_loan.php') || ($pages == 'add-driver.php') || ($pages == 'agmark_license.php') || ($pages == 'sale-tax-register.php') || ($pages == 'add-jar.php') || ($pages == 'add-palmoil.php') || ($pages == 'add-coconut.php') || ($pages == 'add-passing-agent.php') || ($pages == 'add-lab-agent.php') || ($pages == 'add-barrel.php') || ($pages == 'add-other-client.php') || ($pages == 'other-client-list.php') || ($pages == 'add-other-reseller.php') || ($pages == 'other-reseller-list.php') || ($pages == 'medical_insurance.php') || ($pages == 'lic_loan.php') || ($pages == 'generator.php') || ($pages == 'add_batta_rent.php') || ($pages == 'profit_loss_adjustment.php') || ($pages == 'upload_file_list.php') || ($pages == 'add_upload_file.php') || ($pages == 'edit_upload_file.php'))
			{
		 ?>
               
      	<li <?php if(($pages == 'add-client.php') || ($pages == 'client-list.php') || ($pages == 'add-other-client.php') || ($pages == 'other-client-list.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="add-client.php">Client</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-client.php'){ ?> class="tabUp" <?php } ?>><a href="add-client.php">Add Client</a></li>
        <li <?php if($pages == 'client-list.php'){ ?> class="tabUp" <?php } ?>><a href="client-list.php">Client List</a></li>
        <li <?php if($pages == 'add-other-client.php'){ ?> class="tabUp" <?php } ?>><a href="add-other-client.php">Add Other Client</a></li>
        <li <?php if($pages == 'other-client-list.php'){ ?> class="tabUp" <?php } ?>><a href="other-client-list.php">Other Client List</a></li></ul>
        
        <li <?php if(($pages == 'add-reseller.php') || ($pages == 'reseller-list.php') || ($pages == 'add-other-reseller.php') || ($pages == 'other-reseller-list.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="add-reseller.php">Vendor</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-reseller.php'){ ?> class="tabUp" <?php } ?>><a href="add-reseller.php">Add Vendor</a></li>
        <li <?php if($pages == 'reseller-list.php'){ ?> class="tabUp" <?php } ?>><a href="reseller-list.php">Vendor List</a></li>
        <li <?php if($pages == 'add-other-reseller.php'){ ?> class="tabUp" <?php } ?>><a href="add-other-reseller.php">Add  Other Vendor</a></li>
        <li <?php if($pages == 'other-reseller-list.php'){ ?> class="tabUp" <?php } ?>><a href="other-reseller-list.php">Other Vendor List</a></li>
        </ul>
        
		<li <?php if(($pages == 'vechicle-list.php') || ($pages == 'vechicle-details-entry.php') || ($pages == 'vechicle-notification-15-days.php') || ($pages == 'vechicle-notification-5-days.php')){ ?> class="tabUp" <?php } ?>><div class="tl"></div><div class="tc"><a href="vechicle-list.php">Vehicle</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'vechicle-details-entry.php'){ ?> class="tabUp" <?php } ?>><a href="vechicle-details-entry.php">Add Vehicle</a></li>
        <li <?php if($pages == 'vechicle-list.php'){ ?> class="tabUp" <?php } ?>><a href="vechicle-list.php">View Vehicle</a></li>
        </ul>
        </li> 
        
       
        
        <li <?php if(($pages == 'product_list.php') || ($pages == 'add-product.php')){ ?> class="tabUp" <?php } ?>>
		<div class="tl"></div><div class="tc"><a href="product_list.php">Product</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-product.php'){ ?> class="tabUp" <?php } ?>><a href="add-product.php">Add Product</a></li>
        <li <?php if($pages == 'product_list.php'){ ?> class="tabUp" <?php } ?>><a href="product_list.php">View Product</a></li></ul>
        
             
        <li <?php if(($pages == 'add-user.php') || ($pages == 'user_list.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="add-user.php">Manage User</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-user.php'){ ?> class="tabUp" <?php } ?>><a href="add-user.php">Add User</a></li>
        <li <?php if($pages == 'user_list.php'){ ?> class="tabUp" <?php } ?>><a href="user_list.php">View User</a></li></ul>
        
       
        
        <li <?php if(($pages == 'add-kopra-oil.php') || ($pages == 'add-kopra-Pinnakku.php') || ($pages == 'add-kopra-sack.php') ){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="add-kopra-oil.php">Kopra</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-kopra-oil.php'){ ?> class="tabUp" <?php } ?>><a href="add-kopra-oil.php">Conversion% to Oil</a></li>
        <li <?php if($pages == 'add-kopra-Pinnakku.php'){ ?> class="tabUp" <?php } ?>><a href="add-kopra-Pinnakku.php">Conversion% to Pinnakku</a></li>
        <li <?php if($pages == 'add-kopra-sack.php'){ ?> class="tabUp" <?php } ?>><a href="add-kopra-sack.php">Sack</a></li>
        </ul>
		
		<li <?php if(($pages == 'add-sku.php') || ($pages == 'profit_loss_adjustment.php') || ($pages == 'add-filmroll.php') || ($pages == 'add-brand.php') || ($pages == 'add-agmark.php') || ($pages == 'add-haulting.php')  || ($pages == 'add-driver.php') || ($pages == 'add-tin-kg.php') || ($pages == 'add-jar.php') || ($pages == 'add-palmoil.php') || ($pages == 'add-coconut.php') || ($pages == 'add-passing-agent.php') || ($pages == 'add-lab-agent.php') || ($pages == 'add-barrel.php') || ($pages == 'add_batta_rent.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="add-sku.php">General</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-sku.php'){ ?> class="tabUp" <?php } ?>><a href="add-sku.php">Sku</a></li>
        <li <?php if($pages == 'add-filmroll.php'){ ?> class="tabUp" <?php } ?>><a href="add-filmroll.php">Filmroll</a></li>
        <li <?php if($pages == 'add-brand.php'){ ?> class="tabUp" <?php } ?>><a href="add-brand.php">Brand</a></li>
        <li <?php if($pages == 'add-agmark.php'){ ?> class="tabUp" <?php } ?>><a href="add-agmark.php">Agmark</a></li>
		<li <?php if($pages == 'add-haulting.php'){ ?> class="tabUp" <?php } ?>><a href="add-haulting.php">Haulting</a></li>
		<li <?php if($pages == 'add-driver.php'){ ?> class="tabUp" <?php } ?>><a href="add-driver.php">Driver</a></li>
		<li <?php if($pages == 'add-tin-kg.php'){ ?> class="tabUp" <?php } ?>><a href="add-tin-kg.php">Tin</a></li>
		<li <?php if($pages == 'add-jar.php'){ ?> class="tabUp" <?php } ?>><a href="add-jar.php">Jar</a></li>
		<li <?php if($pages == 'add-barrel.php'){ ?> class="tabUp" <?php } ?>><a href="add-barrel.php">Barrel</a></li>
		<li <?php if($pages == 'add-palmoil.php'){ ?> class="tabUp" <?php } ?>><a href="add-palmoil.php">PalmOil</a></li>
		<li <?php if($pages == 'add-coconut.php'){ ?> class="tabUp" <?php } ?>><a href="add-coconut.php">Coconut</a></li>
		<li <?php if($pages == 'add-passing-agent.php'){ ?> class="tabUp" <?php } ?>><a href="add-passing-agent.php">Passing Agent</a></li>
		<li <?php if($pages == 'add-lab-agent.php'){ ?> class="tabUp" <?php } ?>><a href="add-lab-agent.php">Lab Name</a></li>
		<li <?php if($pages == 'add_batta_rent.php'){ ?> class="tabUp" <?php } ?>><a href="add_batta_rent.php">Batta Rent Amount</a></li>
		<li <?php if($pages == 'profit_loss_adjustment.php'){ ?> class="tabUp" <?php } ?>><a href="profit_loss_adjustment.php">Profit and Loss Adjustment</a></li>
		</ul>
		
        <li <?php if(($pages == 'upload_file_list.php') || ($pages == 'add_upload_file.php')){ ?> class="tabUp" <?php } ?>>
		<div class="tl"></div><div class="tc"><a href="upload_file_list.php">Upload File</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add_upload_file.php'){ ?> class="tabUp" <?php } ?>><a href="add_upload_file.php">Add Files</a></li>
        <li <?php if($pages == 'upload_file_list.php'){ ?> class="tabUp" <?php } ?>><a href="upload_file_list.php">View Files</a></li></ul>      
        
        
        <li <?php if(($pages == 'open_balance_purchase.php') || ($pages == 'open_balance_sales.php')){ ?> class="tabUp" <?php } ?>>
		<div class="tl"></div><div class="tc"><a href="open_balance_purchase.php">Opening Balance</a></div><div class="tr"></div>
       <ul class="tabDrop"><li <?php if($pages == 'open_balance_purchase.php'){ ?> class="tabUp" <?php } ?>><a href="open_balance_purchase.php">Purchase Opening Balanace</a></li>
        <li <?php if($pages == 'open_balance_sales.php'){ ?> class="tabUp" <?php } ?>><a href="open_balance_sales.php">Sales Opening Balanace</a></li></ul>
		
		<li <?php if(($pages == 'add-deliveryarea.php') || ($pages == 'list-deliveryarea.php') || ($pages == 'exportdelivery-file.php')){ ?> class="tabUp" <?php } ?>>
		<div class="tl"></div><div class="tc"><a href="add-deliveryarea.php">Delivery Area</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-deliveryarea.php'){ ?> class="tabUp" <?php } ?>><a href="add-deliveryarea.php">Add Delivery Area</a></li>
        <li <?php if($pages == 'list-deliveryarea.php'){ ?> class="tabUp" <?php } ?>><a href="list-deliveryarea.php">List Delivery Area</a></li>
		<li <?php if($pages == 'exportdelivery-file.php'){ ?> class="tabUp" <?php } ?>><a href="exportdelivery-file.php">Export Delivery Area</a></li></ul>
		
		
		<li <?php if(($pages == 'add-bank.php') || ($pages == 'bank-list.php')){ ?> class="tabUp" <?php } ?>>
		<div class="tl"></div><div class="tc"><a href="bank-list.php">Bank</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-bank.php'){ ?> class="tabUp" <?php } ?>><a href="add-bank.php">Add Bank</a></li>
        <li <?php if($pages == 'bank-list.php'){ ?> class="tabUp" <?php } ?>><a href="bank-list.php">Bank List</a></li></ul>
		
		<li <?php if(($pages == 'vehicle_cases.php') || ($pages == 'general_cases.php') || ($pages == 'village_inspection.php')|| ($pages == 'sales_tax_inspection.php') || ($pages == 'electricity_bill.php') || ($pages == 'lic_premium.php') || ($pages == 'food_safety.php') || ($pages == 'ksfe.php') || ($pages == 'vehicle_loan.php') || ($pages == 'agmark_license.php') || ($pages == 'sale-tax-register.php') || ($pages == 'medical_insurance.php') || ($pages == 'lic_loan.php') || ($pages == 'generator.php')){ ?> class="tabUp" <?php } ?>>
		<div class="tl"></div><div class="tc"><a href="general_cases.php">Cases & Inspection</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'general_cases.php'){ ?> class="tabUp" <?php } ?>><a href="general_cases.php">General Cases</a></li>
		<li <?php if($pages == 'vehicle_cases.php'){ ?> class="tabUp" <?php } ?>><a href="vehicle_cases.php">Vehicle Cases</a></li>
        <li <?php if($pages == 'village_inspection.php'){ ?> class="tabUp" <?php } ?>><a href="village_inspection.php">Village Inspection</a></li>
		<li <?php if($pages == 'sales_tax_inspection.php'){ ?> class="tabUp" <?php } ?>><a href="sales_tax_inspection.php">Sales Tax Inspection</a></li>
		<li <?php if($pages == 'electricity_bill.php'){ ?> class="tabUp" <?php } ?>><a href="electricity_bill.php">Electricity Bill</a></li>
		<li <?php if($pages == 'lic_premium.php'){ ?> class="tabUp" <?php } ?>><a href="lic_premium.php">Lic Premium</a></li>
		<li <?php if($pages == 'food_safety.php'){ ?> class="tabUp" <?php } ?>><a href="food_safety.php">Food & safety</a></li>
		<li <?php if($pages == 'ksfe.php'){ ?> class="tabUp" <?php } ?>><a href="ksfe.php">KSFE</a></li>
		<li <?php if($pages == 'vehicle_loan.php'){ ?> class="tabUp" <?php } ?>><a href="vehicle_loan.php">Vehicle Loan</a></li>
		<li <?php if($pages == 'agmark_license.php'){ ?> class="tabUp" <?php } ?>><a href="agmark_license.php">Agmark License</a></li>
		<li <?php if($pages == 'sale-tax-register.php'){ ?> class="tabUp" <?php } ?>><a href="sale-tax-register.php">Sales Tax</a></li>
		<li <?php if($pages == 'medical_insurance.php'){ ?> class="tabUp" <?php } ?>><a href="medical_insurance.php">Medical Insurance</a></li>
		<li <?php if($pages == 'lic_loan.php'){ ?> class="tabUp" <?php } ?>><a href="lic_loan.php">LIC Loan</a></li>
		<li <?php if($pages == 'generator.php'){ ?> class="tabUp" <?php } ?>><a href="generator.php">Generator Service</a></li></ul>
        <?php }
			
					
			if(($pages == 'add-department.php') || ($pages == 'department-list.php') || ($pages == 'add-designation.php') || ($pages == 'designation-list.php') ||($pages == 'branch-list.php') || ($pages == 'add-branch.php') || ($pages == 'add-employee.php') || ($pages == 'employee-list.php') || ($pages == 'add-timesheet.php') || ($pages == 'timesheet_employee-list.php') || ($pages == 'apply_leave.php') || ($pages == 'applied_leave_list.php') || ($pages == 'leave_types.php') || ($pages == 'add-leave-types.php') || ($pages == 'manage_deduct_earning_list.php') || ($pages == 'add_deduction_earning.php') || ($pages == 'manage_salary_list.php') || ($pages == 'approve-leaves.php') || ($pages == 'timesheet-approval.php') || ($pages == 'personal-timesheet-approval.php') || ($pages == 'add-holiday.php') || ($pages == 'holiday_list.php'))
			{
		 ?>
         <li <?php if(($pages == 'branch-list.php') || ($pages == 'add-branch.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="branch-list.php">Branch</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-branch.php'){ ?> class="tabUp" <?php } ?>><a href="add-branch.php">Add Branch</a></li>
        <li <?php if($pages == 'branch-list.php'){ ?> class="tabUp" <?php } ?>><a href="branch-list.php">Branch List</a></li></ul>       
            
      	<li <?php if(($pages == 'department-list.php') || ($pages == 'add-department.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="department-list.php">Department</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-department.php'){ ?> class="tabUp" <?php } ?>><a href="add-department.php">Add Department</a></li>
        <li <?php if($pages == 'department-list.php'){ ?> class="tabUp" <?php } ?>><a href="department-list.php">Department List</a></li></ul>        
       
        <li <?php if(($pages == 'add-designation.php') || ($pages == 'designation-list.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="add-designation.php">Designation</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-designation.php'){ ?> class="tabUp" <?php } ?>><a href="add-designation.php">Add Designation</a></li>
        <li <?php if($pages == 'designation-list.php'){ ?> class="tabUp" <?php } ?>><a href="designation-list.php">Designation List</a></li></ul>
        
        <li <?php if(($pages == 'add-employee.php') || ($pages == 'employee-list.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="add-employee.php">Employee</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-employee.php'){ ?> class="tabUp" <?php } ?>><a href="add-employee.php">Add Employee</a></li>
        <li <?php if($pages == 'employee-list.php'){ ?> class="tabUp" <?php } ?>><a href="employee-list.php">Employee List</a></li></ul>
        
        <li <?php if(($pages == 'add-timesheet.php') || ($pages == 'timesheet_employee-list.php') || ($pages == 'timesheet-approval.php') || ($pages == 'personal-timesheet-approval.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="add-timesheet.php">Timesheet</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-timesheet.php'){ ?> class="tabUp" <?php } ?>><a href="add-timesheet.php">Add Timesheet</a></li>
        <li <?php if($pages == 'timesheet_employee-list.php'){ ?> class="tabUp" <?php } ?>><a href="timesheet_employee-list.php">Timesheet List</a></li>
		<li <?php if($pages == 'timesheet-approval.php'){ ?> class="tabUp" <?php } ?>><a href="timesheet-approval.php">Timesheet Approval</a></li>
		<li <?php if($pages == 'personal-timesheet-approval.php'){ ?> class="tabUp" <?php } ?>><a href="personal-timesheet-approval.php">Personal Timesheet</a></li>
       </ul>
       
       <li <?php if(($pages == 'apply_leave.php') || ($pages == 'applied_leave_list.php') || ($pages == 'leave_types.php') || ($pages == 'add-leave-types.php') || ($pages == 'approve-leaves.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="leave_types.php">Leave</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'apply_leave.php'){ ?> class="tabUp" <?php } ?>><a href="apply_leave.php">Apply Leave</a></li>
        <li <?php if($pages == 'applied_leave_list.php'){ ?> class="tabUp" <?php } ?>><a href="applied_leave_list.php">Apply Leave List</a></li>
		 <li <?php if($pages == 'approve-leaves.php'){ ?> class="tabUp" <?php } ?>><a href="approve-leaves.php">Approve Leaves</a></li>
        <li <?php if($pages == 'leave_types.php'){ ?> class="tabUp" <?php } ?>><a href="leave_types.php">Leave Type</a></li>
      </ul>
	   
	   <li <?php if(($pages == 'manage_salary_list.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="manage_salary_list.php">Payroll</a></div><div class="tr"></div>
        
		
		<li <?php if(($pages == 'add-holiday.php') || ($pages == 'holiday_list.php')){ ?> class="tabUp" <?php } ?>>   
		 <div class="tl"></div><div class="tc"><a href="add-holiday.php">Holiday</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-holiday.php'){ ?> class="tabUp" <?php } ?>><a href="add-holiday.php">Add Holiday</a></li>
        <li <?php if($pages == 'holiday_list.php'){ ?> class="tabUp" <?php } ?>><a href="holiday_list.php">List Holiday</a></li>
       </ul>     
       
		
		<li <?php if(($pages == 'manage_deduct_earning_list.php') || ($pages == 'add_deduction_earning.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="add_deduction_earning.php">Settings</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add_deduction_earning.php'){ ?> class="tabUp" <?php } ?>><a href="add_deduction_earning.php">Add Manage Deduction & Earning</a></li>
        <li <?php if($pages == 'manage_deduct_earning_list.php'){ ?> class="tabUp" <?php } ?>><a href="manage_deduct_earning_list.php">Manage Deduction & Earning</a></li>
       </ul>
               
               
        <?php }			
			?>
                  
		   <?php
			if(($pages == 'add-purchase.php') || ($pages == 'purchase_list.php') || ($pages == 'add-purchase-kopra.php')  || ($pages == 'kopra_purchase_list.php')  || ($pages == 'view_purchase_list.php') || ($pages == 'purchase_dashboard.php') || ($pages == 'add-tin-purchase.php') || ($pages == 'tin_purchase_list.php') || ($pages == 'add-jar-purchase.php')  || ($pages == 'jar_purchase_list.php') || ($pages == 'lab-report-list.php')  || ($pages == 'passing-agent-report-list.php') || ($pages == 'add-lab-test.php') || ($pages == 'lab_test_list.php') || ($pages == 'purchase_booking.php') || ($pages == 'purchase_booking_list.php'))
			{
		 	?> 
        <li <?php if(($pages == 'add-purchase.php') || ($pages == 'purchase_list.php') || ($pages == 'view_purchase_list.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="add-purchase.php">Oil Purchase</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-purchase.php'){ ?> class="tabUp" <?php } ?>><a href="add-purchase.php">Add Oil Purchase</a></li>
        <li <?php if($pages == 'purchase_list.php'){ ?> class="tabUp" <?php } ?>><a href="purchase_list.php">Oil Purchase List</a></li>
        <li <?php if($pages == 'view_purchase_list.php'){ ?> class="tabUp" <?php } ?>><a href="view_purchase_list.php">View Purchase List</a></li></ul>
		
		
		<li <?php if(($pages == 'add-purchase-kopra.php')  || ($pages == 'kopra_purchase_list.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="kopra_purchase_list.php">Kopra Purchase</a></div><div class="tr"></div>
        <ul class="tabDrop">
        <li <?php if($pages == 'add-purchase-kopra.php'){ ?> class="tabUp" <?php } ?>><a href="add-purchase-kopra.php">Add Kopra Purchase</a></li>
        <li <?php if($pages == 'kopra_purchase_list.php'){ ?> class="tabUp" <?php } ?>><a href="kopra_purchase_list.php">Kopra Purchase List</a></li>
        
       </ul>
	   
	   <li <?php if(($pages == 'add-tin-purchase.php')  || ($pages == 'tin_purchase_list.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="tin_purchase_list.php">Tin Purchase</a></div><div class="tr"></div>
        <ul class="tabDrop">
        <li <?php if($pages == 'add-tin-purchase.php'){ ?> class="tabUp" <?php } ?>><a href="add-tin-purchase.php">Add Tin Purchase</a></li>
        <li <?php if($pages == 'tin_purchase_list.php'){ ?> class="tabUp" <?php } ?>><a href="tin_purchase_list.php">Tin Purchase List</a></li>
       </ul>
	   
	   <li <?php if(($pages == 'add-jar-purchase.php')  || ($pages == 'jar_purchase_list.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="jar_purchase_list.php">Jar Purchase</a></div><div class="tr"></div>
        <ul class="tabDrop">
        <li <?php if($pages == 'add-jar-purchase.php'){ ?> class="tabUp" <?php } ?>><a href="add-jar-purchase.php">Add Jar Purchase</a></li>
        <li <?php if($pages == 'jar_purchase_list.php'){ ?> class="tabUp" <?php } ?>><a href="jar_purchase_list.php">Jar Purchase List</a></li>
       </ul>
	 
	   
	   <li <?php if(($pages == 'purchase_dashboard.php')){ ?> class="tabUp" <?php } ?>>        
			<div class="tl"></div><div class="tc"><a href="purchase_dashboard.php">Purchase Dashboard</a></div><div class="tr"></div>
			
	   <li <?php if(($pages == 'lab-report-list.php')  || ($pages == 'passing-agent-report-list.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="lab-report-list.php">Purchase Report</a></div><div class="tr"></div>
        <ul class="tabDrop">
        <li <?php if($pages == 'lab-report-list.php'){ ?> class="tabUp" <?php } ?>><a href="lab-report-list.php">Lab Charges Report</a></li>
        <li <?php if($pages == 'passing-agent-report-list.php'){ ?> class="tabUp" <?php } ?>><a href="passing-agent-report-list.php">Passing Charge Report</a></li>
       </ul>
	   
	   <li <?php if(($pages == 'add-lab-test.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="add-lab-test.php">Add Lab Testing</a></div><div class="tr"></div>
        <ul class="tabDrop">
        <li <?php if($pages == 'add-lab-test.php'){ ?> class="tabUp" <?php } ?>><a href="add-lab-test.php">Add Lab Testing</a></li>
         <li <?php if($pages == 'lab_test_list.php'){ ?> class="tabUp" <?php } ?>><a href="lab_test_list.php">Lab Testing List</a></li>
       </ul>
	   
	   <li <?php if(($pages == 'purchase_booking.php') || ($pages == 'purchase_booking_list.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="add-lab-test.php">Add Purchase Booking</a></div><div class="tr"></div>
        <ul class="tabDrop">
        <li <?php if($pages == 'purchase_booking.php'){ ?> class="tabUp" <?php } ?>><a href="purchase_booking.php">Add Purchase Booking</a></li>
         <li <?php if($pages == 'purchase_booking_list.php'){ ?> class="tabUp" <?php } ?>><a href="purchase_booking_list.php">Purchase Booking List</a></li>
       </ul>
		     <?php 
			 }
			?>  
		  
		<?php
		if(($pages == 'warehouse_stock.php') || ($pages == 'pinnakku_stock.php') || ($pages == 'sack_stock.php') || ($pages == 'sku_stock.php') || ($pages == 'packet-stock.php'))
		{
		?> 
           	<li <?php if(($pages == 'warehouse_stock.php')){ ?> class="tabUp" <?php } ?>>        
			<div class="tl"></div><div class="tc"><a href="warehouse_stock.php">Warehouse Stock</a></div><div class="tr"></div>
			
			<li <?php if(($pages == 'sku_stock.php')){ ?> class="tabUp" <?php } ?>>        
			<div class="tl"></div><div class="tc"><a href="sku_stock.php">Sku Stock</a></div><div class="tr"></div>
			
			<li <?php if(($pages == 'pinnakku_stock.php')){ ?> class="tabUp" <?php } ?>>        
			<div class="tl"></div><div class="tc"><a href="pinnakku_stock.php">Pinnakku Stock</a></div><div class="tr"></div>
			
			<li <?php if(($pages == 'sack_stock.php')){ ?> class="tabUp" <?php } ?>>        
			<div class="tl"></div><div class="tc"><a href="#">Stationary Stock</a></div><div class="tr"></div>
			
			
			<ul class="tabDrop">
			
			<li <?php if($pages == '#'){ ?> class="tabUp" <?php } ?>><a href="#">Bill Book</a></li>
			<li <?php if($pages == 'sack_stock.php'){ ?> class="tabUp" <?php } ?>><a href="sack_stock.php">Sack Stock</a></li>
			<li <?php if($pages == 'packet-stock.php'){ ?> class="tabUp" <?php } ?>><a href="packet-stock.php">Film Roll</a></li>
			<li <?php if($pages == '#'){ ?> class="tabUp" <?php } ?>><a href="#">Insulation Tape</a></li>
			<li <?php if($pages == '#'){ ?> class="tabUp" <?php } ?>><a href="#">Jar Stock</a></li>
		   </ul>
        <?php 
		 }
		?> 
		
		<?php
		if(($pages == 'add-package.php') || ($pages == 'package-list.php') || ($pages == 'agmark_status.php'))
		{
		?> 
         <li <?php if($pages == 'add-package.php'){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="add-package.php">Add Package</a></div><div class="tr"></div>
		
		<li <?php if($pages == 'package-list.php'){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="package-list.php">Package List</a></div><div class="tr"></div><br />
		
		<li <?php if($pages == 'agmark_status.php'){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="agmark_status.php">Agmark No Status</a></div><div class="tr"></div><br />
		                 	
	   <?php 
		 }
		?>   
		
		<?php
		if(($pages == 'add-sales.php') || ($pages == 'sales-list.php') || ($pages == 'add-sales-return.php') || ($pages == 'sales-return-list.php') || ($pages == 'add-jar-sales.php') || ($pages == 'jar_sales_list.php') || ($pages == 'barrel_sales_list.php') || ($pages == 'add-barrel-sales.php') || ($pages == 'add-tin-sales.php') || ($pages == 'tin_sales_list.php') || ($pages == 'barrel_sales_list.php') || ($pages == 'tin_sales_list.php') || ($pages == 'jar_sales_list.php'))
		{
		?>          	
			<li <?php if(($pages == 'add-sales.php')){ ?> class="tabUp" <?php } ?>>        
			<div class="tl"></div><div class="tc"><a href="add-sales.php">Sales/Billing</a></div><div class="tr"></div>
			
			<li <?php if(($pages == 'sales-list.php')){ ?> class="tabUp" <?php } ?>>
        	<div class="tl"></div><div class="tc"><a href="sales-list.php">Sales List</a></div><div class="tr"></div>
			
			<li <?php if(($pages == 'add-sales-return.php')){ ?> class="tabUp" <?php } ?>>
        	<div class="tl"></div><div class="tc"><a href="add-sales-return.php">Sales Return</a></div><div class="tr"></div>
			
			<li <?php if(($pages == 'sales-return-list.php')){ ?> class="tabUp" <?php } ?>>
        	<div class="tl"></div><div class="tc"><a href="sales-return-list.php">Sales Return List</a></div><div class="tr"></div>
			
			<li <?php if(($pages == 'add-jar-sales.php') || ($pages == 'jar_sales_list.php')){ ?> class="tabUp" <?php } ?>>        
			<div class="tl"></div><div class="tc"><a href="add-jar-sales.php">Jar Sales</a></div><div class="tr"></div>
			<ul class="tabDrop">
			<li <?php if($pages == 'add-jar-sales.php'){ ?> class="tabUp" <?php } ?>><a href="add-jar-sales.php">Add Jar Sales</a></li>
			 <li <?php if($pages == 'jar_sales_list.php'){ ?> class="tabUp" <?php } ?>><a href="jar_sales_list.php">Jar Sales List</a></li>
		   </ul>
		   
		 
			
			<li <?php if(($pages == 'add-barrel-sales.php') || ($pages == 'barrel_sales_list.php')){ ?> class="tabUp" <?php } ?>>        
			<div class="tl"></div><div class="tc"><a href="add-barrel-sales.php">Barrel Sales</a></div><div class="tr"></div>
			<ul class="tabDrop">
			<li <?php if($pages == 'add-barrel-sales.php'){ ?> class="tabUp" <?php } ?>><a href="add-barrel-sales.php">Add Barrel Sales</a></li>
			 <li <?php if($pages == 'barrel_sales_list.php'){ ?> class="tabUp" <?php } ?>><a href="barrel_sales_list.php">Barrel Sales List</a></li>
		   </ul>
		   
		   <li <?php if(($pages == 'add-tin-sales.php') || ($pages == 'tin_sales_list.php')){ ?> class="tabUp" <?php } ?>>        
			<div class="tl"></div><div class="tc"><a href="add-tin-sales.php">Tin Sales</a></div><div class="tr"></div>
			<ul class="tabDrop">
			<li <?php if($pages == 'add-tin-sales.php'){ ?> class="tabUp" <?php } ?>><a href="add-tin-sales.php">Add Tin Sales</a></li>
			 <li <?php if($pages == 'tin_sales_list.php'){ ?> class="tabUp" <?php } ?>><a href="tin_sales_list.php">Tin Sales List</a></li>
		   </ul>
            	
	   <?php 
		 }
		?> 
		
		<?php
		if(($pages == 'add_tripsheet.php') || ($pages == 'tripsheet_pending_list.php') || ($pages == 'tripsheet_finish_list.php') || ($pages == 'driver_report_list.php'))
		{
		?> 
            	
		<li <?php if(($pages == 'add_tripsheet.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="add_tripsheet.php">Add Tripsheet</a></div><div class="tr"></div>
        		
		<li <?php if(($pages == 'tripsheet_pending_list.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="tripsheet_pending_list.php">Tripsheet Pending</a></div><div class="tr"></div>
        
        <li <?php if(($pages == 'tripsheet_finish_list.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="tripsheet_finish_list.php">Tripsheet Finished</a></div><div class="tr"></div>
		
		<li <?php if(($pages == 'driver_report_list.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="driver_report_list.php">Driver Report List</a></div><div class="tr"></div>
		    	
	   <?php 
		 }
		?>    
		
		<?php
		if(($pages == 'vechicle-notification-5-days.php') || ($pages == 'vechicle-notification-15-days.php') || ($pages == 'vechicle_milage_list.php') || ($pages == 'vechicle_milage_notification.php') || ($pages == 'vechicle_gearoil.php') || ($pages == 'vechicle_engineoil.php') || ($pages == 'vehicle_case_notification.php') || ($pages == 'general_case_notification.php') || ($pages == 'inspection_notification.php') || ($pages == 'electricity_notification.php') || ($pages == 'ksfe_notification.php') || ($pages == 'vehicleloan_notification.php') || ($pages == 'lic_notification.php') || ($pages == 'agmark_license_notification.php') || ($pages == 'sale_tax_notification.php') || ($pages == 'lic_loan_notification.php') || ($pages == 'medical_insur_notification.php') || ($pages == 'vechicle_service_notification.php')  || ($pages == 'generator_notification.php'))
		{
		?> 
           	
		<li <?php if(($pages == 'vechicle-notification-5-days.php') || ($pages == 'vechicle-notification-15-days.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="vechicle-notification-15-days.php">Vehicle Notification</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'vechicle-notification-15-days.php'){ ?> class="tabUp" <?php } ?>><a href="vechicle-notification-15-days.php">Notification 15 Days List</a></li>
        <li <?php if($pages == 'vechicle-notification-5-days.php'){ ?> class="tabUp" <?php } ?>><a href="vechicle-notification-5-days.php">Notification 5 Days List</a></li>
        </ul>
		
		<li <?php if(($pages == 'vechicle_milage_list.php') || ($pages == 'vechicle_milage_notification.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="vechicle_milage_list.php">Vehicle Milage Mgmt</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'vechicle_milage_list.php'){ ?> class="tabUp" <?php } ?>><a href="vechicle_milage_list.php">Vehicle Milage List</a></li>
        <li <?php if($pages == 'vechicle_milage_notification.php'){ ?> class="tabUp" <?php } ?>><a href="vechicle_milage_notification.php">Vehicle Milage Notification</a></li>
        </ul>
		
		<li <?php if(($pages == 'vechicle_gearoil.php') || ($pages == 'vechicle_engineoil.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="vechicle_gearoil.php">Vehicle Oil</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'vechicle_gearoil.php'){ ?> class="tabUp" <?php } ?>><a href="vechicle_gearoil.php">Vehicle Gear Oil</a></li>
        <li <?php if($pages == 'vechicle_engineoil.php'){ ?> class="tabUp" <?php } ?>><a href="vechicle_engineoil.php">Vehicle Engine Oil</a></li>
        </ul>
		
		<li <?php if(($pages == 'vechicle_service_notification.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="vechicle_service_notification.php">Vehicle Service</a></div><div class="tr"></div>
		
		<li <?php if(($pages == 'vehicle_case_notification.php') || ($pages == 'general_case_notification.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="vehicle_case_notification.php">Cases</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'vehicle_case_notification.php'){ ?> class="tabUp" <?php } ?>><a href="vehicle_case_notification.php">Vehicle Cases</a></li>
        <li <?php if($pages == 'general_case_notification.php'){ ?> class="tabUp" <?php } ?>><a href="general_case_notification.php">General Cases</a></li>
        </ul>
		
		<li <?php if(($pages == 'inspection_notification.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="inspection_notification.php">Inspection</a></div><div class="tr"></div>
		
		<li <?php if(($pages == 'vehicleloan_notification.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="vehicleloan_notification.php">Vehicle Loan</a></div><div class="tr"></div>       
		
		
		<li <?php if(($pages == 'agmark_license_notification.php') || ($pages == 'ksfe_notification.php') || ($pages == 'lic_notification.php') || ($pages == 'electricity_notification.php') || ($pages == 'inspection_notification.php') || ($pages == 'sale_tax_notification.php') || ($pages == 'lic_loan_notification.php') || ($pages == 'medical_insur_notification.php') || ($pages == 'generator_notification.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="electricity_notification.php">General</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'electricity_notification.php'){ ?> class="tabUp" <?php } ?>><a href="electricity_notification.php">Electricity Bill</a></li>
        <li <?php if($pages == 'lic_notification.php'){ ?> class="tabUp" <?php } ?>><a href="lic_notification.php">Lic Premium</a></li>
		<li <?php if($pages == 'ksfe_notification.php'){ ?> class="tabUp" <?php } ?>><a href="ksfe_notification.php">KSFE</a></li>
		<li <?php if($pages == 'agmark_license_notification.php'){ ?> class="tabUp" <?php } ?>><a href="agmark_license_notification.php">Agmark License</a></li>
		<li <?php if($pages == 'sale_tax_notification.php'){ ?> class="tabUp" <?php } ?>><a href="sale_tax_notification.php">Sales Tax</a></li>
		<li <?php if($pages == 'lic_loan_notification.php'){ ?> class="tabUp" <?php } ?>><a href="lic_loan_notification.php">Lic Loan</a></li>
		<li <?php if($pages == 'medical_insur_notification.php'){ ?> class="tabUp" <?php } ?>><a href="medical_insur_notification.php">Medical Insurance</a></li>
		<li <?php if($pages == 'generator_notification.php'){ ?> class="tabUp" <?php } ?>><a href="generator_notification.php">Generator Notification</a></li>
		
		</ul>  	
	   <?php 
		 }
		?>    
            
		<?php
		if(($pages == 'account-groups.php') || ($pages == 'account-ledger.php') || ($pages == 'reciept-form.php') || ($pages == 'reciept-list.php') || ($pages == 'voucher-form.php') || ($pages == 'voucher-list.php') || ($pages == 'cash-book.php') || ($pages == 'bank-book.php') || ($pages == 'journal-form.php') || ($pages == 'journal-list.php') || ($pages == 'accounts-payable.php') || ($pages == 'accounts-receivable.php') || ($pages == 'driver_advance_list.php') || ($pages == 'add-salary-advance.php') || ($pages == 'salary_advance_list.php') || ($pages == 'day-book.php') || ($pages == 'add-driver-advance.php') || ($pages == 'contra-form.php') || ($pages == 'contra-list.php') || ($pages == 'account-ledger-new.php') || ($pages == 'day-book.php') || ($pages == 'trial-balance.php') ||  ($pages == 'profit_loss_account.php'))
		{
		?> 
            	<li <?php if($pages == 'account-groups.php'){ ?> class="tabUp" <?php } ?>><div class="tl"></div><div class="tc"><a href="account-groups.php">Account Groups</a></div><div class="tr"></div></li>
				
				<?php /*?><li <?php if($pages == 'account-ledger.php'){ ?> class="tabUp" <?php } ?>><div class="tl"></div><div class="tc"><a href="account-ledger.php">Ledger Mgmt</a></div><div class="tr"></div></li><?php */?>
				
		<li <?php if(($pages == 'account-ledger.php') || ($pages == 'account-ledger-new.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="account-ledger.php">Ledger Mgmt</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'account-ledger.php'){ ?> class="tabUp" <?php } ?>><a href="account-ledger.php">Ledger</a></li>
        <li <?php if($pages == 'account-ledger-new.php'){ ?> class="tabUp" <?php } ?>><a href="account-ledger-new.php">Ledger New</a></li>
        </ul>		
				
				
		<li <?php if(($pages == 'reciept-form.php') || ($pages == 'reciept-list.php') || ($pages == 'reciept-list.php') ){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="reciept-form.php">Receipt</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'reciept-form.php'){ ?> class="tabUp" <?php } ?>><a href="reciept-form.php">Add Receipt</a></li>
        <li <?php if($pages == 'reciept-list.php'){ ?> class="tabUp" <?php } ?>><a href="reciept-list.php">Receipt List</a></li>
        </ul>
		
			<li <?php if(($pages == 'voucher-form.php') || ($pages == 'voucher-list.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="voucher-form.php">Voucher</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'voucher-form.php'){ ?> class="tabUp" <?php } ?>><a href="voucher-form.php">Add Voucher</a></li>
        <li <?php if($pages == 'voucher-list.php'){ ?> class="tabUp" <?php } ?>><a href="voucher-list.php">Voucher List</a></li>
        </ul>
				
		<li <?php if(($pages == 'driver_advance_list.php') || ($pages == 'add-salary-advance.php') || ($pages == 'salary_advance_list.php') || ($pages == 'add-driver-advance.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="#">Advances</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-salary-advance.php'){ ?> class="tabUp" <?php } ?>><a href="add-salary-advance.php">Add Salary Advances</a></li>
		<li <?php if($pages == 'salary_advance_list.php'){ ?> class="tabUp" <?php } ?>><a href="salary_advance_list.php">Salary Advances</a></li>
		<li <?php if($pages == 'add-driver-advance.php'){ ?> class="tabUp" <?php } ?>><a href="add-driver-advance.php">Add Driver Advance</a></li>		
        <li <?php if($pages == 'driver_advance_list.php'){ ?> class="tabUp" <?php } ?>><a href="driver_advance_list.php">Driver Advance</a></li>
        </ul>
		
		<li <?php if($pages == 'accounts-payable.php'){ ?> class="tabUp" <?php } ?>><div class="tl"></div><div class="tc"><a href="accounts-payable.php">A/cs Payable</a></div><div class="tr"></div></li>
		<li <?php if($pages == 'accounts-receivable.php'){ ?> class="tabUp" <?php } ?>><div class="tl"></div><div class="tc"><a href="accounts-receivable.php">A/cs Receivable
		</a></div><div class="tr"></div></li>
		<li <?php if($pages == 'cash-book.php'){ ?> class="tabUp" <?php } ?>><div class="tl"></div><div class="tc"><a href="cash-book.php">Cash Book</a></div><div class="tr"></div></li>
		
		<li <?php if($pages == 'bank-book.php'){ ?> class="tabUp" <?php } ?>><div class="tl"></div><div class="tc"><a href="bank-book.php">Bank Book</a></div><div class="tr"></div></li>
		
		<li <?php if(($pages == 'journal-form.php') || ($pages == 'journal-list.php') || ($pages == 'contra-form.php') || ($pages == 'contra-list.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="journal-form.php">Journal</a></div><div class="tr"></div>
        <ul class="tabDrop">
		<li <?php if($pages == 'journal-form.php'){ ?> class="tabUp" <?php } ?>><a href="journal-form.php">Journal Form</a></li>
        <li <?php if($pages == 'journal-list.php'){ ?> class="tabUp" <?php } ?>><a href="journal-list.php">Journal List</a></li>
		<li <?php if($pages == 'contra-form.php'){ ?> class="tabUp" <?php } ?>><a href="contra-form.php">Contra Form</a></li>
        <li <?php if($pages == 'contra-list.php'){ ?> class="tabUp" <?php } ?>><a href="contra-list.php">Contra List</a></li>
        </ul>
		
		<li <?php if($pages == 'profit_loss_account.php'){ ?> class="tabUp" <?php } ?>><div class="tl"></div><div class="tc"><a href="profit_loss_account.php">P&L A/cs  </a></div><div class="tr"></div></li>
		
		<li <?php if(($pages == 'day-book.php') || ($pages == 'trial-balance.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="journal-form.php">Journal</a></div><div class="tr"></div>
        <ul class="tabDrop">
		<li <?php if($pages == 'day-book.php'){ ?> class="tabUp" <?php } ?>><a href="day-book.php">Day Book</a></li>
        <li <?php if($pages == 'trial-balance.php'){ ?> class="tabUp" <?php } ?>><a href="trial-balance.php">Trial Balance</a></li>
		
        </ul>
		
		
            	
	   <?php 
		 }
		 
		 }
		 //---------Superadmin permission End--------------------------------------------------------------------------
		 
		 //---------Subadmin permission Start--------------------------------------------------------------------------
		 if($_SESSION['typename'] == 'SubAdmin')
			{
			if(($pages == 'vechicle-list.php') || ($pages == 'add-client.php') || ($pages == 'add-reseller.php') || ($pages == 'client-list.php')|| ($pages == 'reseller-list.php') || ($pages == 'vechicle-details-entry.php') || ($pages == 'view-town.php') || ($pages == 'add-town.php') || ($pages == 'route_list.php') || ($pages == 'add-route.php') || ($pages == 'exportdealer-file.php') ||  ($pages == 'download-master.php') || ($pages == 'product_list.php')  || ($pages == 'add-product.php') || ($pages == 'rate-list.php') || ($pages == 'add-rate.php') || ($pages == 'add-user.php') || ($pages == 'user_list.php') || ($pages == 'exportown-file.php') || ($pages == 'changepassword.php') ||  ($pages == 'add-kopra-oil.php') || ($pages == 'add-kopra-Pinnakku.php') || ($pages == 'add-kopra-sack.php') || ($pages == 'add-tin-kg.php') || ($pages == 'add-sku.php') || ($pages == 'add-brand.php') || ($pages == 'add-agmark.php') || ($pages == 'add-filmroll.php') || ($pages == 'open_balance_purchase.php') || ($pages == 'open_balance_sales.php'))
			{
		 ?>
        <?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['client_status'] == 1)) {?>         
      	<li <?php if(($pages == 'add-client.php') || ($pages == 'client-list.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="add-client.php">Client</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-client.php'){ ?> class="tabUp" <?php } ?>><a href="add-client.php">Add Client</a></li>
        <li <?php if($pages == 'client-list.php'){ ?> class="tabUp" <?php } ?>><a href="client-list.php">Client List</a></li></ul>
		<?php } ?>
        
		<?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['vendor_status'] == 1)) {?>
        <li <?php if(($pages == 'add-reseller.php') || ($pages == 'reseller-list.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="add-reseller.php">Vendor</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-client.php'){ ?> class="tabUp" <?php } ?>><a href="add-reseller.php">Add Vendor</a></li>
        <li <?php if($pages == 'reseller-list.php'){ ?> class="tabUp" <?php } ?>><a href="reseller-list.php">Vendor List</a></li></ul>
        <?php } ?>
		
		<?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['vehicle_status'] == 1)) {?>
		<li <?php if(($pages == 'vechicle-list.php') || ($pages == 'vechicle-details-entry.php') || ($pages == 'vechicle-notification-15-days.php') || ($pages == 'vechicle-notification-5-days.php')){ ?> class="tabUp" <?php } ?>><div class="tl"></div><div class="tc"><a href="vechicle-list.php">Vehicle</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'vechicle-details-entry.php'){ ?> class="tabUp" <?php } ?>><a href="vechicle-details-entry.php">Add Vehicle</a></li>
        <li <?php if($pages == 'vechicle-list.php'){ ?> class="tabUp" <?php } ?>><a href="vechicle-list.php">View Vehicle</a></li>
        </ul>
        </li> <?php } ?>
        
       
        <?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['product_status'] == 1)) {?>
        <li <?php if(($pages == 'product_list.php') || ($pages == 'add-product.php')){ ?> class="tabUp" <?php } ?>>
		<div class="tl"></div><div class="tc"><a href="product_list.php">Product</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-product.php'){ ?> class="tabUp" <?php } ?>><a href="add-product.php">Add Product</a></li>
        <li <?php if($pages == 'product_list.php'){ ?> class="tabUp" <?php } ?>><a href="product_list.php">View Product</a></li></ul>
        <?php } ?>
        
		<?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['user_status'] == 1)) {?>     
        <li <?php if(($pages == 'add-user.php') || ($pages == 'user_list.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="add-user.php">Manage User</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-user.php'){ ?> class="tabUp" <?php } ?>><a href="add-user.php">Add User</a></li>
        <li <?php if($pages == 'user_list.php'){ ?> class="tabUp" <?php } ?>><a href="user_list.php">View User</a></li></ul>
        <?php } ?>
		
        <?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['kopra_status'] == 1)) {?>
        <li <?php if(($pages == 'add-kopra-oil.php') || ($pages == 'add-kopra-Pinnakku.php') || ($pages == 'add-kopra-sack.php') || ($pages == 'add-tin-kg.php') ){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="add-kopra-oil.php">Kopra</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-kopra-oil.php'){ ?> class="tabUp" <?php } ?>><a href="add-kopra-oil.php">Conversion% to Oil</a></li>
        <li <?php if($pages == 'add-kopra-Pinnakku.php'){ ?> class="tabUp" <?php } ?>><a href="add-kopra-Pinnakku.php">Conversion% to Pinnakku</a></li>
        <li <?php if($pages == 'add-kopra-sack.php'){ ?> class="tabUp" <?php } ?>><a href="add-kopra-sack.php">Sack</a></li>
        <li <?php if($pages == 'add-tin-kg.php'){ ?> class="tabUp" <?php } ?>><a href="add-tin-kg.php">Tin</a></li></ul>
        <?php } ?>
		
		<?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['sku_status'] == 1)) {?>      
        <li <?php if(($pages == 'add-sku.php') ){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="add-sku.php">Sku</a></div><div class="tr"></div>
		<?php } ?>
		
		<?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['filmroll_status'] == 1)) {?>
		<li <?php if(($pages == 'add-filmroll.php') ){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="add-filmroll.php">Filmroll</a></div><div class="tr"></div>
         <?php } ?>
		 
		        
		<?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['agmark_status'] == 1)) {?>    
        <li <?php if(($pages == 'add-agmark.php')){ ?> class="tabUp" <?php } ?>>
        <div class="tl"></div><div class="tc"><a href="add-agmark.php">Agmark</a></div><div class="tr"></div>
		<?php } ?>
        
		<?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['openingbal_status'] == 1)) {?>
        <li <?php if(($pages == 'open_balance_purchase.php') || ($pages == 'open_balance_sales.php')){ ?> class="tabUp" <?php } ?>>
		<div class="tl"></div><div class="tc"><a href="open_balance_purchase.php">Opening Balance</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'open_balance_purchase.php'){ ?> class="tabUp" <?php } ?>><a href="open_balance_purchase.php">Purchase Opening Balanace</a></li>
        <li <?php if($pages == 'open_balance_sales.php'){ ?> class="tabUp" <?php } ?>><a href="open_balance_sales.php">Sales Opening Balanace</a></li></ul>
        <?php }}
		
		
		
		if(($pages == 'add-department.php') || ($pages == 'department-list.php') || ($pages == 'add-designation.php') || ($pages == 'designation-list.php') ||($pages == 'branch-list.php') || ($pages == 'add-branch.php') || ($pages == 'add-employee.php') || ($pages == 'employee-list.php') || ($pages == 'add-timesheet.php') || ($pages == 'timesheet_employee-list.php') || ($pages == 'apply_leave.php') || ($pages == 'applied_leave_list.php') || ($pages == 'leave_types.php') || ($pages == 'add-leave-types.php') || ($pages == 'manage_deduct_earning_list.php') || ($pages == 'add_deduction_earning.php') || ($pages == 'manage_salary_list.php') || ($pages == 'approve-leaves.php') || ($pages == 'timesheet-approval.php') || ($pages == 'personal-timesheet-approval.php'))
			{
		 ?>
		 
		 <?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['branch_status'] == 1)) {?>
         <li <?php if(($pages == 'branch-list.php') || ($pages == 'add-branch.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="branch-list.php">Branch</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-branch.php'){ ?> class="tabUp" <?php } ?>><a href="add-branch.php">Add Branch</a></li>
        <li <?php if($pages == 'branch-list.php'){ ?> class="tabUp" <?php } ?>><a href="branch-list.php">Branch List</a></li></ul>       
         <?php } ?>
		 
		 <?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['department_status'] == 1)) {?>   
      	<li <?php if(($pages == 'department-list.php') || ($pages == 'add-department.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="department-list.php">Department</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-department.php'){ ?> class="tabUp" <?php } ?>><a href="add-department.php">Add Department</a></li>
        <li <?php if($pages == 'department-list.php'){ ?> class="tabUp" <?php } ?>><a href="department-list.php">Department List</a></li></ul>        
		<?php } ?>
		
		<?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['designation_status'] == 1)) {?>	       
        <li <?php if(($pages == 'add-designation.php') || ($pages == 'designation-list.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="add-designation.php">Designation</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-designation.php'){ ?> class="tabUp" <?php } ?>><a href="add-designation.php">Add Designation</a></li>
        <li <?php if($pages == 'designation-list.php'){ ?> class="tabUp" <?php } ?>><a href="designation-list.php">Designation List</a></li></ul>
        <?php } ?>
		
		<?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['employee_status'] == 1)) {?>
        <li <?php if(($pages == 'add-employee.php') || ($pages == 'employee-list.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="add-employee.php">Employee</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-employee.php'){ ?> class="tabUp" <?php } ?>><a href="add-employee.php">Add Employee</a></li>
        <li <?php if($pages == 'employee-list.php'){ ?> class="tabUp" <?php } ?>><a href="employee-list.php">Employee List</a></li></ul>
        <?php } ?>
		
		<?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['timesheet_status'] == 1)) {?>
        <li <?php if(($pages == 'add-timesheet.php') || ($pages == 'timesheet_employee-list.php') || ($pages == 'timesheet-approval.php') || ($pages == 'personal-timesheet-approval.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="add-timesheet.php">Timesheet</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add-timesheet.php'){ ?> class="tabUp" <?php } ?>><a href="add-timesheet.php">Add Timesheet</a></li>
        <li <?php if($pages == 'timesheet_employee-list.php'){ ?> class="tabUp" <?php } ?>><a href="timesheet_employee-list.php">Timesheet List</a></li>
		<li <?php if($pages == 'timesheet-approval.php'){ ?> class="tabUp" <?php } ?>><a href="timesheet-approval.php">Timesheet Approval</a></li>
		<li <?php if($pages == 'personal-timesheet-approval.php'){ ?> class="tabUp" <?php } ?>><a href="personal-timesheet-approval.php">Personal Timesheet</a></li>
       </ul>
       <?php } ?>
	   
	   <?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['leave_status'] == 1)) {?>
       <li <?php if(($pages == 'apply_leave.php') || ($pages == 'applied_leave_list.php') || ($pages == 'leave_types.php') || ($pages == 'add-leave-types.php') || ($pages == 'approve-leaves.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="leave_types.php">Leave</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'apply_leave.php'){ ?> class="tabUp" <?php } ?>><a href="apply_leave.php">Apply Leave</a></li>
        <li <?php if($pages == 'applied_leave_list.php'){ ?> class="tabUp" <?php } ?>><a href="applied_leave_list.php">Apply Leave List</a></li>
		 <li <?php if($pages == 'approve-leaves.php'){ ?> class="tabUp" <?php } ?>><a href="approve-leaves.php">Approve Leaves</a></li>
        <li <?php if($pages == 'leave_types.php'){ ?> class="tabUp" <?php } ?>><a href="leave_types.php">Leave Type</a></li>
      </ul>
	   <?php } ?>
	   
	   <?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['payroll_status'] == 1)) {?>
	   <li <?php if(($pages == 'manage_salary_list.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="manage_salary_list.php">Payroll</a></div><div class="tr"></div>
        <?php } ?>
		
		<?php if(($_SESSION['typename'] == 'SubAdmin') && ($_SESSION['setting_status'] == 1)) {?>
		<li <?php if(($pages == 'manage_deduct_earning_list.php') || ($pages == 'add_deduction_earning.php')){ ?> class="tabUp" <?php } ?>>        
        <div class="tl"></div><div class="tc"><a href="add_deduction_earning.php">Settings</a></div><div class="tr"></div>
        <ul class="tabDrop"><li <?php if($pages == 'add_deduction_earning.php'){ ?> class="tabUp" <?php } ?>><a href="add_deduction_earning.php">Add Manage Deduction & Earning</a></li>
        <li <?php if($pages == 'manage_deduct_earning_list.php'){ ?> class="tabUp" <?php } ?>><a href="manage_deduct_earning_list.php">Manage Deduction & Earning</a></li>
       </ul>
         <?php } ?>      
               
        <?php }			
		
		
		
		
		
		}
		?>  
         
      </ul>   
  </div>