X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Fquery_route;h=ea483578d565d6df529dffcfddf7d1c6a5c1e9cf;hb=6335baf49c849e16ae7845016d97bcb76d4b7cf6;hp=393e7a668755145d05262a56b56ed005330669c1;hpb=017f4432a9bb472f61ab94c10b775e64d86ca391;p=ypp-sc-tools.main.git diff --git a/yarrg/web/query_route b/yarrg/web/query_route index 393e7a6..ea48357 100644 --- a/yarrg/web/query_route +++ b/yarrg/web/query_route @@ -38,6 +38,8 @@ $quri $dbh $prselector $routestring => ''; +$capacitystring => ''; +$lossperleague => ''; $someresults $emsgokorprint %args> @@ -47,6 +49,8 @@ my $emsg; my @archipelagoes; my @islandids; my %islandid2; +my ($max_volume, $max_mass); +my $lossperleaguepct; my $qa= \%ARGS; @@ -84,6 +88,38 @@ Enter route (islands, or archipelagoes, separated by |s or commas; size=80 &> +Advanced options - you may leave these blank: +
+
+ +Vessel or capacity: +<&| qtextstring, qa => $qa, dbh => $dbh, prefix => 'cs', + thingstring => 'capacitystring', emsgstore => \$emsg, + perresult => sub { + ($max_volume,$max_mass) = @_; + } + &> + size=30 +&> + + | + + + + | +Expected losses: + +<&| qtextstring, qa => $qa, dbh => $dbh, prefix => 'll', + thingstring => 'lossperleague', emsgstore => \$emsg, + perresult => sub { ($lossperleaguepct)= @_; } + &> + size=10 +&> + + |