# Free Software Foundation, Inc., *
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
#**************************************************************************/
-package ND::Web::Pages::HostileAlliances;
+package NDWeb::Pages::HostileAlliances;
use strict;
use warnings FATAL => 'all';
use ND::Include;
use CGI qw/:standard/;
-use ND::Web::Include;
+use NDWeb::Include;
-use base qw/ND::Web::XMLPage/;
+use base qw/NDWeb::XMLPage/;
-$ND::Web::Page::PAGES{hostileAlliances} = __PACKAGE__;
+$NDWeb::Page::PAGES{hostileAlliances} = __PACKAGE__;
sub render_body {
my $self = shift;
})or $ND::ERROR .= $DBH->errstr;
$query->execute($begintick,$endtick) or $ND::ERROR .= $DBH->errstr;
my @alliances;
- my $i = 0;
my $tick = $self->{TICK};
while (my $alliance = $query->fetchrow_hashref){
- $i++;
- $alliance->{ODD} = $i % 2;
push @alliances, $alliance;
}
$BODY->param(Alliances => \@alliances);