[Devel] r310 - trunk

svn at agendadulibre.org svn at agendadulibre.org
Mar 6 Nov 23:35:41 CET 2007


Author: thomas
Date: Tue Nov  6 23:34:45 2007
New Revision: 310

Log:
Some cleanup in year_calendar() and one_month_calendar() functions.



Modified:
   trunk/funcs.inc.php

Modified: trunk/funcs.inc.php
==============================================================================
--- trunk/funcs.inc.php	(original)
+++ trunk/funcs.inc.php	Tue Nov  6 23:34:45 2007
@@ -394,8 +394,8 @@
 
   echo "</h2>\n\n";
 
-  echo "<form method='get' action='index.php?year=" . $year . "&amp;month=".$month ."' class='calendar'><p>\n";
-  echo "<select onchange=\"window.location='?year=" . $year . "&amp;month=" .
+  echo "<form method='get' class='calendar'>\n";
+  echo "<p><select onchange=\"window.location='?year=" . $year . "&amp;month=" .
     $month . "&amp;region=' + this.options[this.selectedIndex].value\">\n";
 
   $ret = $db->query ("select * from regions");
@@ -445,9 +445,10 @@
   if (has_event_in_future($db, 1, $next_year, $region))
     echo " <a href=\"?year=".$next_year."&amp;region=".$region."\"> &gt;&gt; </a>\n";
 
-  echo "<form>";
+  echo "</h2>\n\n";
 
-  echo "<select onchange=\"window.location='?year=" . $year .
+  echo "<form method='get' class='calendar'>\n";
+  echo "<p><select onchange=\"window.location='?year=" . $year .
     "&amp;region=' + this.options[this.selectedIndex].value\">\n";
 
   $ret = $db->query ("select * from regions");
@@ -470,11 +471,9 @@
 	  "<option value=\"" . $row->id . "\">" . $row->name . "</option>\n";
     }
 
-  echo "</select>";
+  echo "</select></p>";
   echo "</form>";
 
-  echo "</h2>\n\n";
-
   /*
    * Display the calendar over 12 months starting from current one
    */


Plus d'informations sur la liste de diffusion Devel