X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.main.git;a=blobdiff_plain;f=yarrg%2Fweb%2Fquery_routesearch;h=9c583b8899338489228249fef319dc360e7d3883;hp=89a81371845c06069fe43b197a6ad8d945e89abb;hb=3dbb2f33eae3a509123ffc99e48e35f858a8292a;hpb=aaac8ff612afe5c10dd97a61f44870c24da4fcad
diff --git a/yarrg/web/query_routesearch b/yarrg/web/query_routesearch
index 89a8137..9c583b8 100644
--- a/yarrg/web/query_routesearch
+++ b/yarrg/web/query_routesearch
@@ -67,6 +67,7 @@ my $maxcountea=15;
%perl>
+
Find most profitable routes and trades
% if ($qa->{Dropdowns}) {
@@ -102,6 +103,8 @@ This feature is not available from the "drop down menus" interface.
% }
+
+
<%perl>
if (!$emsg && $maxdist > $maxmaxdist) {
@@ -109,10 +112,12 @@ if (!$emsg && $maxdist > $maxmaxdist) {
" supported, sorry.";
}
-$emsgokorprint->($emsg) or return;
-@islandids or return;
-$allargs->{'submit'} or return;
-defined $routeparams->{MaxMass} or defined $routeparams->{MaxVolume} or return;
+print("
"), return
+ unless $emsgokorprint->($emsg)
+ and @islandids
+ and $allargs->{'submit'}
+ and (defined $routeparams->{MaxMass} or
+ defined $routeparams->{MaxVolume});
#---------- prepare island names ----------
@@ -273,7 +278,7 @@ $someresults->();
% } else {
Best routes for profit per league
% }
-
+
@@ -293,7 +298,6 @@ $someresults->();
Start
| Via
| Finish
- |
| | | | | |
% my $datarow=0;
% my %sortkeys;
@@ -345,7 +349,4 @@ Per league values count each island visited as one
to be sailed. All profit figures are somewhat approximate; get a
complete trading plan for a route for accurate information.
-<%perl>
-
-
-%perl>
+
|
---|