]> ruin.nu Git - ndwebbie.git/blobdiff - NDWeb/Pages/HostileAlliances.pm
Converted editRaid page
[ndwebbie.git] / NDWeb / Pages / HostileAlliances.pm
index c9c0916d3ecc28e0a2224550586b5abcb6a50e82..703e8b71f0cb1700733c14207dc2d73f4ac95291 100644 (file)
 #   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;
@@ -55,11 +55,8 @@ ORDER BY hostilecount DESC
                })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);