X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.web-live.git;a=blobdiff_plain;f=yarrg%2Fweb%2Fquery_route;h=9a6ca0829114c622552209991c1fb6e1901094f4;hp=393e7a668755145d05262a56b56ed005330669c1;hb=4c6a28f4cbed2ed351697f63f30fb4827259f6a9;hpb=38888dbd9221f97b1886ee545d0113c88432556a diff --git a/yarrg/web/query_route b/yarrg/web/query_route index 393e7a6..9a6ca08 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,40 @@ 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, + helpref => 'capacity', + perresult => sub { + ($max_mass,$max_volume) = @_; + } + &> + size=40 +&> + + | + + + + | +Expected losses: + +<&| qtextstring, qa => $qa, dbh => $dbh, prefix => 'll', + thingstring => 'lossperleague', emsgstore => \$emsg, + helpref => 'losses', + perresult => sub { ($lossperleaguepct)= @_; } + &> + size=9 +&> + + |