commit 44a0800b48c048713293efdac998eaf6730ec613 Author: gruinelli Date: Sun Mar 17 17:18:17 2024 +0000 Dateien nach "/" hochladen diff --git a/logo_small.png b/logo_small.png new file mode 100644 index 0000000..48084f8 Binary files /dev/null and b/logo_small.png differ diff --git a/month.php b/month.php new file mode 100644 index 0000000..66c3df7 --- /dev/null +++ b/month.php @@ -0,0 +1,153 @@ + + + + +     Programm
+www.kirche-neuwies.ch +

+ +eventsFromInterval('2 week'); +// $events = $ical->eventsFromRange("23.04.2017 00:00 T", "30.04.2017 23:59 T"); + $events = $ical->eventsFromRange($startDateIcs, $endDateIcs); + + + $prev_dtstart = new \DateTime('@' . (int) $ical->iCalDateToUnixTimestamp(0)); + $printdate = false; + foreach ($events as $event){ + $dtstart = new \DateTime('@' . (int) $ical->iCalDateToUnixTimestamp($event->dtstart_tz)); + + $description = $event->description; + + if($description != ""){ + $description = str_replace("Kalender:Extern & Info", "", $description); + $description = str_replace("Kalender:Hauptveranstaltungen - ", "", $description); + $description = str_replace("Kalender:Hauptveranstaltungen", "", $description); + $description = str_replace("Kalender:Weitere Veranstaltung", "", $description); + + $description = preg_replace('/^ - /', '', $description); //Remove " - " if at beginning of line + $description = preg_replace('/^- /', '', $description); //Remove " - " if at beginning of line + } + + if(trim($description) == trim($event->summary)){ + //Ignore description as it is identically to summary + $description = ""; + } + + if($dtstart->format('N') == 7){ //sunday => bold, gray + $isSunday = true; + } + else{ + $isSunday = false; + } + + if($dtstart->format('d.m') != $prev_dtstart->format('d.m')){ //new date => show weekday + $isNewDay = true; + } + else{ + $isNewDay = false; + } + + if($dtstart->format('H:i') == "00:00"){ //full day event + $isFullDayEvent = true; + } + else{ + $isFullDayEvent = false; + } + +?> + > + format('d.m.Y')); +// if(strcmp($a1, $a2) == 0){ // its the printing date, show a "heute" instead of the date +// if($printdate == false){ // its the printing date, show a "heute" instead of the date +// $printdate = true; +// // echo(""); +// echo(""); +// } +// else{ + ?> + + + + + + + + +
HeuteHeute + bold + echo(""); + } + if($isNewDay){ //new date => show weekday + echo($weekdays[$dtstart->format('N') - 1]); + } + if($isSunday){ //Sunday => bold + echo(""); + } + if($description != ""){ //make sure the column has the same numbe rof lines in Word as the next column + echo("
 "); + } +?> +
+ bold + echo(""); + } + if($isNewDay){ //new date => show date + echo($dtstart->format('d.m.')); + } + if($isSunday){ //Sunday => bold + echo(""); + } + if($description != ""){ //make sure the column has the same numbe rof lines in Word as the next column + echo("
 "); + } +?> +
+ bold + echo(""); + } + if(!$isFullDayEvent){ //not full day event => show time + echo($dtstart->format('H:i')); + } + if($isSunday){ //Sunday => bold + echo(""); + } + if($description != ""){ //make sure the column has the same numbe rof lines in Word as the next column + echo("
 "); + } +?> +
+ bold + echo(""); + } + echo($event->summary); + if($isSunday){ //Sunday => bold + echo(""); + } + if($description != ""){ + echo("
"); + echo($description); + echo(""); + } +?> +
diff --git a/style.css b/style.css new file mode 100644 index 0000000..f4c9c1b --- /dev/null +++ b/style.css @@ -0,0 +1,88 @@ +/* -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +Copyright 2017 by George Ruinelli +Licence: GPL +Last Change: 13.10.2017 +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ + +body { + background-image: url("wallpaper.jpg"); +/* background-color: #cccccc; */ + + + /* Center and scale the image nicely */ + background-position: center; + background-repeat: no-repeat; + background-size: cover; + + display: block; + position: relative; + margin: 0 auto; + z-index: 0; +} + + + + body{ + font-family: Arial; + padding:10px +} + +span{ + font-family: Arial; +} + + +table { + border-collapse: separate; + border-spacing: 0px; +} + +td{ + padding-left: 2px; + padding-top: 2px; + padding-bottom: 2px; + padding-right: 2px; +} + + + +button,.button, input[type=submit] { + background: #3498db; + background-image: -webkit-linear-gradient(top, #3498db, #2980b9); + background-image: -moz-linear-gradient(top, #3498db, #2980b9); + background-image: -ms-linear-gradient(top, #3498db, #2980b9); + background-image: -o-linear-gradient(top, #3498db, #2980b9); + background-image: linear-gradient(to bottom, #3498db, #2980b9); + -webkit-border-radius: 10; + -moz-border-radius: 10; + border-radius: 10px; + font-family: Arial; + color: #ffffff; + font-size: 100%; + padding: 10px 20px 10px 20px; + text-decoration: none; + + height: 40px; +} + +button:hover, input[type=submit]]:hover { + background: #3cb0fd; + background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db); + background-image: -moz-linear-gradient(top, #3cb0fd, #3498db); + background-image: -ms-linear-gradient(top, #3cb0fd, #3498db); + background-image: -o-linear-gradient(top, #3cb0fd, #3498db); + background-image: linear-gradient(to bottom, #3cb0fd, #3498db); + text-decoration: none; +} + + +.content { +/* opacity: 0.7; */ + background-color: #FFFFFF; + + background: rgb(255, 255, 255); /* Fallback for older browsers without RGBA-support */ + background: rgba(255, 255, 255, 0.5); + margin: 5px; + width: 700px; + padding: 5px; +} diff --git a/wallpaper.jpg b/wallpaper.jpg new file mode 100644 index 0000000..271ec4a Binary files /dev/null and b/wallpaper.jpg differ diff --git a/week.php b/week.php new file mode 100644 index 0000000..da7df76 --- /dev/null +++ b/week.php @@ -0,0 +1,151 @@ + + + + + + +eventsFromInterval('2 week'); +// $events = $ical->eventsFromRange("23.04.2017 00:00 T", "30.04.2017 23:59 T"); + $events = $ical->eventsFromRange($startDateIcs, $endDateIcs); + + + $prev_dtstart = new \DateTime('@' . (int) $ical->iCalDateToUnixTimestamp(0)); + $printdate = false; + foreach ($events as $event){ + $dtstart = new \DateTime('@' . (int) $ical->iCalDateToUnixTimestamp($event->dtstart_tz)); + + $description = $event->description; + + if($description != ""){ + $description = str_replace("Kalender:Extern & Info", "", $description); + $description = str_replace("Kalender:Hauptveranstaltungen - ", "", $description); + $description = str_replace("Kalender:Hauptveranstaltungen", "", $description); + $description = str_replace("Kalender:Weitere Veranstaltung", "", $description); + + $description = preg_replace('/^ - /', '', $description); //Remove " - " if at beginning of line + $description = preg_replace('/^- /', '', $description); //Remove " - " if at beginning of line + } + + if(trim($description) == trim($event->summary)){ + //Ignore description as it is identically to summary + $description = ""; + } + + if($dtstart->format('N') == 7){ //sunday => bold, gray + $isSunday = true; + } + else{ + $isSunday = false; + } + + if($dtstart->format('d.m') != $prev_dtstart->format('d.m')){ //new date => show weekday + $isNewDay = true; + } + else{ + $isNewDay = false; + } + + if($dtstart->format('H:i') == "00:00"){ //full day event + $isFullDayEvent = true; + } + else{ + $isFullDayEvent = false; + } + +?> + > + format('d.m.Y')); +// if(strcmp($a1, $a2) == 0){ // its the printing date, show a "heute" instead of the date + if($printdate == false){ // its the printing date, show a "heute" instead of the date + $printdate = true; +// echo(""); + echo(""); + } + else{ + ?> + + + + + + + + +
HeuteHeute + bold + echo(""); + } + if($isNewDay){ //new date => show weekday + echo($weekdays[$dtstart->format('N') - 1]); + } + if($isSunday){ //Sunday => bold + echo(""); + } + if($description != ""){ //make sure the column has the same number of lines in Word as the next column + echo("
 "); + } +?> +
+ bold + echo(""); + } + if($isNewDay){ //new date => show date + echo($dtstart->format('d.m.')); + } + if($isSunday){ //Sunday => bold + echo(""); + } + if($description != ""){ //make sure the column has the same number of lines in Word as the next column + echo("
 "); + } +?> +
+ bold + echo(""); + } + if(!$isFullDayEvent){ //not full day event => show time + echo($dtstart->format('H:i')); + } + if($isSunday){ //Sunday => bold + echo(""); + } + if($description != ""){ //make sure the column has the same number of lines in Word as the next column + echo("
 "); + } +?> +
+ bold + echo(""); + } + echo($event->summary); + if($isSunday){ //Sunday => bold + echo(""); + } + if($description != ""){ + echo("
"); + echo($description); + echo(""); + } +?> +