From 2786d1732fb6a4f729db332b49766e0f86e574be Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Thu, 28 Dec 2006 20:33:43 +0000 Subject: [PATCH] nicer table in check --- check.pl | 3 +++ templates/check.tmpl | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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

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