% }
</%method>
-<html><head><title><% ucfirst $ahtml{Query} %> - YARRG</title></head><body>
+<html><head><title><% ucfirst $ahtml{Query} %> - YARRG</title>
+<style type="text/css">
+body {
+ foreground: #000000;
+ background: #ffffff;
+}
+tr.datarow0 { background: #ffffff; }
+tr.datarow1 { background: #eeeeee; }
+</style>
+</head><body>
<a href="<% $m->current_comp()->name() |u %>">YARRG</a> -
Yet Another Revenue Research Gatherer
========== TODO ==========
16:36 <ceb> alpha,byrne,papaya,turtle,jorvik,luthien is my example
-16:39 <ceb> Also, maybe colour to highlight the suggested trades?
-
16:46 <ceb> Also trading plan not functional but I guess you know that :-)
use POST for update. Hrrm.
max volume/mass
-16:38 <ceb> I don't know how hard this is, but can you show only the suggested
- trades to start ith and have a button to show all?
========== TODO ==========
</%doc>
% if ($optimise) {
<colgroup span=3>
% }
-<tr>
+<tr class="spong">
<th>
<th<% $cdspan %>>Collect
<th<% $cdspan %>>Deliver
<th>
% }
-% foreach my $flow (@flows) {
+% foreach my $flowix (0..$#flows) {
+% my $flow= $flows[$flowix];
% my $rowid= "id_row_$flow->{UidShort}";
-<tr id="<% $rowid %>">
+<tr id="<% $rowid %>" class="datarow<% $flowix & 1 %>">
<td><input type=hidden name=R<% $flow->{UidShort} %> value="">
<input type=checkbox name=T<% $flow->{UidShort} %> value=""
<% $flow->{Suppress} ? '' : 'checked' %> >
% }
</table>
-<& tabsort, cols => \@cols, table => 'trades',
+<& tabsort, cols => \@cols, table => 'trades', rowclass => 'datarow',
throw => 'trades_sort', tbrow => 'trades_total' &>
<&| script &>
ts_sortkeys= <% to_json_protecttags(\%ts_sortkeys) %>;
$sortkeys => 'ts_sortkeys'
$throw => undef
$tbrow => undef
+$rowclass => undef
$cols
</%args>
debug('final row '+rowix+' [[ '+row+' ]]');
}
newrows.sort(compar);
+% if (defined $rowclass) {
+ for (var rowix=0; rowix < newrows.length; rowix++) {
+ var row= newrows[rowix];
+ var classname= '<% $rowclass %>'+(rowix % 2);
+ debug('fix row '+rowix+' class '+classname);
+ row.className= classname;
+ }
+% }
newrows= newrows.concat(finalrows);
for (var rowix=0; rowix < newrows.length; rowix++) {
var row= newrows[rowix];