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%2Flookup;h=6fc1cd76e0cafa0d93da1ce9c8d3037f1254616b;hp=ec72a6ee5c37e974efb7286d4537f05404ab120e;hb=da7ce28baf19eb34178ee4886216ee3fb2c89321;hpb=db998ff5d636967de9de9218ff0b940a4feb9a6d diff --git a/yarrg/web/lookup b/yarrg/web/lookup index ec72a6e..6fc1cd7 100755 --- a/yarrg/web/lookup +++ b/yarrg/web/lookup @@ -58,6 +58,7 @@ my %styles; Values => [ [ 'route', 'Trades for route' ], [ 'commod', 'Prices for commodity' ], [ 'offers', 'Offers at location' ], + [ 'routesearch', 'Find profitable route' ], [ 'age', 'Data age' ] ] }, { Name => 'BuySell', Before => '', @@ -79,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) { @@ -121,12 +128,13 @@ $ours <% ucfirst $ahtml{Query} %> - YARRG <&| script &> function register_onload(f) { @@ -139,15 +147,11 @@ tr.datarow1 { background: #ffffff; } -YARRG - - Yet Another Revenue Research Gatherer -| -development -| -introduction -| -documentation +% if (!printable($m)) { +
+% } <& "query_$styles{Query}", %baseqf, %queryqf, %styles, quri => $quri, dbh => $dbh, + baseqf => \%baseqf, queryqf => \%queryqf, allargs => \%ARGS, prselector => $prselector, someresults => $someresults, emsgokorprint => sub { @@ -259,15 +268,14 @@ $debug => 0 } &> -

- %#---------- debugging and epilogue ---------- % if ($debug) { -

+

 Debug log:
 
+
% } <&| script &>