= $start_ts) && ($user_ts <= $end_ts)); } function check_even_inside($even_list , $search_date){ foreach($even_list as $v){ $res_single_day = false; $res_range = false; $res_ext_range = false; $res_ext_single_day = false; //search programe range if(count($v['program_range']['range'])>0){ $res_range = check_in_range($v['program_range']['range'][0],$v['program_range']['range'][1],$search_date); } //search program single day if($v['program_range']['single_day']==$search_date){ $res_single_day = true; } //search program res if($res_range ||$res_single_day ){ return true; } foreach($v['ext_item'] as $ext_item){ $res_ext_single_day = false; //search programe ext range if(count($ext_item['data_range'])>1){ $res_ext_range = check_in_range($ext_item['data_range'][0],$ext_item['data_range'][1],$search_date); } else{ //search programe ext day if($ext_item['data_range'][0]==$search_date){ $res_ext_single_day = true; } } if($res_ext_range ||$res_ext_single_day ){ return true; } } } return false; } ?> 香港週 Hong Kong Week 2015
|
ENG
|