From: Michael Andreen Date: Thu, 28 Dec 2006 20:33:43 +0000 (+0000) Subject: nicer table in check X-Git-Url: https://ruin.nu/git/?a=commitdiff_plain;h=2786d1732fb6a4f729db332b49766e0f86e574be;hp=d01a291b696be6998db7ea2e9e37e790b529d43f;p=ndwebbie.git nicer table in check --- diff --git a/check.pl b/check.pl index 9112aa2..788e938 100644 --- a/check.pl +++ b/check.pl @@ -74,6 +74,7 @@ if (defined $z){ } my @planets; my $planet_id = undef; +my $i = 0; while (my ($id,$coords,$planet,$race,$size,$score,$value,$xp,$sizerank,$scorerank,$valuerank,$xprank ,$fleetvalue,$resvalue,$planet_status,$hit_us,$alliance,$relationship,$nick) = $query->fetchrow){ $planet_id = $id; @@ -91,6 +92,8 @@ while (my ($id,$coords,$planet,$race,$size,$score,$value,$xp,$sizerank,$scoreran $LOG->execute($ND::UID,"BC browsing ND planet $coords tick $ND::TICK"); } } + $i++; + $planet{ODD} = $i % 2; push @planets,\%planet; } $BODY->param(Planets => \@planets); diff --git a/templates/check.tmpl b/templates/check.tmpl index 5275d21..0310ea4 100644 --- a/templates/check.tmpl +++ b/templates/check.tmpl @@ -1,10 +1,10 @@

Do arbiter check on gal

- +
- +
CoordsPlanetRaceSize (rank)Score (rank)Value (rank) XP (rank)Fleet (Resouce) valueNickHit usAlliance