<?php
session_start();


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


        <!-- 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">
	<?php include("header.php");?>
	

    <!-- Main row -->
    <div class="row">
		<div id="wrapper">
			<div class="content">
				<div class="report-tab">
					<div class="employee-title">
						<div class="report-left"><h2><translate>Register Wages</translate><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">
					
		
<div class="report-cell-03">
<form class="pdtWageSearchForm" method="POST" action="register-wages-pdf.php" >
	<script type="text/javascript">         
     $(document).ready( function() { 
            var cur_year=new Date().getFullYear();
            var obj=document.getElementById("year");         
            for (var i = 2013; i <= 2030; i++)     {                
                opt = document.createElement("option");
                opt.value = i;
                opt.text=i;
                obj.appendChild(opt);
            }
            document.getElementById("year").value = cur_year;
			
			var month1='';
		 	 var cur_mon=new Date().getMonth() + 1;
            var obj=document.getElementById("month");         
            for (var i = 1; i <= 12; i++)     {                
                opt = document.createElement("option");
				if(i<10) i='0'+i;	
				//-------------------------------------//
				if(i==1)month1='January';if(i==2)month1='February';;if(i==3)month1='March';if(i==4)month1='April';if(i==5)month1='May';
if(i==6)month1='Jun';if(i==7)month1='July';;if(i==8)month1='August';if(i==9)month1='September';if(i==10)month1='October';
if(i==11)month1='November';if(i==12)month1='December';
				//---------------------------------------//
                opt.value = i;
                opt.text=month1;
                obj.appendChild(opt);
            }
        document.getElementById("month").value = cur_mon;
        });
		
	
		
		var serviceURLHR =localStorage['serviceURLHR'];
		$.getJSON(serviceURLHR + 'branch.php?action=load',function(data){
		branch = data.branch;
		
		$.each(branch, function(index, branch) {
									 
							$('#branch').append('<option value="'+branch.branch_id+'">'+branch.branch_name	+'</option>');
							
		});	
	});
	
	function getMonthid(m)
	{
		$('#month_wages_id').val(m);
	}
	function getYearid(y)
	{
		$('#year_wages_id').val(y);
	}
	function getBranchid(b)
	{
		$('#branch_id').val(b);
	}
		
		</script>
		
	<?php
		if(isset($_REQUEST['month_wages']) && $_REQUEST['month_wages']!='null')
	   {
	   $month=$_REQUEST['month_wages'];
	   }
	   else
	   {
	   $month = date('m');
	   //$month = 11;
	   }
	   if(isset($_REQUEST['year_wages']) && $_REQUEST['year_wages']!='null')
	   {
	   $year=$_REQUEST['year_wages'];
	   }
	   else
	   {
	   $year = date('Y');
	   }
	   if(isset($_REQUEST['branch']))
	   {
	   
	   
	   $branch_id=$_REQUEST['branch'];
	  
	   $branchqry =$db->fetchQuery("select branch_name from branches where branch_id ='$branch_id'");
	//  print_r($branchqry);
	   $branchname=$branchqry[0]['branch_name'];
	   
	   }
	   else
	   {
	   $branch_id = ''; $branchname='';
	   }
	    $firstmonthdate='01-'.$month.'-'.$year;
		$d=cal_days_in_month(CAL_GREGORIAN,$month,$year);
		$lastmonthdate=$d.'-'.$month.'-'.$year;
		
$monthname=date("F", mktime(0, 0, 0, $month, 10));
?>	
		<input name="month_wages_id" id="month_wages_id" type="hidden" value="<?php echo $month; ?>"/>	
		<input name="year_wages_id" id="year_wages_id" type="hidden" value="<?php echo $year; ?>"/>
		<input name="branch_id" id="branch_id" type="hidden" value="<?php echo $branch_id; ?>"/>	
<label><!-- <input type="text" placeholder="From date" />  -->

<select name="month_wages"  id="month"  class="selectclass" onchange="getMonthid(this.value);"  style="width:100px;">
</select>
 
</label>
<label><!--<input type="text" placeholder="To date" /> -->
<select name="year_wages"  id="year"  class="selectclass" onchange="getYearid(this.value);"  style="width:100px;"></select>
</label>

<label><?php

if($_SESSION['usertype'] != 'Subadmin')
{
?>
<select name="branch" id="branch" onchange="getBranchid(this.value);"  style="width:75px;" >
    <option value="">Branch</option>
    </select>
	<?php
	}	
?>
</label>

<label><input type="button" value="Search" id="searchwage" class="searchwage" onclick="employeewageregister(1)" style="width:70px;" /></label>
<div class="clear-float"></div>
					<p><input type="submit" name="submit" class="color-button pf-form5" value="Generate"></p>
					<input type="hidden" name="form" value="form_wage_register">
					
</form>
<div class="clear-float"></div>

</div><!-- /report-cell-03 -->

<?php

$arr=array();
//echo "<pre>";
//print_r($_REQUEST);

if(isset($_REQUEST['month_wages']) && $_REQUEST['month_wages']!='null')
	   {
	   $month=$_REQUEST['month_wages'];
	   }
	   else
	   {
	   $month = date('m');
	   //$month = 11;
	   }
	   if(isset($_REQUEST['year_wages']) && $_REQUEST['year_wages']!='null')
	   {
	   $year=$_REQUEST['year_wages'];
	   }
	   else
	   {
	   $year = date('Y');
	   }
	   if(isset($_REQUEST['branch']))
	   {
	   
	   
	   $branch_id=$_REQUEST['branch'];
	  
	   $branchqry =$db->fetchQuery("select branch_name from branches where branch_id ='$branch_id'");
	//  print_r($branchqry);
	   $branchname=$branchqry[0]['branch_name'];
	   
	   }
	   else
	   {
	   $branch_id = ''; $branchname='';
	   }
	    $firstmonthdate='01-'.$month.'-'.$year;
		$d=cal_days_in_month(CAL_GREGORIAN,$month,$year);
		$lastmonthdate=$d.'-'.$month.'-'.$year;
		
$monthname=date("F", mktime(0, 0, 0, $month, 10));

//date("g:i:s A D, F jS Y",$firstmonthdate);
 
$wagesview ='<div class="employee-col-02 " >

<div class="display-cell-1">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  
  <tr>
    <td><table width="100%" border="1" cellspacing="2" cellpadding="0">
      
      <tr>
        <td colspan="16" align="center" valign="top" class="display-border-1">SBC/WR/007/2011</td>
        </tr>
      <tr>
        <td colspan="16" align="center" valign="top" class="display-border-1">MWV</td>
        </tr>
      <tr>
        <td colspan="2" align="left" valign="top" class="display-border-1">Name of Establistment: Group Mukkadan</td>
        <td colspan="11" align="center" valign="top" class="display-border-1">Wage Period from&hellip;&hellip;'.date("jS F Y", strtotime($firstmonthdate)).'...To&hellip;'.date("jS F Y", strtotime($lastmonthdate)).'&hellip;&hellip;&hellip;&hellip;.. </td>
        <td colspan="3" align="right" valign="top" class="display-border-1">Form V<br />
          Rule (29) (1)</td>
        </tr>
      
      <tr>
        <td colspan="16" align="center" valign="top" class="display-border-1">Place:'.$branchname.'</td>
        </tr>
      <tr>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td colspan="4" align="center" valign="top" class="display-border-1">Deduction</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
      </tr>
      <tr>
        <td width="4%" align="left" valign="top" class="display-border-1">1</td>
        <td width="4%" align="left" valign="top" class="display-border-1">2</td>
        <td width="5%" align="left" valign="top" class="display-border-1">3</td>
        <td width="4%" align="left" valign="top" class="display-border-1">4</td>
        <td width="3%" align="left" valign="top" class="display-border-1">5</td>
        <td width="5%" align="left" valign="top" class="display-border-1">6</td>
        
        <td width="5%" align="left" valign="top" class="display-border-1">7</td>
        
        <td width="5%" align="left" valign="top" class="display-border-1">8</td>
        <td width="5%" align="left" valign="top" class="display-border-1">9</td>
        <td width="4%" align="left" valign="top" class="display-border-1">10</td>
        <td width="4%" align="left" valign="top" class="display-border-1">11</td>
        <td width="4%" align="left" valign="top" class="display-border-1">12</td>
        <td width="4%" align="left" valign="top" class="display-border-1">13</td>
        <td width="3%" align="left" valign="top" class="display-border-1">14</td>
        <td width="18%" align="left" valign="top" class="display-border-1">15</td>
        <td width="8%" align="left" valign="top" class="display-border-1">16</td>
      </tr>
      <tr>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td colspan="2" align="left" valign="top" class="display-border-1">Employees Contribution</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
       
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
      </tr>
      <tr>
        <td align="left" valign="top" class="display-border-1">Sr. No. </td>
        <td align="left" valign="top" class="display-border-1">Name of Employees</td>
        <td align="left" valign="top" class="display-border-1">Father Name</td>
        <td align="left" valign="top" class="display-border-1">Designation</td>
        <td align="left" valign="top" class="display-border-1">Basic </td>
        <td align="left" valign="top" class="display-border-1">DA</td>
        
        <td align="left" valign="top" class="display-border-1">Total Attendance/ Days of work done</td>
        
        <td align="left" valign="top" class="display-border-1">Gross Salary Payable</td>
        <td align="left" valign="top" class="display-border-1">PF</td>
        <td align="left" valign="top" class="display-border-1">ESI</td>
        <td align="left" valign="top" class="display-border-1">HRA</td>
        <td align="left" valign="top" class="display-border-1">Other Deductions</td>
        <td align="left" valign="top" class="display-border-1">Total Deductions</td>
        <td align="left" valign="top" class="display-border-1">Wages Paid</td>
        <td align="left" valign="top" class="display-border-1">Date of Payment</td>
        <td align="left" valign="top" class="display-border-1">Signature or Thumb Impression of Employee</td>
      </tr>';
	  
	  /*echo "SELECT * FROM employee as em join payroll_salary_pay as paysal ON em.e_id = paysal.userid join designation as des on des.desig_id = em.e_post join pf_esi_details
 as pfesi on pfesi.emp_id = em.e_id  where em.branchid = '123' and month(paysal.pay_period) = '".$month."' and year(paysal.pay_period) ='".$year."'and month(pfesi.pay_period) = '".$month."' and year(pfesi.pay_period) ='".$year."'";*/
	  
	 //$getres =  $db->fetchQuery("SELECT * FROM employee as em join payroll_salary_pay as paysal ON em.e_id = paysal.userid join designation as des on des.desig_id = em.e_post  where em.branchid = '123' and MONTH(payment_date) = '$month' and YEAR(payment_date) = '$year'");
	 
	 /*echo "SELECT * FROM employee as em join payroll_salary_pay as paysal ON em.e_id = paysal.userid join designation as des on des.desig_id = em.e_post join pf_esi_details as pfesi on pfesi.emp_id = em.e_id  where em.branchid = '$branch_id' and month(paysal.pay_period) = '".$month."' and year(paysal.pay_period) ='".$year."'and month(pfesi.pay_period) = '".$month."' and year(pfesi.pay_period) ='".$year."'";*/
	 
	/* echo "SELECT * FROM employee as em join payroll_salary_pay as paysal ON em.e_id = paysal.userid join designation as des on des.desig_id = em.e_post join pf_esi_details as pfesi on pfesi.emp_id = em.e_id  where em.branchid = '123' and month(paysal.pay_period) = '".$month."' and year(paysal.pay_period) ='".$year."'and month(pfesi.pay_period) = '".$month."' and year(pfesi.pay_period) ='".$year."'";*/
	
	
	 $getres =  $db->fetchQuery("SELECT *,dtl_basic,dtl_da,dtl_hra,dtl_pf,dtl_esi,dtl_allowance,dtl_incentive FROM employee as em join payroll_salary_pay as paysal ON em.e_id = paysal.userid join designation as des on des.desig_id = em.e_post left join pf_esi_details as pfesi on pfesi.emp_id = em.e_id 
left join (select payment_id,amount as dtl_basic from payroll_salary_pay_details where name like '%basic%')as saldtl on paysal.id=saldtl.payment_id 
 left join (select payment_id,amount as dtl_da from payroll_salary_pay_details where name like '%da%')as saldtl1 on paysal.id=saldtl1.payment_id 
left join (select payment_id,amount as dtl_hra from payroll_salary_pay_details where name like '%hra%')as saldtl2 on paysal.id=saldtl2.payment_id 
left join (select payment_id,amount as dtl_pf from payroll_salary_pay_details where name like '%pf%')as saldtl3 on paysal.id=saldtl3.payment_id 
left join (select payment_id,amount as dtl_esi from payroll_salary_pay_details where name like '%esi%')as saldtl4 on paysal.id=saldtl4.payment_id 
left join (select payment_id,amount as dtl_allowance from payroll_salary_pay_details where name like '%allowance%')as saldtl5 on paysal.id=saldtl5.payment_id 
left join (select payment_id,amount as dtl_incentive from payroll_salary_pay_details where name like '%incentive%')as saldtl6 on paysal.id=saldtl6.payment_id 
where em.branchid = '$branch_id' and month(paysal.pay_period) = '".$month."' and year(paysal.pay_period) ='".$year."' ");
	 
	/* echo "SELECT * FROM employee as em join payroll_salary_pay as paysal ON em.e_id = paysal.userid join designation as des on des.desig_id = em.e_post join pf_esi_details as pfesi on pfesi.emp_id = em.e_id  where em.branchid = '123' and month(paysal.pay_period) = '".$month."' and year(paysal.pay_period) ='".$year."'and month(pfesi.pay_period) = '".$month."' and year(pfesi.pay_period) ='".$year."'";*/
	
	
	//print_r($getres);
	 $i=1;
	 
	 foreach($getres as $resval)
	 {
	 $arr[] = date("H:i:s");
	 
	 //	 $getded =  $db->fetchQuery("SELECT * FROM payroll_user_deductions as deduct join payroll_benifits_deductions 
 //as paydedbenfit ON deduct.deduction_id = paydedbenfit.id  where deduct.employee_id = '".$resval['e_id']."' ");
 
 	
	//echo "Select count(distinct(e_date)) as fullday from time as A where e_id='".$resval['e_id']."' and MONTH(e_date) = '04' and YEAR(e_date) = '2014' and (select total_worked_hours from time as B where B.e_id=A.e_id and B.e_date = A.e_date order by B.id desc limit 1) > '06:00:00'";
	$fulldaydetails = $db->fetchQuery("Select count(distinct(e_date)) as fullday from time as A where e_id='".$resval['e_id']."' and MONTH(e_date) = '$month' and YEAR(e_date) = '$year' and (select total_worked_hours from time as B where B.e_id=A.e_id and B.e_date = A.e_date order by B.id desc limit 1) > '06:00:00'");
	 
	$fulldays=$fulldaydetails[0]['fullday'];
	
	
	 

	  $halfdaysapplied = $db->fetchQuery("Select count(distinct(e_date)) as halfday from time as A where e_id='".$resval['e_id']."' and MONTH(e_date) = '$month' and YEAR(e_date) = '$year' and (select total_worked_hours from time as B where B.e_id=A.e_id and B.e_date = A.e_date order by B.id desc limit 1) < '06:00:00' and (select total_worked_hours from time as B where B.e_id=A.e_id and B.e_date = A.e_date order by B.id desc limit 1) > '04:00:00'");
	
	 $halfdays=$halfdaysapplied[0]['halfday'];

     $noofdaysworked=$fulldays +($halfdays*0.5);
	 
	 $daqry = $db->fetchQuery("Select * from payroll_benifits_deductions emp_id='".$resval['e_id']."' and name='ALLOWANCE'");
	 if(!empty($daqry))
	 {
	 $daamtqry=$db->fetchQuery("Select amount from payroll_benifits_deductions where name='ALLOWANCE'");
	 $daamt=$daamtqry[0]['amount'];
	 }
	 else
	 {
	 $daamt=0;
	 }
	 
	 $pfqry = $db->fetchQuery("Select * from payroll_benifits_deductions where emp_id='".$resval['e_id']."' and name='PF'");
	 if(!empty($pfqry))
	 {
	 $pfamtqry=$db->fetchQuery("Select amount from payroll_benifits_deductions where name='PF'");
	 $pfamt=$pfamtqry[0]['amount'];
	 }
	 else
	 {
	 $pfamt=0;
	 }
	 
	 $esiqry = $db->fetchQuery("Select * from payroll_benifits_deductions where emp_id='".$resval['e_id']."' and name='ESI'");
	 if(!empty($esiqry))
	 {
	 
	 $esiamtqry=$db->fetchQuery("Select amount from payroll_benifits_deductions where name='ESI'");
	 $esiamt=$esiamtqry[0]['amount'];
	 }
	 else
	 {
	 $esiamt=0;
	 }
	 /*$hraqry = $db->fetchQuery("Select * from payroll_user_deductions where employee_id='".$resval['e_id']."' and deduction_id=28");
	 if(!empty($hraqry))
	 {
	 $hraamtqry=$db->fetchQuery("Select amount from payroll_benifits_deductions where id=28");
	 $hraamt=$hraamtqry[0]['amount'];
	 }
	 else
	 {
	 $hraamt=0;
	 }
	 $othrdedqry = $db->fetchQuery("Select deduction_id from payroll_user_deductions where employee_id='".$resval['e_id']."' and deduction_id!=28 and deduction_id!=27 and deduction_id!=13");
	 if(!empty($othrdedqry))
	 {$othrdedamt=0;
	 foreach($othrdedqry as $othrdedqrys)
	 {
	 $othrdedamtqry=$db->fetchQuery("Select amount from payroll_benifits_deductions where id='".$othrdedqrys['deduction_id']."' and deduction_benefit=1");
	 $othrdedamt=$othrdedamt+$othrdedamtqry[0]['amount'];
	 }
	 
	 }
	 else
	 {
	 $othrdedamt=0;
	 }*/
	 
      $wagesview .='<tr>
        <td align="left" valign="top" class="display-border-1">'.$i.'</td>
        <td align="left" valign="top" class="display-border-1">'.$resval['e_fname'].' '.$resval['e_lname'].'</td>
        <td align="left" valign="top" class="display-border-1">'.$resval['e_mname'].'</td>
        <td align="left" valign="top" class="display-border-1">'.$resval['desig_name'].'</td>
        
        <td align="left" valign="top" class="display-border-1">'.$resval['dtl_basic'].'</td>
        <td align="left" valign="top" class="display-border-1">'.$resval['dtl_da'].'</td>
        <td align="left" valign="top" class="display-border-1">'.$resval['worked_days'].'</td>
        <td align="left" valign="top" class="display-border-1">'.($resval['dtl_basic']+$resval['dtl_allowance']+$resval['dtl_incentive']).'</td>
        <td align="left" valign="top" class="display-border-1">'.$resval['dtl_pf'].'</td>
        <td align="left" valign="top" class="display-border-1">'.$resval['dtl_esi'].'</td>
        
        <td align="left" valign="top" class="display-border-1">'.$resval['dtl_hra'].'</td>
        <td align="left" valign="top" class="display-border-1">'.round($resval['leave_deduction'],2).'</td>
        <td align="left" valign="top" class="display-border-1">'.round($resval['total_deduction'],2).'</td>
        <td align="left" valign="top" class="display-border-1">'.round($resval['total_paid'],2).'</td>
        <td align="left" valign="top" class="display-border-1">'.date('d-m-Y',strtotime($resval['payment_date'])).'</td>
        <td align="left" valign="top" class="display-border-1">&nbsp;</td>
      </tr>';
	  $i++;
      }

    $wagesview .='</table></td>
  </tr>
  <tr>
    <td height="70">&nbsp;</td>
  </tr>
</table>



</div>


</div>
<!-- /employee-col-02 -->

<div class="clear-float"></div>
</div><!--/employee-tabcells-->

<div class="clear-float"></div>
</div><!-- /report-tab -->

<div class="clear-float"></div>
</div>';
$_SESSION['download_wageregister_view']=$wagesview;
echo $wagesview;

?>					
					
				</div>
					
					<div class="clear-float"></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">
			$(document).ready(function() {
				$('#tablelist').hide();	
				});
		function list_employees(v)
		{			
			if(v=="all"){
			$('#tablelist').hide();	
			}else{
				$('#tablelist').show();	
			}
		}
		
		$('#from_date').datepicker({dateFormat:"dd-mm-yy"});
		$('#to_date').datepicker({dateFormat:"dd-mm-yy"});
		
		
		function employeewageregister(){
	var $this = $(this);
	var dataString = $('.pdtWageSearchForm').serialize();
	
	var pagenum=1;
	var URLHR = 'http://localhost/hrm/';
	$('#busy').show();
	$.get(URLHR + "register-wages.php?act=wageRequests&"+dataString,function(data){
																		
			$("body").html(data);
	});
	
}

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