X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=blobdiff_plain;f=yarrg%2Fweb%2Flookup;h=365ed58129407277626411e60f96b8bc8fe2ba1e;hp=35b6ce7039c2fb6eea242d4560f77668e72bb26c;hb=3dbb2f33eae3a509123ffc99e48e35f858a8292a;hpb=099cd920655c1db6da4a1a57ec3baa30d16321d7 diff --git a/yarrg/web/lookup b/yarrg/web/lookup index 35b6ce7..365ed58 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,14 +126,15 @@ $ours % } -<% ucfirst $ahtml{Query} %> - YARRG +<% ucfirst $ahtml{Query} %> - YARRG <&| script &> function register_onload(f) { @@ -138,11 +147,18 @@ tr.datarow1 { background: #ffffff; } +% 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 { @@ -254,15 +275,14 @@ $debug => 0 } &> -

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

+

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