[Devel] r409 - trunk

svn at agendadulibre.org svn at agendadulibre.org
Mar 2 Déc 21:24:20 CET 2008


Author: thomas
Date: Tue Dec  2 21:24:18 2008
New Revision: 409

Log:
Amélioration cosmétique.


Modified:
   trunk/map.php
   trunk/moderation.php

Modified: trunk/map.php
==============================================================================
--- trunk/map.php	(original)
+++ trunk/map.php	Tue Dec  2 21:24:18 2008
@@ -55,11 +55,24 @@
 
             map.setCenter (lonLat, zoom);
 
+/*
             var newl = new OpenLayers.Layer.GeoRSS('AdL', '" . calendar_absolute_url("rss.php?region=all&map=1&daylimit=0") . "');
             map.addLayer(newl);
 
             var newl = new OpenLayers.Layer.Text('LUGs', {location: '" . calendar_absolute_url("lugtextlist.php") . "'});
             map.addLayer(newl);
+*/
+
+	    var popup = new OpenLayers.Popup('chicken',
+	    new OpenLayers.LonLat(46.8, 1).transform(new OpenLayers.Projection(\"EPSG:4326\"), new OpenLayers.Projection(\"EPSG:900913\")),
+	    new OpenLayers.Size(200, 200),
+	    'plop plop plop',
+	    true);
+	    map.addPopup(popup);
+
+	    var markers = new OpenLayers.Layer.Markers('makers');
+	    map.addLayer(markers);
+	    markers.addMarker(new OpenLayers.Marker(lonLat));
         }
 
     </script>

Modified: trunk/moderation.php
==============================================================================
--- trunk/moderation.php	(original)
+++ trunk/moderation.php	Tue Dec  2 21:24:18 2008
@@ -82,7 +82,13 @@
   echo "<td>" . $date . "</td>\n";
   echo "<td>" . stripslashes($row->city) . "</td>\n";
   echo "<td>" . stripslashes(region_find($db, $row->region)) . "</td>\n";
-  echo "<td>" . $row->waiting_time . " jours</td>\n";
+
+  if ($row->waiting_time == 0)
+      echo "<td>Aujourd'hui</td>\n";
+  else if ($row->waiting_time == 1)
+    echo "<td>Hier</td>\n";
+  else
+    echo "<td>" . $row->waiting_time . " jours</td>\n";
   echo "<td>";
   echo "<a href=\"editevent.php?id=" . $row->id . "\">Éditer</a>&nbsp;-&nbsp;";
   echo "<a href=\"validateevent.php?id=" . $row->id . "\">Valider</a>&nbsp;-&nbsp;";


Plus d'informations sur la liste de diffusion Devel