X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Fquery_route;h=be1196e899ab3fa8e99c8c9b975a59b4ff6ebc10;hb=64bc4a3add1caac7692268a7fe0889e024bbd487;hp=66dee1dd08135de011871b15d71d963f7db235af;hpb=72587d0d7358ca77ecd0ede859abba7f89b1d9d2;p=ypp-sc-tools.db-live.git
diff --git a/yarrg/web/query_route b/yarrg/web/query_route
index 66dee1d..be1196e 100644
--- a/yarrg/web/query_route
+++ b/yarrg/web/query_route
@@ -35,6 +35,8 @@
%doc>
<%args>
$quri
+$dbh
+$prselector
$routestring => '';
$someresults
$emsgokorprint
@@ -49,17 +51,20 @@ my %islandid2;
my $qa= \%ARGS;
%perl>
+
Specify route
+
+% $prselector->('ShowStalls');
+
%#---------- textbox, user enters route as string ----------
% if (!$qa->{Dropdowns}) {
-Specify route
-
Enter route (islands, or archipelagoes, separated by |s or commas;
abbreviations are OK):
<%perl>
#========== results ==========
@@ -205,6 +205,12 @@ for my $dd (0..$qa->{Dropdowns}-1) {
%perl>
% if (@islandids) {
-% $someresults->();
-<& routetrade, islandids => \@islandids, archipelagoes => \@archipelagoes &>
+% $someresults->('Relevant trades');
+<& routetrade,
+ dbh => $dbh,
+ islandids => \@islandids,
+ archipelagoes => \@archipelagoes,
+ qa => $qa
+ &>
+
% }