<?php

/* $Id: SelectCustomer.php 7133 2015-02-07 03:23:51Z daintree $*/

//include('includes/session.inc');
//$Title = _('HRMS');
//include('includes/header.inc');
//include('includes/SQL_CommonFunctions.inc');
//echo '<link href="' . $RootPath . '/css/evergreen2'.'/default.css" rel="stylesheet" type="text/css" media="screen"/>';

      

//check.php  

$connect = mysqli_connect("localhost", "sooggoo", "4Compassion*", "evergreenint"); 
if(isset($_POST["employeeid"]))
	

{
	
	
	


	 $employeeid =  $_POST["employeeid"];

	
	//quickly get calendar ID since calendar ID is only available for already in rostering timehsheet records. What if new person is added to the timesheet. Therefore its better to get this using rosterid.
	$query = "SELECT maternity_leave_available FROM employeemaster  WHERE  employeeid ='".$employeeid."' ";
	$result = mysqli_query($connect, $query);
	$myrow = mysqli_fetch_assoc($result);
	$data = $myrow['maternity_leave_available'];


	
		
		//$data = array($roster,$locationname,$debtorsname);
		
		echo json_encode($data);
		
	  //echo "Already rostered at rosterno-:".$roster." Location-".$locationname."Client Name:".$debtorsname;
  
	
}

mysqli_close($connect);

?>

