<?php
/**********************************************************************
***********************************************************************/


function get_employee_list($salary_component_id)
{  
	$sql = " SELECT em.first_name,middle_name,last_name,
                            sc.employee_code
                            FROM ".TB_PREF."employee_master em 
                        INNER JOIN ".TB_PREF."salary_components sc ON
                            sc.employee_code = em.employee_code AND
                            sc.type = 'E' AND
                            sc.salary_component_id = ".db_escape($salary_component_id)."
                                
            ";
	$result = db_query($sql,"Could not retrieve holida time code");	
        
        return $result;
}


//function get_working_time($day_name)
//{
//	$sql = "SELECT ".strtolower($day_name)." FROM ".TB_PREF."working_week";
//	
//	$result = db_query($sql,"Could not retrieve working time code");	
//        
//        return db_fetch($result);		
//}


?>