|

| |
$file="/home/busin/public_html/allholidays/".$land."-holiday.csv";
//$file=$land."-holiday.csv";
$row = 1;
$i=0;
$handle = fopen($file, "r");
while (($data = fgetcsv($handle, 1000, ";")) !== FALSE) {
$num = count($data);
$row++;
for ($j=0; $j < $num; $j++) {
// echo $data[$j];
$cor[$i]=explode(",",$data[$j]);
$cor[$i][0]=$cor[$i][0];
if ($i==0) echo "".$cor[$i][0]." | ";
$md=explode("-",$cor[$i][1]);
$da=mktime(0,0,0,$cor[$i][2],$md[0],$cor[$i][0]);
$mon=strftime("%b",$da);
if (count($md)>1){
$day=" ";
} else {
$day=strftime("%a",$da);
}
$cor[$i][1]=str_replace(" ","",$cor[$i][1]);
if ($cor[$i][2]==1 and $amon==12) break;
echo "".$day." | ".$cor[$i][1]." | ".$mon." | ".$cor[$i][$ln]." | ";
$amon=$cor[$i][2];
$ad[]=date("Ymd",$da);
}
$i++;
}
echo " | ";
for($i=0;$i".$cor[$i][0]." | ";
$md=explode("-",$cor[$i][1]);
if ($cor[$i][2]>1) break;
$da=mktime(0,0,0,$cor[$i][2],$md[0],$cor[$i][0]);
$ad[]=date("Ymd",$da);
$mon=strftime("%b",$da);
if (count($md)>1){
$day=" ";
} else {
$day=strftime("%a",$da);
}
$cor[$i][1]=str_replace(" ","",$cor[$i][1]);
echo "".$day." | ".$cor[$i][1]." | ".$mon." | ".$cor[$i][$ln]." | ";
}
// Ostern
$easterDate = easter_date($cor[$i][0]);
$easterDay = date('j', $easterDate);
$easterMonth = date('n', $easterDate);
$easterYear = date('Y', $easterDate);
$ostern = mktime(0, 0, 0, $easterMonth, $easterDay - 2, $easterYear);
$ad[]=date("Ymd",$ostern);
$mon=strftime("%b",$ostern);
$day=strftime("%a",$ostern);
$tag=date("d",$ostern);
$gf=array("","","","Good Friday","Karfreitag","Vendredi Saint","Viernes Santo","Venerdì Santo");
echo "".$day." | ".$tag." | ".$mon." | ".$gf[$ln]." | ";
?>
|
© 2025 busschedule.in - Todos os direitos reservados. - Mapa do Site
|
|
|
|