]> ruin.nu Git - ndwebbie.git/blobdiff - ND/Web/Pages/EditRaid.pm
editraid class
[ndwebbie.git] / ND / Web / Pages / EditRaid.pm
index f7f8a9fbc640a57cc03f8582da517f04a748c40b..8b46508bb63d06d681b556f07a0f1428dfcafd5a 100644 (file)
@@ -23,27 +23,19 @@ use ND::Include;
 use CGI qw/:standard/;
 use ND::Web::Include;
 
-$ND::PAGES{editRaid} = {parse => \&parse, process => \&process, render=> \&render};
+our @ISA = qw/ND::Web::XMLPage/;
 
-sub parse {
-       my ($uri) = @_;
-       #if ($uri =~ m{^/.*/(\w+)$}){
-       #       param('list',$1);
-       #}
-}
-
-sub process {
+$ND::Web::Page::PAGES{editRaid} = __PACKAGE__;
 
-}
+sub render_body {
+       my $self = shift;
+       my ($BODY) = @_;
+       $self->{TITLE} = 'Create/Edit Raids';
+       my $DBH = $self->{DBH};
 
-sub render {
-       my ($DBH,$BODY) = @_;
+       return $self->noAccess unless $self->isBC;
        my $error;
 
-       $ND::TEMPLATE->param(TITLE => 'Create/Edit Raids');
-
-       return $ND::NOACCESS unless isBC();
-
        my @alliances = alliances();
        $BODY->param(Alliances => \@alliances);
 
@@ -205,7 +197,7 @@ sub render {
                $BODY->param(Targets => \@targets);
        }else{
                $BODY->param(Waves => 3);
-               $BODY->param(LandingTick => $ND::TICK+12);
+               $BODY->param(LandingTick => $self->{TICK}+12);
        }
        $BODY->param(Error => $error);
        return $BODY;