<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<?php include("header-js.php");?>		
		<script src="js/print.js"></script><!---->
<script type="text/javascript" src="js/jquery.jqprint.js"></script>
<!-----hrm-------------->		
<link rel="stylesheet" href="css/style.css" />
<!-- Responsive -->
<link rel="stylesheet" href="css/responsive.css" />

<!-----hrm-------------->
        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
</head>

<body class="skin-blue">

<script type="text/javascript">
	
	$.getJSON('http://192.168.1.41/KR/mookadanadmin/employeename_list.php?action=load',function(data){
		empnamelist = data.empnamelist;	
		$.each(empnamelist, function(index, empnamelist) {									 
									$('.Searchemp_list').append('<option value="'+empnamelist.e_id+'">'+empnamelist.e_fname+'</option>');
							
		});	
	});

		</script>
	<?php include("header.php");?>
	

	<?php 
	 if($_GET['frm']==5)
		$header = 'PF - Form 5 - Consolidated statement of members joining PF';
	 if($_GET['frm']==10)
		$header = 'PF - Form 10	-	Consolidated statement of members leaving PF';	
	 if($_GET['frm']=='3a')
		$header = 'PF - Form 3A';
	 if($_GET['frm']=='6a')
		$header = 'PF - Form 6A - Consolidated Statement For Contribution Card';
	 if($_GET['frm']=='12a')
		$header = 'PF - Form 12A';	
	 if($_GET['frm']=='mst')
		$header = 'PF - Monthly Statement';	
			
	 ?>
    <!-- Main row -->
    <div class="row">
		<div id="wrapper">
			<div class="content">
				<div class="report-tab">
					<div class="employee-title">
						<div class="report-left" style="width: 560px;"><h2><?php echo $header?$header:"" ;?><span></span></h2></div>
						<div class="report-category"></div>
						<div class="clear-float"></div>
					</div><!-- /employee-title -->
					<div class="clear-float"></div>
					<div class="report-cell-02"></div>
					<div id="tabletabheadlist">
					<?php if($_GET['frm']==5){?>
							<div id="steps">
								<form name="pffrm5" id="pffrm5" action="pf-forms-pdf.php" method="post" onSubmit="return downloadForm5();">
								
					<table style="width: 600px;">
						<tr>
							<td><label>From</label></td>
							<td><input type="text" name="from_date" id="from_date"  style="width:179px;height:30px"></td>
							<td><label>To</label></td>
							<td><input type="text" name="to_date" id="to_date" style="width:179px;height:30px;"></td>
						</tr>
									<tr style="height:20px;"></tr>
						<tr>
							<td><label>Sort by</label></td>
							<td>
								<select id="type_sort" name="type_sort" style="width:178px;height:30px;">
									<option value=""></option>
									<option value="e_id">Employee No</option>
									<option value="date_join">Join Date</option>
									<option value="e_fname">Name</option>
									<option value="pf_no">PF No</option>
								</select>
							</td>
							<td></td>
							<td></td>
						</tr>
					</table>			
						<br/><br/>		
	<p><input type="button" onClick="search_pdf5('5')" class="color-button pf-form5" value="Generate">
	&nbsp;<input type="submit" name="submit" class="color-button pf-form5" value="PDF">
			<input type="button" class="color-button pf-form5" value="Excel" onClick="download_pdf5('5');">
			<input type="button" class="color-button pf-form5" value="Print" onClick="print_pdf5('5');"></p>
								
	
								
	<div id="pf5tb"></div>							

									
							
		<p><!--<input type="submit" name="submit" class="color-button pf-form5" value="PDF">
			<input type="button" class="color-button pf-form5" value="Excel" onclick="download_pdf5();">
			<input type="button" class="color-button pf-form5" value="Print" onclick="print_pdf5();">-->
		</p>
								<input type="hidden" name="form" value="form5">
								
												</form>
							</div>
					<?php } ?>
					
					<?php if($_GET['frm']==10){?>
							<div id="steps">
								<form name="pffrm10" id="pffrm10" action="pf-forms-pdf.php" method="post" onSubmit="return downloadForm10();">
								<table style="width: 600px;">
						<tr>
							<td><label>From</label></td>
							<td><input type="text" name="from_date" id="from_date"  style="width:179px;height:30px"></td>
							<td><label>To</label></td>
							<td><input type="text" name="to_date" id="to_date" style="width:179px;height:30px;"></td>
						</tr>
								<tr style="height:20px;"></tr>
						<tr>
							<td><label>Sort by</label></td>
							<td>
								<select id="type_sort" name="type_sort" style="width:178px;height:30px;">
									<option value=""></option>
									<option value="e_id">Employee No</option>
									<option value="date_join">Join Date</option>
									<option value="e_fname">Name</option>
									<option value="pf_no">PF No</option>
								</select>
							</td>
							<td></td>
							<td></td>
						</tr>
					</table>			
						<br/><br/>		
	<p><input type="button" onClick="search_pdf5('10')" class="color-button pf-form5" value="Generate">
	&nbsp;<input type="submit" name="submit" class="color-button pf-form5" value="PDF">
			<input type="button" class="color-button pf-form5" value="Excel" onClick="download_pdf5('10');">
			<input type="button" class="color-button pf-form5" value="Print" onClick="print_pdf5('10');"></p>
								
	
								
	<div id="pf10tb"></div>		
								<input type="hidden" name="form" value="form10">
								</form>
							</div>
					<?php } ?>
					
					<?php if($_GET['frm']=='12a'){?>
							<div id="steps">
								<form name="pffrm12a" id="pffrm12a" action="pf-forms-pdf.php" method="post">
								<p>
								<label>No of Subscriber as per last month:</label>
								<input type="text" name="no_of_sub_per_mnth" id="no_of_sub_per_mnth">
								</p>
								
								<p>
								<label>No of New Subscribers:</label>
								<input type="text" name="no_of_new_sub" id="no_of_new_sub">
								</p>
								
								<p>
								<label>No of Subscribers left Service:</label>
								<input type="text" name="no_of_sub_left" id="no_of_sub_left">
								</p>
								
								<p><input type="submit" name="submit" class="color-button pf-form12a" value="Generate"></p>
								<input type="hidden" name="form" value="form12a">
								</form>
							</div>	
					<?php } ?>
					
					<?php if($_GET['frm']=='mst'){?>
					<!--<img src="pfforms/Monthly statement.gif" width="850" height="709">-->
				
							<div id="steps">
								<form name="pffrmMst" id="pffrmMst" action="pf-forms-pdf.php" method="post" onSubmit="return downloadFormMst();">
								<table style="width: 600px;">
						<tr>
							<td><label>From</label></td>
							<td><input type="text" name="from_date" id="from_date"  style="width:179px;height:30px" required autocomplete="off"></td>
							
						<td></td>
							<td></td>
							
						</tr>
							<tr style="height:20px;"></tr>
						<tr>
							<td><label>Sort by</label></td>
							<td>
								<select id="type_sort" name="type_sort" style="width:178px;height:30px;">
									<option value=""></option>
									<option value="e_id">Employee No</option>
									<option value="date_join">Join Date</option>
									<option value="e_fname">Name</option>
									<option value="pf_no">PF No</option>
								</select>
							</td>
							<td></td>
							<td></td>
						</tr>
						<tr>
							
							<td></td>
							<td></td>
						</tr>
					</table>			
						<br/><br/>		
	<p><input type="button" onClick="search_pdf5('mst')" class="color-button pf-form5" value="Generate">
	&nbsp;<input type="submit" name="submit" class="color-button pf-form5" value="PDF">
			<input type="button" class="color-button pf-form5" value="Excel" onClick="download_pdf5('mst');">
			<input type="button" class="color-button pf-form5" value="Print" onClick="print_pdf5('mst');"></p>
								
	
								
	<div id="pfmst_tb"></div>		
								<input type="hidden" name="form" value="formMst">
								</form>
							</div>
				
					
					<?php } ?>
					
					<?php if($_GET['frm']=='3a'){?>
							<div id="steps">
								<form name="pffrm3" id="pffrm3" action="pf-forms-pdf.php" method="post" onSubmit="return downloadForm3a();">
						<table style="width: 500px;">
						<tr>
							<td><label>From</label></td>
							<td><input type="text" name="from_date" id="from_date"  style="width:179px;height:30px" ></td>
							<td><label>To</label></td>
							<td><input type="text" name="to_date" id="to_date" style="width:179px;height:30px;"></td>
						</tr>
						<tr style="height:20px;"></tr>
						<tr>
							<td><label>Sort by</label></td>
							<td>
								<select id="type_sort" name="type_sort" style="width:178px;height:30px;">
									<option value=""></option>
									<option value="e_id">Employee No</option>
									<option value="date_join">Join Date</option>
									<option value="e_fname">Name</option>
									<option value="pf_no">PF No</option>
								</select>
							</td>
							<td></td>
							<td></td>
						</tr>
					
					</table>			
						<br/><br/>		
	
								
								<p><input type="button" onClick="search_pdf5('3a')" class="color-button pf-form5" value="Generate">
	&nbsp;<input type="submit" name="submit" class="color-button pf-form5" value="PDF">
			<input type="button" class="color-button pf-form5" value="Excel" onClick="download_pdf5('3a');">
			<input type="button" class="color-button pf-form5" value="Print" onClick="print_pdf5('3a');"></p>
			
			<div id="pf3atb"></div>	
								<input type="hidden" name="form" value="form3a">
								<div class="emp_list"></div>
							
									<p>
								<input class="simple" type="radio" name="emp-filter-type" value="all" onClick="list_employees(this.value);" checked="checked">All Employees
								<input class="simple" type="radio" name="emp-filter-type" value="filter" onClick="list_employees(this.value);">Selected Employees
								</p>
								
								<p>
									<div id="tablelist" style="display: none;">
									<table width="50%" style="margin-left: 100px;" border="0" cellspacing="0" cellpadding="0" class="list-employees">
									<tbody><tr>
									<td width="20%"><translate></translate></td>
									<td width="20%"><translate>Employee Name</translate></td>
									<td width="12%"><translate>Employee No</translate></td>
									</tr>
									
									<?php
									  $sqlstring="SELECT e_id,CONCAT(e_fname,e_lname)as emp_name from employee";
		$userdetails = $db->fetchQuery($sqlstring);	
		$i=0;
		foreach ($userdetails as $details) {
			$i++;?>
			<tr>
					<td>
					<input class="simple" type="checkbox" name="emp[]" id="emp<?php echo $i;?>" value="<?php echo $details['e_id']; ?>" onClick="getEmpID(<?php echo $i;?>);"/>
					
					</td>
											<td><?php echo $details['emp_name']; ?></td>				
					<td><?php echo $details['e_id']; ?></td>
				  </tr>
				  
	<?php }?>
									
									</tbody></table>
</div>
								</p>
								
								<input type="hidden" id="emp_str" value=""/>
								
								</form>
							</div>
							
					<?php } ?>
					
					<?php if($_GET['frm']=='6a'){?>
							<div id="steps">
								<form name="pffrm6" id="pffrm6" action="pf-forms-pdf.php" method="post" onSubmit="return downloadForm6a();">
								<table style="width: 500px;">
						<tr>
							<td><label>From</label></td>
							<td><input type="text" name="from_date" id="from_date"  style="width:179px;height:30px" ></td>
							<td></td>
							<td></td>
						</tr>
						<tr style="height:20px;"></tr>
						<tr>
							<td><label>Sort by</label></td>
							<td>
								<select id="type_sort" name="type_sort" style="width:178px;height:30px;">
									<option value=""></option>
									<option value="e_id">Employee No</option>
									<option value="date_join">Join Date</option>
									<option value="e_fname">Name</option>
									<option value="pf_no">PF No</option>
								</select>
							</td>
							<td></td>
							<td></td>
						</tr>
					
					</table>			
						<br/><br/>	
								
							
								
								<input type="hidden" name="form" value="form6a">
								<input type="hidden" id="emp_str" value=""/>
							
								<p><input type="button" onClick="search_pdf5('6a')" class="color-button pf-form5" value="Generate">
	&nbsp;<input type="submit" name="submit" class="color-button pf-form5" value="PDF">
			<input type="button" class="color-button pf-form5" value="Excel" onClick="download_pdf5('6a');">
			<input type="button" class="color-button pf-form5" value="Print" onClick="print_pdf5('6a');"></p>
			
			<div id="pf6atb"></div>	
			
							<div class="emp_list"></div>
								<p>
								<input class="simple" type="radio" name="emp-filter-type" value="all" onClick="list_employees(this.value);" checked="checked">All Employees
								<input class="simple" type="radio" name="emp-filter-type" value="filter" onClick="list_employees(this.value);">Selected Employees
								</p>
										<p>
									<div id="tablelist" style="display: none;">
									<table width="50%" style="margin-left: 100px;" border="0" cellspacing="0" cellpadding="0" class="list-employees">
									<tbody><tr>
									<td width="20%"><translate></translate></td>
									<td width="20%"><translate>Employee Name</translate></td>
									<td width="12%"><translate>Employee No</translate></td>
									</tr>
									
									<?php
									  $sqlstring="SELECT e_id,CONCAT(e_fname,e_lname)as emp_name from employee";
		$userdetails = $db->fetchQuery($sqlstring);	
		$i=0;
		foreach ($userdetails as $details) { $i++;?>
			<tr>
					<td><input class="simple" type="checkbox" name="emp[]" id="emp<?php echo $i;?>" value="<?php echo $details['e_id']; ?>" onClick="getEmpID(<?php echo $i;?>);"/></td>					
					<td><?php echo $details['emp_name']; ?></td>				
					<td><?php echo $details['e_id']; ?></td>
				  </tr>
				  
	<?php }?>
									
									</tbody></table>
</div>
								</p>
								
								
								</form>
							</div>
							
					<?php } ?>
					
					<?php if($_GET['frm']=='ert'){?>
					<img src="pfforms/fORM 5.gif" width="850" height="709">
					<?php } ?>
					</div>
					<div class="clear-float"></div>
					<div id="printDiv" style="display: none;"></div>
					
				</div><!-- /report-cell-02 -->
				<div id="tablelist"></div>
				<div class="clear-float"></div>
				</div><!-- /report-tab -->
				<div class="clear-float"></div>
			</div><!-- /content -->
			<div id="busy">Loading...</div>
			<div class="footer">
			<strong>© add-HRM </strong><span class="currentversion"></span><br />
			<span><translate>Developed by</translate> <a href="http://www.aadhocc.com" target="_blank"><translate>Aadhocc</translate></a></span></div>
			<!-- /footer -->
			</div>
		</div><!-- /.row (main row) -->
		</section><!-- /.content -->
        </aside><!-- /.right-side -->
    </div><!-- ./wrapper -->

        <!-- add new calendar event modal -->


        <!-- jQuery 2.0.2 -->
        <!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>-->
        <!-- jQuery UI 1.10.3 -->
       <?php include("footer-js.php");?>
		<link rel="stylesheet" href="css/jquery-ui.css" />
		<script src="js/forms.js" type="text/javascript"></script>
		<script type="text/javascript">
		
			$('#from_date').datepicker({dateFormat:"dd-mm-yy"});
		$('#to_date').datepicker({dateFormat:"dd-mm-yy"});
		
			/*$(document).ready(function() {
				$('#tablelist').hide();
				
				});*/
				
function getEmpID(i)
{	
	var emp_str=document.getElementById('emp_str').value;
	var val=document.getElementById('emp'+i).value;
	
	if (document.getElementById('emp'+i).checked) {	
		
		if(emp_str!="")
		{
			 emp_str+=","+val;
		}else{
			 emp_str=val;
		}		
		 	
		document.getElementById('emp_str').value=emp_str;
           
        } else{
        	emp_str_new=emp_str.replace(","+val,'');
        	if(emp_str==emp_str_new){
				emp_str_new=emp_str.replace(val+",",'');
				if(emp_str==emp_str_new){
					emp_str_new=emp_str.replace(val,'');
				}
			}
			document.getElementById('emp_str').value=emp_str_new;
		}
	
}
								
function list_employees(v)
		{			
			if(v=="all"){
			$('#tablelist').hide();	
			}else{
				$('#tablelist').show();	
			}
		}
		
function print_pdf5(status) {	
	
	var emp = $('#emp_str').val();
	
var from_date = $('#from_date').val();	
	if(status=='mst'){
		if(from_date==""){
			alert("Please select date");
			$('#from_date').focus();
			return false;	
		}
		var to_date="";
		}else{
			var to_date=$('#to_date').val();
		}
		if(status=='6a')
		{
			var to_date="";
		}	
	
	var type_sort=$('#type_sort').val();
		
$.ajax({
		type: "POST",
		url: "http://192.168.1.41/KR/print-pf.php",
		data: "from_date="+from_date+"&to_date="+to_date+"&status="+status+"&type_sort="+type_sort,
		success: function(result){
		$('body').append('<div class="print-wrapper">'+
						 '<div class="print-content"></div>'+
						 '</div>');

		$('.print-content').append(result);				
		$('.print-content').print();	
		$('.print-wrapper').remove();
			 	
		}
	});	
	
}
	
	function download_pdf5(status) {
		var type_sort=$('#type_sort').val();
		var emp = $('#emp_str').val();	
	
	
	var from_date = $('#from_date').val();	
	if(status=='mst'){
		if(from_date==""){
			alert("Please select date");
			$('#from_date').focus();
			return false;	
		}
		var to_date="";
		}else{
			var to_date=$('#to_date').val();
		}
		
		if(status=='6a')
		{
			var to_date="";
		}	
	/*var emp_id=$('#emp_id').val();
	var emp_name=$('#filter_emp_name').val();
	var pf_no=$('#pf_no').val();*/
	
	
	window.location = "http://192.168.1.41/KR/download_pf.php?from_date="+from_date+"&to_date="+to_date+"&type_sort="+type_sort+"&status="+status+"&emp="+emp;
}
	
function search_pdf5(status)
{
	var type_sort=$('#type_sort').val();
	var emp = $('#emp_str').val();	
	var from_date = $('#from_date').val();
      
	if(status=='mst'){
		if(from_date==""){
			alert("Please select date");
			$('#from_date').focus();
			return false;	
		}
		var to_date="";
		}else{
			var to_date=$('#to_date').val();
		}
		
		if(status=='6a')
		{
			var to_date="";
		}	
		
		
	/*var emp_id=$('#emp_id').val();
	var emp_name=$('#filter_emp_name').val();
	var pf_no=$('#pf_no').val();*/

	$.getJSON("http://192.168.1.41/KR/pf-list.php?from_date="+from_date+"&to_date="+to_date+"&status="+status+"&emp="+emp+"&type_sort="+type_sort,
		function(data) { 
		
				if(status=='5'){
			$('#pf5tb').html('');  			
  		
			employeeslist = data.name;			
		 	var num=1;
			var i=1;var cnt=0;var name='';
			$('#pf5tb').append('<table  cellspacing="0" cellpadding="0" border="1" width="100%"><tr ><td style="padding-left:5px;"><strong>SI NO</strong></td><td style="padding-left:5px;"><translate><strong>PF Account.No.</strong></translate></td><td width="20%" style="padding-left:5px;"><translate><strong>Name of Employee</strong></translate></td><td width="20%" style="padding-left:5px;"><translate><strong>Father\'s Name (or Husband\'s Name in case of married woman)</strong></translate></td><td width="8%" style="padding-left:5px;"><translate><strong>Date of Birth</strong></translate></td><td style="padding-left:5px;"><translate><strong>Sex</strong></translate></td><td width="8%" style="padding-left:5px;"><translate><strong>Date of joining the Fund</strong></translate></td><td width="20%" style="padding-left:5px;"><translate><strong>Total period of previous service as on the date of joining the Fund (Enclose scheme certificate if applicable)</strong></translate></td></tr><tbody id="pf5tbody"></tbody></table>');
			$('#pf5tbody').html('');  
			$.each(employeeslist, function(index, employeeslist) {
				slno=employeeslist.slno;	
				e_accountno=employeeslist.e_accountno;	
				emp_name=employeeslist.emp_name;	
				e_mname=employeeslist.e_mname;	
				e_dob=employeeslist.e_dob;
				e_gender=employeeslist.e_gender;	
				e_pf_date_join_fund=employeeslist.pf_date_join_fund;	
				e_total_period_previous=employeeslist.total_period_previous_service;	
				
						
							  
				$('#pf5tbody').append('<tr><td style="padding-left:5px;">'+slno+'</td><td style="padding-left:5px;">'+e_accountno+'</td><td style="padding-left:5px;">'+emp_name+'</td><td style="padding-left:5px;">'+e_mname+'</td><td style="padding-left:5px;">'+e_dob+'</td><td style="padding-left:5px;">'+e_gender+'</td><td style="padding-left:5px;">'+e_pf_date_join_fund+'</td><td style="padding-left:5px;">'+e_total_period_previous+'</td></tr>');
					
				num++;
				i++;
			});
		}
				
  		if(status=='10'){
			$('#pf10tb').html('');  			
  		
			employeeslist10 = data.name;			
		 	var num=1;
			var i=1;var cnt=0;var name='';
			$('#pf10tb').append('<table  cellspacing="0" cellpadding="0" border="1" ><tr><td width="10%" style="padding-left:5px;"><strong>SI NO</strong></td><td width="12%" style="padding-left:5px;"><translate><strong>Account.No.</strong></translate></td><td width="20%" style="padding-left:5px;"><translate><strong>Name of the Member</strong></translate></td><td width="20%" style="padding-left:5px;"><translate><strong>Father\'s Name (or Husband\'s Name in case of married woman)</strong></translate></td>	<td width="12%" style="padding-left:5px;"><translate><strong>Date of Leaving Service</strong></translate></td><td width="12%" style="padding-left:5px;"><translate><strong>Reason for Leaving Service</strong></translate></td><td width="12%" style="padding-left:5px;"><translate><strong>Remarks</strong></translate></td></tr><tbody id="pf10tbody"></tbody></table>');
			$('#pf10tbody').html('');  
			$.each(employeeslist10, function(index, employeeslist10) {
				slno=employeeslist10.slno;	
				e_accountno=employeeslist10.e_accountno;	
				emp_name=employeeslist10.emp_name;	
				e_mname=employeeslist10.e_mname;	
				resigned_dat=employeeslist10.resigned_dat;					
				reason_leaving_pf=employeeslist10.reason_leaving_pf;
				pfremarks=employeeslist10.pfremarks;
					
							  
				$('#pf10tbody').append('<tr><td style="padding-left:5px;">'+slno+'</td><td style="padding-left:5px;">'+e_accountno+'</td><td style="padding-left:5px;">'+emp_name+'</td><td style="padding-left:5px;">'+e_mname+'</td><td style="padding-left:5px;">'+resigned_dat+'</td><td style="padding-left:5px;">'+reason_leaving_pf+'</td><td style="padding-left:5px;">'+pfremarks+'</td> </tr>');
					
				num++;
				i++;
			});
		}
		
		if(status=='mst'){
			$('#pfmst_tb').html('');  			
  		
			employeeslist10 = data.name;			
		 	var num=1;
			var i=1;var cnt=0;var name='';
			$('#pfmst_tb').append('<table width="100%" border="1" cellspacing="0" cellpadding="0" > <tr><td class="title" style="padding-left:5px;"><strong>SI NO</strong></td><td class="title" style="padding-left:5px;"><strong>Employee.No.</strong></td><td class="title" style="padding-left:5px;"><strong>Name</strong></td><td class="title" style="padding-left:5px;"><strong>PF No</strong></td><td class="title" style="padding-left:5px;"><strong>Worked Days</strong></td><td colspan="3" class="title" style="padding-left:5px;"><strong>Employees Contribution</strong></td><td colspan="3" class="title" style="padding-left:5px;"><strong>Employers Contribution</strong></td></tr><tr><td class="title" style="padding-left:5px;"></td><td class="title" style="padding-left:5px;"></td><td class="title"></td><td class="title" style="padding-left:5px;"></td><td class="title" style="padding-left:5px;"></td><td class="title" style="padding-left:5px;"><strong>Basic+DA</strong></td><td class="title" style="padding-left:5px;"><strong>PF</strong></td><td class="title" style="padding-left:5px;"><strong>VPF</strong></td><td class="title" style="padding-left:5px;"><strong>PF</strong></td><td class="title" style="padding-left:5px;"><strong>EPS</strong></td><td class="title" style="padding-left:5px;"><strong>Total</strong></td></tr><tbody id="pfmst_tbody"></tbody></table>');
			$('#pfmst_tbody').html('');  
			$.each(employeeslist10, function(index, employeeslist10) {
				slno=employeeslist10.slno;	
				e_id=employeeslist10.e_id;	
				emp_name=employeeslist10.emp_name;	
				dtl_basic=employeeslist10.dtl_basic;	
				dtl_allowance=employeeslist10.dtl_allowance;
				dtl_pf=employeeslist10.dtl_pf;
				pf_accnum=employeeslist10.pf_accnum;
				if(dtl_pf>0){
					
				}else{
					dtl_pf="0.00";
				}
				sum_bs_al=parseFloat(dtl_basic)+parseFloat(dtl_allowance);	
				if(sum_bs_al>0)	{
					
				}else{
					sum_bs_al="0.00";
				}		
							  
				$('#pfmst_tbody').append('<tr><td class="title" style="padding-left:5px;">'+slno+'</td><td class="title" style="padding-left:5px;">'+e_id+'</td><td class="title" style="padding-left:5px;">'+emp_name+'</td><td class="title" style="padding-left:5px;">'+pf_accnum+'</td><td class="title" style="padding-left:5px;"></td><td align="left" valign="top" class="title" style="padding-left:5px;">'+sum_bs_al+'</td><td align="left" valign="top" class="title" style="padding-left:5px;">'+dtl_pf+'</td><td class="title" style="padding-left:5px;"></td><td class="title" style="padding-left:5px;">&nbsp;</td><td class="title">&nbsp;</td><td class="title">&nbsp;</td></tr>');			
				
					
				num++;
				i++;
			});
		}
				
  		if(status=='3a'){
  			
			$('#pf3atb').html(''); 			
  		
			employeeslist10 = data.name;		
		 	var num=1;
			var i=1;var cnt=0;var name='';
			$('#pf3atb').append('<table width="100%" cellspacing="0" cellpadding="0" border="1" ><tr><td class="title"><strong>Month</strong></td><td class="title"  width="20%"><strong>Name</strong></td><td colspan="2" class="title"><strong>MEMBER\'S SHARE</strong></td><td colspan="2"  class="title"><strong>EMPLOYER\'S SHARE</strong></td><td rowspan="2" class="title"><strong>Ref. of Advance</strong></td><td rowspan="2" class="title"><strong>Period of non contributory<br/> service (if any) No of days</strong></td><td rowspan="2" class="title"><strong>Remarks</strong></td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td class="title"><strong>Amount of Wages</strong></td><td class="title"><strong> E.P.F</strong> </td><td class="title"><strong>E.P.F Contribution</strong></td><td class="title"><strong>Pension Fund<br/> Contribution 8 1/3 %</strong></td></tr><tbody id="pf3atbody"></tbody></table>');
			$('#pf3atbody').html('');  
			$.each(employeeslist10, function(index, employeeslist10) {
				month_name=employeeslist10.month_name;	
				pf=employeeslist10.pf;
				if(pf==null){
					pf="0.00";
				}										
				total_paid=Math.round(employeeslist10.total_paid).toFixed(2);						
				emp_name=employeeslist10.emp_name;						
				if(total_paid==0){
					pf="0.00";
				}			  
				$('#pf3atbody').append('<tr><td>'+month_name+'</td><td>'+emp_name+'</td><td>'+total_paid+'</td><td>'+pf+'</td><td></td><td></td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>');
					
				num++;
				i++;
			});
		}
		
		if(status=='6a'){
  			
			$('#pf6atb').html(''); 			
  		
			employeeslist10 = data.name;
				
		 	var num=1;
			var i=1;var cnt=0;var name='';
			$('#pf6atb').append('<table width="100%" cellspacing="0" cellpadding="0" border="1" ><tr><td class="title">SI NO</td><td class="title">Account.No.</td><td class="title">Name of the Member </td><td class="title" width="">Wages retaining,allowance(if any)and D.A. including Cash values of food concession paid during the currency period </td><td colspan="3" class="title">Amount of Worker\'s Contributions deducted from the Wages </td><td colspan="3" class="title">Employer\'s Contributions </td><td rowspan="2" class="title">Refund of Advance </td><td rowspan="2" class="title">Rate of Higher Voluntary Contribution if any </td><td rowspan="2" class="title">Remarks </td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td class="title">EPF <br>a</td><td class="title">EPS <br>b</td><td class="title">Total<br>c</td><td class="title">EPF <br>a</td><td class="title">EPS <br>b</td><td class="title">Total<br>c</td></tr><tbody id="pf6atbody"></tbody></table>');
			$('#pf6atbody').html('');  
			$.each(employeeslist10, function(index, employeeslist10) {
				
				e_accountno=employeeslist10.e_accountno;	
				
				pf=employeeslist10.pf;
				if(pf==null){
					pf="0.00";
				}										
				total_paid=Math.round(employeeslist10.total_paid).toFixed(2);						
				slno=employeeslist10.slno;						
				emp_name=employeeslist10.emp_name;						
				if(total_paid==0){
					pf="0.00";
				}			  
				$('#pf6atbody').append('<tr><td>'+slno+'</td><td>'+e_accountno+'</td><td>'+emp_name+'</td><td>'+total_paid+'</td><td>'+pf+'</td><td></td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td></td><td></td><td></td><td></td></tr>');
					
				num++;
				i++;
			});
		}
		
			
		});
}

		</script>
    </body>
</html>
 
