--- search/Search.cgi 2002/06/13 17:01:56 1.1 +++ search/Search.cgi 2002/06/15 17:37:32 1.2 @@ -191,6 +191,7 @@ 'mailer-application','/usr/lib/sendmail', 'server-log','mps.log', 'output-colums','yes', + 'show-nr-colums',3, # 'show-past-date-list','yes', 'database-for-SearchFieldDescriptions','ps', ); @@ -3131,7 +3132,7 @@ $Flag = 0; - print("\n"); + print("
\n"); my @html_database; @@ -3150,12 +3151,15 @@ if ($main::ConfigurationData{'output-colums'}) { # create database names in columns - my $max = $#html_database+1 ; + my $cols = $main::ConfigurationData{'show-nr-colums'}; + my $next = int($#html_database/$cols) ; - my $j=0; - for(my $i=0; $i < $max ; $i=$i+2) { - print("",$html_database[$j],$html_database[$j+int($max/2)],""); - $j++; + for(my $i=0; $i <= $next ; $i++) { + print(""); + for(my $j=0; $j <= $cols; $j++) { + print($html_database[$i+$next*$j+$j]); + } + print(""); } } else {