Location: PHPKode > projects > NewsP > admin/kalender/x_kalender.php
<?php
$kw = date("W");
$kw = "Week: $kw";
$datum = date("j");
$jahr = date("Y");

$tag_az = date("l");
$mon_az = date("F");
$tagnummer = date("w"); // Tag ermitteln
$monatsnummer = date("n");


if ($tagnummer == 0 ) 
{ 
$fontcolor = "ff0000";
}else{
$fontcolor = "000000";
}


##########################################
if (($monatsnummer == "1" && $datum == "8") || ($monatsnummer == "8" && $datum == "16"))
{$kw = "<A style=\"font-weight:100; font-size: 7pt; font-family:Arial, Helvetica, sans-serif; line-height: 9px; width: 80px;\" HREF=\"http://de.wikipedia.org/wiki/Elvis_Presley\" TARGET=\"_blank\">Elvis Presley</A>";}
if (($monatsnummer == "1" && $datum == "27") || ($monatsnummer == "12" && $datum == "5"))
{$kw = "<A style=\"font-weight:100; font-size: 7pt; font-family:Arial, Helvetica, sans-serif; line-height: 9px; width: 80px;\" HREF=\"http://de.wikipedia.org/wiki/Wolfgang_Amadeus_Mozart\" TARGET=\"_blank\">Amadeus Mozart</A>";}
if (($monatsnummer == "2" && $datum == "8") || ($monatsnummer == "9" && $datum == "30"))
{$kw = "<A style=\"font-weight:100; font-size: 7pt; font-family:Arial, Helvetica, sans-serif; line-height: 9px; width: 80px;\" HREF=\"http://de.wikipedia.org/wiki/James_Dean\" TARGET=\"_blank\">James Dean</A>";}
if (($monatsnummer == "5" && $datum == "13") || ($monatsnummer == "11" && $datum == "24"))
{$kw = "<A style=\"font-weight:100; font-size: 7pt; font-family:Arial, Helvetica, sans-serif; line-height: 9px; width: 80px;\" HREF=\"http://de.wikipedia.org/wiki/melanie_Thornton\" TARGET=\"_blank\">Melanie Thornton</A>";}
if (($monatsnummer == "6" && $datum == "1") || ($monatsnummer == "8" && $datum == "5"))
{$kw = "<A style=\"font-weight:100; font-size: 7pt; font-family:Arial, Helvetica, sans-serif; line-height: 9px; width: 80px;\" HREF=\"http://de.wikipedia.org/wiki/Marilyn_Monroe\" TARGET=\"_blank\">Marilyn Monroe</A>";}
if (($monatsnummer == "6" && $datum == "1") || ($monatsnummer == "8" && $datum == "31"))
{$kw = "<A style=\"font-weight:100; font-size: 7pt; font-family:Arial, Helvetica, sans-serif; line-height: 9px; width: 80px;\" HREF=\"http://de.wikipedia.org/wiki/Prinzessin_Diana\" TARGET=\"_blank\">Prinzessin Diana</A>";}
if (($monatsnummer == "8" && $datum == "11") || ($monatsnummer == "1" && $datum == "4"))
{$kw = "<A style=\"font-weight:100; font-size: 7pt; font-family:Arial, Helvetica, sans-serif; line-height: 9px; width: 80px;\" HREF=\"http://de.wikipedia.org/wiki/Diether_Krebs\" TARGET=\"_blank\">Dieter Krebs</A>";}
if (($monatsnummer == "8" && $datum == "29") || ($monatsnummer == "6" && $datum == "25"))
{$kw = "<A style=\"font-weight:100; font-size: 7pt; font-family:Arial, Helvetica, sans-serif; line-height: 9px; width: 80px;\" HREF=\"http://de.wikipedia.org/wiki/Michael_Jackson\" TARGET=\"_blank\">Michael Jackson</A>";}
if (($monatsnummer == "9" && $datum == "7") || ($monatsnummer == "2" && $datum == "3"))
{$kw = "<A style=\"font-weight:100; font-size: 7pt; font-family:Arial, Helvetica, sans-serif; line-height: 9px; width: 80px;\" HREF=\"http://de.wikipedia.org/wiki/Buddy_Holly\" TARGET=\"_blank\">Buddy Holly</A>";}
if (($monatsnummer == "9" && $datum == "17") || ($monatsnummer == "1" && $datum == "15"))
{$kw = "<A style=\"font-weight:100; font-size: 7pt; font-family:Arial, Helvetica, sans-serif; line-height: 9px; width: 80px;\" HREF=\"http://de.wikipedia.org/wiki/Robert_Lembke\" TARGET=\"_blank\">Robert Lembke</A>";}
if (($monatsnummer == "12" && $datum == "8") || ($monatsnummer == "7" && $datum == "3"))
{$kw = "<A style=\"font-weight:100; font-size: 7pt; font-family:Arial, Helvetica, sans-serif; line-height: 9px; width: 80px;\" HREF=\"http://de.wikipedia.org/wiki/Jim_Morrison\" TARGET=\"_blank\">Jim Morrison</A>";}
if (($monatsnummer == "12" && $datum == "19") || ($monatsnummer == "7" && $datum == "7"))
{$kw = "<A style=\"font-weight:100; font-size: 7pt; font-family:Arial, Helvetica, sans-serif; line-height: 9px; width: 80px;\" HREF=\"http://de.wikipedia.org/wiki/Rudi_Carrell\" TARGET=\"_blank\">Rudi Carrell</A>";}
if (($monatsnummer == "11" && $datum == "28") || ($monatsnummer == "2" && $datum == "8"))
{$kw = "<A style=\"font-weight:100; font-size: 7pt; font-family:Arial, Helvetica, sans-serif; line-height: 9px; width: 80px;\" HREF=\"http://de.wikipedia.org/wiki/Anna_Nicole_Smith\" TARGET=\"_blank\">Anna Nicole Smith</A>";}

if ($monatsnummer == "12" && $datum == "24")
{$kw = "Christmas Eve";}
if ($monatsnummer == "12" && $datum == "31")
{$kw = "New Year's Eve";}
### Feiertage ################################
if ($monatsnummer == "12" && $datum == "25")
{$kw = "Christmas Day";
$fontcolor = "ff0000";}
if ($monatsnummer == "12" && $datum == "26")
{$kw = "Boxing Day";
$fontcolor = "ff0000";}
if ($monatsnummer == "1" && $datum == "1")
{$kw = "New Year's Day";
$fontcolor = "ff0000";}
if ($monatsnummer == "1" && $datum == "6")
{$kw = "	Twelfth Day";
$fontcolor = "c0c0c0";}
if ($monatsnummer == "5" && $datum == "1")
{$kw = "Labor Day";
$fontcolor = "ff0000";}
if ($monatsnummer == "10" && $datum == "3")
{$kw = "German union";
$fontcolor = "ff0000";}
###########################
if ($monatsnummer == "10" && $datum == "31")
{$kw = "Halloween";}
if ($monatsnummer == "11" && $datum == "1")
{$kw = "Allhallows";
$fontcolor = "c0c0c0";}
###############################################


if ($monatsnummer == 12 ) 
{ 
$blatt = "kalender/kalender_dez.jpg";
}else{
$blatt = "kalender/kalender.jpg";
}


echo "<P><TABLE  border=0 height=128><TR><TD width=24></TD><TD background=\"$blatt\" width=87><CENTER><P><span style=\"font-weight:100; font-size: 8pt; font-family:Arial, Helvetica, sans-serif; line-height: 14px\"><FONT COLOR=\"#$fontcolor\">$tag_az</FONT></span><BR>";
echo "<span style=\"font-weight:900; font-size:46pt; font-family:Arial, Helvetica, sans-serif; line-height: 55px\"><FONT COLOR=\"#$fontcolor\">$datum</FONT></span><BR>";
echo "<span style=\"font-weight:100; font-size: 8pt; font-family:Arial, Helvetica, sans-serif; line-height: 14px\"><FONT COLOR=\"#$fontcolor\">$mon_az $jahr<BR></FONT></span>";
echo "<span style=\"font-weight:100; font-size: 7pt; font-family:Arial, Helvetica, sans-serif; line-height: 14px\"><FONT COLOR=\"#$fontcolor\"><I>$kw</I></span></CENTER> </TD></TR></TABLE><P>";
?>


Return current item: NewsP