X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=blobdiff_plain;f=yarrg%2Fweb%2Fquery_route;h=ed9fa4406c70ba1fd7aaaaad7dab4fe02f89a50e;hp=393e7a668755145d05262a56b56ed005330669c1;hb=03d941b69511108bea1a2a20486f36e55c94d848;hpb=017f4432a9bb472f61ab94c10b775e64d86ca391 diff --git a/yarrg/web/query_route b/yarrg/web/query_route index 393e7a6..ed9fa44 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_mass,$max_volume) = @_; + } + &> + size=40 +&> + + | + + + + | +Expected losses: + +<&| qtextstring, qa => $qa, dbh => $dbh, prefix => 'll', + thingstring => 'lossperleague', emsgstore => \$emsg, + perresult => sub { ($lossperleaguepct)= @_; } + &> + size=10 +&> + + |