X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-live.git;a=blobdiff_plain;f=yarrg%2Fweb%2Fquery_route;h=fb32bcdd705017d6ad82f7da4a3344c55b44b47e;hp=a65ef1c5723d9360e4566152d294ac0fd1350112;hb=6302552bfa5844eddb7c26386c9995733f0a5174;hpb=099cd920655c1db6da4a1a57ec3baa30d16321d7 diff --git a/yarrg/web/query_route b/yarrg/web/query_route index a65ef1c..fb32bcd 100644 --- a/yarrg/web/query_route +++ b/yarrg/web/query_route @@ -40,17 +40,16 @@ $prselector $routestring => ''; $capacitystring => ''; $lossperleague => ''; +$capitalstring => ''; $someresults $emsgokorprint %args> <%perl> my $emsg; +my @warningfs; my @archipelagoes; my @islandids; -my %islandid2; -my ($max_volume, $max_mass); -my $lossperleaguepct; my $qa= \%ARGS; @@ -67,154 +66,37 @@ my $goupdate= sub { $be_post ? 'Update' : 'Go' };
- -Vessel capacity: -<&| qtextstring, qa => $qa, dbh => $dbh, prefix => 'cs', - thingstring => 'capacitystring', emsgstore => \$emsg, - perresult => sub { - ($max_volume,$max_mass) = @_; - } - &> -&> - - | - - - - | -Estimated loss per league: - -<&| qtextstring, qa => $qa, dbh => $dbh, prefix => 'll', - thingstring => 'lossperleague', emsgstore => \$emsg, - perresult => sub { ($lossperleaguepct)= @_; } - &> -&> - - |
- | -% } -
- | -% } -