= strtotime($chk_new_forecast_time)){
$st_day = 0;
}else{
$st_day = -1;
}
$yyyymmdd_str = date("Ymd", time()+(24 * 60 * 60 * $st_day));
$yyyymm_str = date("Ym", time()+(24 * 60 * 60 * $st_day));
$path_str = "./PNG/".$yyyymm_str."/".$yyyymmdd_str."/";
/*
$yyyymmdd_str2 = date("Ymd", time()+(24 * 60 * 60 * -1));
$yyyymm_str2 = date("Ym", time()+(24 * 60 * 60 * -1));
$path_str2 = "./PNG/".$yyyymm_str2."/".$yyyymmdd_str2."/";
*/
$yyyymmdd_str2 = date("Ymd", time()+(24 * 60 * 60 * ($st_day-1)));
$yyyymm_str2 = date("Ym", time()+(24 * 60 * 60 * ($st_day-1)));
$before_path_str = "./PNG/".$yyyymm_str2."/".$yyyymmdd_str2."/";
$today_thai = DateThai($st_day);
$today_eng = DateEng($st_day);
$tmr_thai = DateThai($st_day+1);
$tmr_eng = DateEng($st_day+1);
$D2_thai = DateThai($st_day+2);
$D2_eng = DateEng($st_day+2);
$D3_thai = DateThai($st_day+3);
$D3_eng = DateEng($st_day+3);
$D4_thai = DateThai($st_day+4);
$D4_eng = DateEng($st_day+4);
$D5_thai = DateThai($st_day+5);
$D5_eng = DateEng($st_day+5);
function filepathname($p_path, $p_filename)
{
if (file_exists($p_path.$p_filename)){
return $p_path.$p_filename;
}else{
//return $path_str2."16.fire_sign/fsign_today_".$yyyymmdd_str2.".xls";
return "./images/no_data1.jpg";
}
}
function beforefilepathname($p_path, $p_filename, $p_before_path, $p_before_filename)
{
if (file_exists($p_path.$p_filename)){
return $p_path.$p_filename;
}else{
if (file_exists($p_before_path.$p_before_filename)){
return $p_before_path.$p_before_filename;
}else{
//return $p_before_path."16.fire_sign/fsign_today_".$yyyymmdd_str.".xls";
return "./images/no_data1.jpg";
}
}
}
function filewrf($p_path, $p_filename)
{
if (file_exists($p_path.$p_filename)){
return "***";
}else{
return "";
}
}
//echo "PATH".$path_str."
"$before_path_str."
";
?>