Accéder au contenu.
Menu Sympa

devel - [Devel] r90 - trunk

Objet : devel-adl

Archives de la liste

[Devel] r90 - trunk


Chronologique Discussions 
  • From: thomas AT lolut.utbm.info
  • To: devel AT agendadulibre.org
  • Subject: [Devel] r90 - trunk
  • Date: Sat, 17 Sep 2005 17:45:16 +0200 (CEST)
  • List-archive: <http://lolut.utbm.info/pipermail/devel>
  • List-id: Developpement de l'Agenda du Libre <devel.agendadulibre.org>

Author: thomas
Date: 2005-09-17 17:45:15 +0200 (Sat, 17 Sep 2005)
New Revision: 90

Added:
trunk/icallist.php
Log:

Ajout de la liste des calendriers iCal.



Added: trunk/icallist.php
===================================================================
--- trunk/icallist.php 2005-09-17 15:43:13 UTC (rev 89)
+++ trunk/icallist.php 2005-09-17 15:45:15 UTC (rev 90)
@@ -0,0 +1,56 @@
+<?php
+
+/* Copyright 2004
+ * - M�lanie Bats <melanie POINT bats CHEZ utbm POINT fr>
+ * - Thomas Petazzoni <thomas POINT petazzoni CHEZ enix POINT org>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
+include("bd.inc.php");
+include("funcs.inc.php");
+
+$db = new db();
+
+put_header("Agenda du Libre - Calendriers iCal");
+
+echo "<h2>Liste des calendriers iCal</h2>";
+
+$ret = $db->query ("select * from regions");
+
+if ($ret == FALSE)
+{
+ error ("Erreur lors de la recherche des r�gions");
+ put_footer();
+ exit;
+}
+
+echo "<p>Chaque calendrier iCal liste les �v�nements pour les 30 jours �
venir dans une r�gion donn�e. En vous inscrivant au calendrier de votre
r�gion, vous verrez appara�tre les �v�nements de votre r�gion � port�e
locale, ainsi que tous les �v�nements � port�e nationale, comme les
RMLL.</p>";
+
+echo " <ul>\n";
+
+echo " <li><a href=\"ical.php?region=all\">Toutes les
r�gions</a></li>\n\n";
+
+while ($row = mysql_fetch_object($ret))
+{
+ echo " <li><a href=\"ical.php?region=" . $row->id . "\">" . $row->name .
"</a></li>\n";
+}
+
+echo " </ul>\n";
+
+put_footer();
+
+?>
\ No newline at end of file





  • [Devel] r90 - trunk, thomas, 17/09/2005

Archives gérées par MHonArc 2.6.16.

Haut de le page