From cce5e7710295021b41d9aaecc503a60fb99256be Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 4 Oct 2008 10:38:03 +0000 Subject: Initial revision --- forum/utils/calendar.php | 112 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 forum/utils/calendar.php (limited to 'forum/utils/calendar.php') diff --git a/forum/utils/calendar.php b/forum/utils/calendar.php new file mode 100644 index 0000000..1592195 --- /dev/null +++ b/forum/utils/calendar.php @@ -0,0 +1,112 @@ +uid); + $events->add($event); + $events->write(); + notify("calendar", "New calendar entry:\n" . $title . "\n" . date("r", $time) . "\n" . + $description . "\n" . + "http://www.executionroom.com/forum/?mode=calendar&date=" . $time); +} + +if($action=="edit") { + /* + $event = $events->getEvent($eid); + $event->duration += 2000; + $events->write(); + */ +} + +?> +

+[<] +   +[<<] +   + +   +[>>] +   +[>]
+[Today]
+

+\n"; + echo "
\n"; + $t = $date + $day * 24 * 60 * 60; + echo " " . date("l j/n", $t) . "\n"; +?> + [+] +\n"; + + $t = strtotime(date("F j Y", $date + $day * 24 * 60 * 60)); + echo "
4) echo " style=\"background: #311;\""; + echo ">\n"; + + $events->show($t, $t + 24 * 60 * 60); + + echo "
\n"; + echo "
\n"; + + } +} else { +?> + + +\n"; + $t = $date + $day * 24 * 60 * 60; + echo " " . date("l j/n", $t) . "\n"; + echo " \n"; +} +?> + + + 4) echo " style=\"background: #311;\""; + echo ">\n"; +?> + Add +show($t, $t + 24 * 60 * 60); + echo " \n"; +} +?> + +
+ + +
+Title:
+Desription:
+Date: ">
+From-Time:
+To-Time:
+
+ +
+ -- cgit v1.2.3