From 2af4ffce19df7cdb34d4b509a66bc916ffcb88d1 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 3 Feb 2020 09:47:21 +0100 Subject: Initial commit --- list.php | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 list.php (limited to 'list.php') diff --git a/list.php b/list.php new file mode 100644 index 0000000..b942fa6 --- /dev/null +++ b/list.php @@ -0,0 +1,91 @@ + + +
+Export this calendar in iCal format.
+Date(s) | +Location | +Title | +Keywords | +'.date ('D j M Y',strtotime ($event['start_date'])); + if ($event['end_date']!=$event['start_date']) + echo ' to '.date ('j M',strtotime ($event['end_date'])); + echo ' | '; + echo ''.htmlspecialchars ($event['location']).' | '; + echo ''.htmlspecialchars ($event['title']).' | '; + foreach ($event['keywords'] as $i => $kw){ + if (!is_null ($selected_keywords) && !in_array ($kw,$selected_keywords)) + $event['keywords'][$i]=''.htmlspecialchars ($kw).''; + else + $event['keywords'][$i]=htmlspecialchars ($kw); + } + echo ''.implode (', ',$event['keywords']).' | '; + echo ''; +} +?> +
---|