Accéder au contenu.
Menu Sympa

devel - [Devel] r310 - trunk

Objet : devel-adl

Archives de la liste

[Devel] r310 - trunk


Chronologique Discussions 
  • From: svn AT agendadulibre.org
  • To: devel AT agendadulibre.org
  • Subject: [Devel] r310 - trunk
  • Date: Tue, 6 Nov 2007 23:35:41 +0100 (CET)
  • List-archive: <http://agendadulibre.org/pipermail/devel>
  • List-id: Developpement de l'Agenda du Libre <devel.agendadulibre.org>

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
*/




  • [Devel] r310 - trunk, svn, 06/11/2007

Archives gérées par MHonArc 2.6.16.

Haut de le page