[SPIP] +2.1.12
[velocampus/web/www.git] / www / ecrire / exec / menu_agenda.php
diff --git a/www/ecrire/exec/menu_agenda.php b/www/ecrire/exec/menu_agenda.php
new file mode 100644 (file)
index 0000000..9789895
--- /dev/null
@@ -0,0 +1,37 @@
+<?php
+
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2011                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+if (!defined('_ECRIRE_INC_VERSION')) return;
+
+include_spip('inc/presentation');
+
+// http://doc.spip.org/@exec_menu_agenda_dist
+function exec_menu_agenda_dist() {
+
+       list($evtm, $evtt, $evtr) = http_calendrier_messages(date("Y"), date("m"), date("d"));
+
+       $ret = "<table><tr>"
+               . "<td style='width: 200px; vertical-align: top;' >"
+               . "<div>"
+               . $evtm
+               . "</div>"
+               . "</td>"
+               .  (!$evtt ? '' :
+                       ( "<td style='width: 10px; vertical-align: top'> &nbsp; </td>"
+                       . "<td style='width: 200px; color: black; vertical-align: top'>"
+                       . "<div>&nbsp;</div>$evtt</td>"))
+                 . "</tr></table>";
+
+       ajax_retour($ret);
+}
+
+?>