X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Fquery_commod;h=8d55f2686130568ba92d2c578dd787d2362e368e;hb=a1d85248991a3b50783608d8d2ae35b4be29e82a;hp=5db6330c6cb2df4999c7c4bac682a301745be79d;hpb=13b9f206d92634f4e6f4a940ed31690c1235d827;p=ypp-sc-tools.db-live.git diff --git a/yarrg/web/query_commod b/yarrg/web/query_commod index 5db6330..8d55f26 100644 --- a/yarrg/web/query_commod +++ b/yarrg/web/query_commod @@ -50,6 +50,7 @@ my ($commodname,$cmid); my $qa= \%ARGS; +

Commodity enquiry

% $prselector->('BuySell'); @@ -69,10 +70,13 @@ my $qa= \%ARGS; %#========== results ========== +
+
<%perl> $emsgokorprint->($emsg) or $cmid=undef; -return unless defined $cmid; +print("
"), return + unless defined $cmid; $someresults->(); #---------- actually compute the results and print them ---------- @@ -109,9 +113,14 @@ foreach my $bs (split /_/, $ARGS{BuySell}) { % my $rowix= 0; % while ($island= $islands->fetchrow_hashref) { % if (!$rowix) { - +
++++ - @@ -170,11 +179,11 @@ foreach my $bs (split /_/, $ARGS{BuySell}) { % for my $cix (0..$#$s) { % $ts_sortkeys{$cix}{$rowid}= $s->[$cix]; @@ -207,3 +216,4 @@ No offers. <%perl> } +
+ + Prices Quantity at price
<% $s->[0]= $island->{'archipelago'} |h %> <% $s->[1]= $island->{'islandname'} |h %> <% $stallname |h %> - <% $s->[3]= (length $bestqty ? $bestprice : '-') %> - <% $s->[4]= $median %> - <% $s->[5]= $bestqty %> - <% $s->[6]= $approxqty %> - <% $s->[7]= $cqty %> + <% $s->[3]= (length $bestqty ? $bestprice : '-') %> + <% $s->[4]= $median %> + <% $s->[5]= $bestqty %> + <% $s->[6]= $approxqty %> + <% $s->[7]= $cqty %>