[Devel] r221 - trunk

svn at agendadulibre.org svn at agendadulibre.org
Dim 14 Jan 19:57:22 CET 2007


Author: thomas
Date: Sun Jan 14 19:57:22 2007
New Revision: 221

Modified:
   trunk/calendar.css
   trunk/funcs.inc.php

Log:
Quelques corrections de XHTML.

Proposition d'Erwan <air1 at imaginair.net>



Modified: trunk/calendar.css
==============================================================================
--- trunk/calendar.css	(original)
+++ trunk/calendar.css	Sun Jan 14 19:57:22 2007
@@ -94,6 +94,16 @@
 	text-align: center;
 }
 
+/* Selection region */
+form.calendar p {
+	margin-bottom: 20px;
+	text-align: center;
+}
+
+form.calendar select {
+	border: 1px solid #AAAAAA;
+}
+
 a:link, a:visited {
 	font-weight: bold;
 	text-decoration: none;

Modified: trunk/funcs.inc.php
==============================================================================
--- trunk/funcs.inc.php	(original)
+++ trunk/funcs.inc.php	Sun Jan 14 19:57:22 2007
@@ -373,7 +373,9 @@
   if (has_event_in_future($db, $next_month, $next_year, $region))
     echo " <a href=\"?year=".$next_year."&amp;month=".$next_month."&amp;region=".$region."\"> &gt;&gt; </a>\n";
 
-  echo "<form>\n";
+  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=" .
     $month . "&amp;region=' + this.options[this.selectedIndex].value\">\n";
 
@@ -391,17 +393,15 @@
     {
       if ($row->id == $region)
 	echo
-	  "<option value=\"" . $row->id . "\" selected=\"1\">" . $row->name . "</option>\n";
+	  "<option value=\"" . $row->id . "\" selected=\"selected\">" . $row->name . "</option>\n";
       else
 	echo
 	  "<option value=\"" . $row->id . "\">" . $row->name . "</option>\n";
     }
 
-  echo "</select>";
+  echo "</select></p>";
   echo "</form>";
 
-  echo "</h2>\n\n";
-
   /*
    * Display the calendar
    */


Plus d'informations sur la liste de diffusion Devel