%
% foreach my $i (0..$#islandids) {
<% $tbody->(1) %>
-<tr><td colspan=5>
+<tr>
% $iquery->execute($islandids[$i]);
% my ($islandname) = $iquery->fetchrow_array();
% if (!$i) {
+<td colspan=2>
<strong>Start at <% $islandname |h %></strong>
+<td><a href="docs#posinclass">[?]</a>
+<td colspan=2>
% } else {
% my $this_dist= $distance->($islandids[$i-1],$islandids[$i]);
% $total_dist += $this_dist;
+<td colspan=5>
<%perl>
my $total_value= 0;
foreach my $sf (@subflows) {
my $maxpic= $classinfo->{'maxposinclass'};
my $inpic= $f->{'posinclass'};
my @tmbs= qw(TT T M B BB);
- my @tmbds= ( 'in Top fifth of list',
- 'in 2nd fifth of the list',
- 'in Middle fifth of the list',
- 'in 2nd-bottom fifth of list',
- 'in Bottom fifth of the list');
my $tmbi= ($inpic+0.5)*$#tmbs/$maxpic;
my $desc= (sprintf "%s is under %s,".
- " commodity %d of %d;".
- " i.e. %s or %s",
+ " commodity %d of %d",
$f->{'commodname'},
$classinfo->{'commodclass'},
- $inpic, $maxpic,
- $tmbs[$tmbi], $tmbds[$tmbi]);
+ $inpic, $maxpic);
$$todo->{'posinclass'}=
"<div class=mouseover title=\"$desc\">$tmbs[$tmbi]</div>";
}