% my %da_ages;
% my %ts_sortkeys;
% $da_ages{'id_loaded'}= 0;
+% my $rowix= 0;
% while ($row=$sth->fetchrow_hashref) {
% my $rowid= "id_$row->{'islandid'}";
% my $cellid= "c$rowid";
% $ts_sortkeys{'0'}{$rowid}= $row->{'archipelago'};
% $ts_sortkeys{'1'}{$rowid}= $row->{'islandname'};
% $da_ages{$rowid}= $age;
-<tr id=<% $rowid %>
+<tr id=<% $rowid %> class="<% 'datarow'.($rowix & 1) %>"
> <td><% $row->{'archipelago'} |h
%> <td><% $row->{'islandname'} |h
%> <td id="<% $cellid %>"><% prettyprint_age($age) %> </tr>
+% $rowix++;
% }
</table>
-<& tabsort, table => 'ts_table', cols => [
+<& tabsort, table => 'ts_table', rowclass => 'datarow', cols => [
{}, {},
{ DoReverse => 1,
Numeric => 1,
% $islands->execute($commodid);
% my $island;
% my %ts_sortkeys;
+% my $rowix= 0;
% while ($island= $islands->fetchrow_hashref) {
% my $islandid= $island->{'islandid'};
% $offers->execute($commodid, $islandid);
% }
%
% $cqty == $tqty or die "$bs $cqty $tqty $commodid $islandid ";
-<tr id=<% $rowid %> >
+<tr id=<% $rowid %> class="<% 'datarow'.($rowix & 1) %>">
<td><% $s->[0]= $island->{'archipelago'} |h %>
<td><% $s->[1]= $island->{'islandname'} |h %>
<td><% $stallname |h %>
% for my $cix (0..$#$s) {
% $ts_sortkeys{$cix}{$rowid}= $s->[$cix];
% }
+% $rowix++;
% }
</table>
<& tabsort, table => "${bs}_table", sortkeys => "${bs}_sortkeys",
- throw => "${bs}_table_thr", cols => [
+ throw => "${bs}_table_thr", rowclass => 'datarow', cols => [
{}, {},
{ DoReverse => 1 },
{ DoReverse => 1, Numeric => 1, MapFn => "ts_Pricemap_${bs}" },