X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Fquery_route;h=81e91bcca2334c023edefb73060f544ebb77c08c;hb=0759b42dbad7715339b0dceb5e910ea7698fa90a;hp=ee457f57abd41502ad3d54f58385b16638e8ced5;hpb=f3fdcfd6d9e7d88fbc97f9294c302c338d2500b5;p=ypp-sc-tools.db-live.git diff --git a/yarrg/web/query_route b/yarrg/web/query_route index ee457f5..81e91bc 100644 --- a/yarrg/web/query_route +++ b/yarrg/web/query_route @@ -38,6 +38,9 @@ $quri $dbh $prselector $routestring => ''; +$capacitystring => ''; +$lossperleague => ''; +$capitalstring => ''; $someresults $emsgokorprint %args> @@ -47,6 +50,9 @@ my $emsg; my @archipelagoes; my @islandids; my %islandid2; +my ($max_volume, $max_mass); +my $lossperleaguepct; +my $capital; my $qa= \%ARGS; @@ -84,12 +90,59 @@ 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 +&> + |
Available capital: + +<&| qtextstring, qa => $qa, dbh => $dbh, prefix => 'ac', + thingstring => 'capitalstring', emsgstore => \$emsg, + helpref => 'capital', + perresult => sub { ($capital)= @_; } + &> + size=9 +&> + | +