X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Flookup;h=2f67760c487d6f1281b37bcb819ca6a7b2dd3d01;hb=a1fb96b672d234f5961a397215c19c2c631c5cc3;hp=1453a372145ee2989261f757481aee295e052fb1;hpb=492ee8e5d023945e2768e9568f22bd63a19b59f4;p=ypp-sc-tools.main.git diff --git a/yarrg/web/lookup b/yarrg/web/lookup index 1453a37..2f67760 100755 --- a/yarrg/web/lookup +++ b/yarrg/web/lookup @@ -57,6 +57,8 @@ my %styles; Before => 'Query: ', Values => [ [ 'route', 'Trades for route' ], [ 'commod', 'Prices for commodity' ], + [ 'offers', 'Offers at location' ], + [ 'routesearch', 'Find profitable route' ], [ 'age', 'Data age' ] ] }, { Name => 'BuySell', Before => '', @@ -78,6 +80,12 @@ my %styles; [ 1, 'Show individual stalls' ], ], QuerySpecific => 1, + }, { Name => 'RouteSearchType', + Before => 'Type of routes to search for: ', + Values => [ [ 0, 'Open-ended' ], + [ 1, 'Circular' ], + ], + QuerySpecific => 1, }); foreach my $var (@vars) { @@ -118,21 +126,34 @@ $ours % } -<% ucfirst $ahtml{Query} %> - YARRG +<% ucfirst $ahtml{Query} %> - YARRG +<&| script &> + function register_onload(f) { + var previous_onload= window.onload; + window.onload= function() { + if (previous_onload) previous_onload(); + f(); + }; + } + YARRG - Yet Another Revenue Research Gatherer | +introduction +| documentation +| +development

<%perl> @@ -144,7 +165,9 @@ foreach my $var (@vars) { foreach my $var (keys %ARGS) { next unless $var =~ - m/^(?: (?:route|commod)string | + m/^(?: (?:route|commod|capacity|capital|island)string | + lossperleague | distance | + commodid | islandid \d | archipelago \d | debug | @@ -231,7 +254,7 @@ $debug => 0


<& "query_$styles{Query}", %baseqf, %queryqf, %styles, - quri => $quri, dbh => $dbh, + quri => $quri, dbh => $dbh, queryqf => \%queryqf, allargs => \%ARGS, prselector => $prselector, someresults => $someresults, emsgokorprint => sub {