]> ruin.nu Git - ndwebbie.git/commitdiff
editraid class
authorMichael Andreen <harv@ruin.nu>
Thu, 18 Jan 2007 20:53:53 +0000 (20:53 +0000)
committerMichael Andreen <harv@ruin.nu>
Thu, 18 Jan 2007 20:53:53 +0000 (20:53 +0000)
ND/Web/Pages/EditRaid.pm
startup.pl

index f7f8a9fbc640a57cc03f8582da517f04a748c40b..8b46508bb63d06d681b556f07a0f1428dfcafd5a 100644 (file)
@@ -23,27 +23,19 @@ use ND::Include;
 use CGI qw/:standard/;
 use ND::Web::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;
 
        my $error;
 
-       $ND::TEMPLATE->param(TITLE => 'Create/Edit Raids');
-
-       return $ND::NOACCESS unless isBC();
-
        my @alliances = alliances();
        $BODY->param(Alliances => \@alliances);
 
        my @alliances = alliances();
        $BODY->param(Alliances => \@alliances);
 
@@ -205,7 +197,7 @@ sub render {
                $BODY->param(Targets => \@targets);
        }else{
                $BODY->param(Waves => 3);
                $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;
        }
        $BODY->param(Error => $error);
        return $BODY;
index 677a88059cd668b63b5f141aec56cb834641acd0..97247bac8536da7ffde388facaea72d83003729a 100644 (file)
@@ -36,7 +36,7 @@ use ND::Web::Pages::Top100;
 use ND::Web::Pages::DefRequest;
 use ND::Web::Pages::Check;
 use ND::Web::Pages::Raids;
 use ND::Web::Pages::DefRequest;
 use ND::Web::Pages::Check;
 use ND::Web::Pages::Raids;
-#use ND::Web::Pages::EditRaid;
+use ND::Web::Pages::EditRaid;
 #use ND::Web::Pages::Calls;
 #use ND::Web::Pages::Users;
 #use ND::Web::Pages::Intel;
 #use ND::Web::Pages::Calls;
 #use ND::Web::Pages::Users;
 #use ND::Web::Pages::Intel;