Accéder au contenu.
Menu Sympa

devel - [Devel] r271 - trunk

Objet : devel-adl

Archives de la liste

[Devel] r271 - trunk


Chronologique Discussions 
  • From: svn AT agendadulibre.org
  • To: devel AT agendadulibre.org
  • Subject: [Devel] r271 - trunk
  • Date: Sat, 5 May 2007 13:00:10 +0200 (CEST)
  • List-archive: <http://lolut.utbm.info/pipermail/devel>
  • List-id: Developpement de l'Agenda du Libre <devel.agendadulibre.org>

Author: thomas
Date: Sat May 5 13:00:08 2007
New Revision: 271

Log:
Ajout d'un script permettant de récupérer une version texte d'une
liste d'évènements.



Added:
trunk/textlist.php

Added: trunk/textlist.php
==============================================================================
--- (empty file)
+++ trunk/textlist.php Sat May 5 13:00:08 2007
@@ -0,0 +1,30 @@
+<?php
+header("Content-Type: text/plain; charset=utf-8");
+include("bd.inc.php");
+include("funcs.inc.php");
+
+calendar_setlocale();
+
+$db = new db();
+
+echo "===============================================================\n";
+$events = $db->query ("select * from events where tags like '%" .
$_GET['tag'] . "%' order by start_time");
+while ($event = mysql_fetch_object($events))
+{
+ echo "Titre: " . utf8_encode($event->title) . "\n";
+ echo "Ville: " . utf8_encode($event->city) . "\n";
+ echo "Région: " . utf8_encode(region_find($db, $event->region)) . "\n";
+ echo "Date début: " . utf8_encode(strftime ("%A %d %B %Y %Hh%M",
date_mysql2timestamp($event->start_time))) . "\n";
+ echo "Date fin: " . utf8_encode(strftime ("%A %d %B %Y %Hh%M",
date_mysql2timestamp($event->end_time))) . "\n";
+ echo "Contact: " . utf8_encode(scramble_email($event->contact)) . "\n";
+ echo "URL: " . utf8_encode($event->url) . "\n";
+ echo "URL AdL: " . "http://www.agendadulibre.org/showevent.php?id="; .
$event->id . "\n";
+ echo "Description:\n";
+ if ($_GET["nohtml"])
+ echo wordwrap(utf8_encode(strip_tags($event->description)));
+ else
+ echo wordwrap(utf8_encode($event->description));
+ echo "\n";
+ echo "===============================================================\n";
+}
+?>
\ No newline at end of file




  • [Devel] r271 - trunk, svn, 05/05/2007

Archives gérées par MHonArc 2.6.16.

Haut de le page