chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
routesearch: make absolute/perleague into 2-element arrays rather than macros
[ypp-sc-tools.db-live.git]
/
yarrg
/
web
/
lookup
diff --git
a/yarrg/web/lookup
b/yarrg/web/lookup
index 36c0a27f7f3468311a21cb92883f7d825e34e953..7af431cee119f6e163439b83a08fcf84b6b8eedd 100755
(executable)
--- a/
yarrg/web/lookup
+++ b/
yarrg/web/lookup
@@
-57,6
+57,7
@@
my %styles;
Before => 'Query: ',
Values => [ [ 'route', 'Trades for route' ],
[ 'commod', 'Prices for commodity' ],
Before => 'Query: ',
Values => [ [ 'route', 'Trades for route' ],
[ 'commod', 'Prices for commodity' ],
+ [ 'offers', 'Offers at location' ],
[ 'age', 'Data age' ] ]
}, { Name => 'BuySell',
Before => '',
[ 'age', 'Data age' ] ]
}, { Name => 'BuySell',
Before => '',
@@
-74,7
+75,7
@@
my %styles;
QuerySpecific => 1,
}, { Name => 'ShowStalls',
Before => '',
QuerySpecific => 1,
}, { Name => 'ShowStalls',
Before => '',
- Values => [ [ 0, 'Show
amount
at each price' ],
+ Values => [ [ 0, 'Show
total quantity
at each price' ],
[ 1, 'Show individual stalls' ],
],
QuerySpecific => 1,
[ 1, 'Show individual stalls' ],
],
QuerySpecific => 1,
@@
-118,21
+119,34
@@
$ours
% }
</%method>
% }
</%method>
-<html><head><title><% ucfirst $ahtml{Query} %> - YARRG</title>
+<html
lang="en"
><head><title><% ucfirst $ahtml{Query} %> - YARRG</title>
<style type="text/css">
body {
color: #000000;
background: #ffffff;
}
<style type="text/css">
body {
color: #000000;
background: #ffffff;
}
-tr.datarow0 { background: #
ffffff
; }
-tr.datarow1 { background: #
eeeeee
; }
+tr.datarow0 { background: #
e3e3e3
; }
+tr.datarow1 { background: #
ffffff
; }
</style>
</style>
+<&| script &>
+ function register_onload(f) {
+ var previous_onload= window.onload;
+ window.onload= function() {
+ if (previous_onload) previous_onload();
+ f();
+ };
+ }
+</&script>
</head><body>
<a href="<% $m->current_comp()->name() |u %>">YARRG</a> -
Yet Another Revenue Research Gatherer
|
</head><body>
<a href="<% $m->current_comp()->name() |u %>">YARRG</a> -
Yet Another Revenue Research Gatherer
|
+<a href="intro">introduction</a>
+|
<a href="docs">documentation</a>
<a href="docs">documentation</a>
+|
+<a href="devel">development</a>
<p>
<%perl>
<p>
<%perl>
@@
-144,7
+158,9
@@
foreach my $var (@vars) {
foreach my $var (keys %ARGS) {
next unless $var =~
foreach my $var (keys %ARGS) {
next unless $var =~
- m/^(?: (?:route|commod)string |
+ m/^(?: (?:route|commod|capacity|capital)string |
+ lossperleague |
+ commodid |
islandid \d |
archipelago \d |
debug |
islandid \d |
archipelago \d |
debug |