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


function get_holiday_time($date)
{  
	$sql = "SELECT holiday_time_code FROM ".TB_PREF."holidays 
		WHERE holiday_date =".db_escape($date);
	
	$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);		
}


?>