[Gnucash-changes] Added code to allow the default list to be changed according to a normal

Neil Williams codehelp at cvs.gnucash.org
Mon May 10 06:02:21 EDT 2004


Log Message:
-----------
Added code to allow the default list to be changed according to
a normal a href link when no terms are supplied.
Like this:
<a href="../search/?archive=gnucash-changes">link</a>

Modified Files:
--------------
    mail-search:
        search.php

Revision Data
-------------
Index: search.php
===================================================================
RCS file: /home/cvs/cvsroot/mail-search/search.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -Lsearch.php -Lsearch.php -u -r1.10 -r1.11
--- search.php
+++ search.php
@@ -304,7 +304,12 @@
 <?php
 	reset($lists);
 	while(list($key,$value) = each($lists)) {
-		print "<option value=\"$value\">$value - archive starts in ";
+		if($value == $list) {
+			print "<option value=\"$value\" selected>$value - archive starts in ";
+		}
+		else {
+			print "<option value=\"$value\">$value - archive starts in ";
+		}
 		print gmdate("M Y", $key);
 		print "</option>\n";
 	}


More information about the gnucash-changes mailing list