Accéder au contenu.
Menu Sympa

devel - [Devel] r129 - trunk

Objet : devel-adl

Archives de la liste

[Devel] r129 - trunk


Chronologique Discussions 
  • From: thomas AT lolut.utbm.info
  • To: devel AT agendadulibre.org
  • Subject: [Devel] r129 - trunk
  • Date: Sat, 14 Jan 2006 15:25:09 +0100 (CET)
  • List-archive: <http://lolut.utbm.info/pipermail/devel>
  • List-id: Developpement de l'Agenda du Libre <devel.agendadulibre.org>

Author: thomas
Date: 2006-01-14 15:25:08 +0100 (Sat, 14 Jan 2006)
New Revision: 129

Modified:
trunk/map.php
Log:
Affichage du jour de debut et de fin pour les evenements sur plusieurs jours.

Modified: trunk/map.php
===================================================================
--- trunk/map.php 2006-01-14 14:20:32 UTC (rev 128)
+++ trunk/map.php 2006-01-14 14:25:08 UTC (rev 129)
@@ -68,7 +68,13 @@

while ($event = mysql_fetch_object ($events))
{
- echo "<li><i>" . strftime ("%A %d %B", date_mysql2timestamp
($event->start_time)) . "</i> <a href=\"" .
calendar_absolute_url("showevent.php?id=" . $event->id) . "\">" .
$event->title . "</a> � " . $event->city . "</li>";
+ $start_time_str = strftime ("%A %d %B", date_mysql2timestamp
($event->start_time));
+ $end_time_str = strftime ("%A %d %B", date_mysql2timestamp
($event->end_time));
+
+ if ($start_time_str != $end_time_str)
+ echo "<li><i>" . $start_time_str . " au " . $end_time_str .
"</i> <a href=\"" . calendar_absolute_url("showevent.php?id=" . $event->id) .
"\">" . $event->title . "</a> � " . $event->city . "</li>";
+ else
+ echo "<li><i>" . $start_time_str . "</i> <a href=\"" .
calendar_absolute_url("showevent.php?id=" . $event->id) . "\">" .
$event->title . "</a> � " . $event->city . "</li>";
}

echo " </ul>\n";





  • [Devel] r129 - trunk, thomas, 14/01/2006

Archives gérées par MHonArc 2.6.16.

Haut de le page