#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package BookPub::Admin::Command::Main;
use strict;
use warnings;

use lib '/app/tools/bookpub/lib';
use BookPub::Command;
use BookPub::Dashboard::Form;
use base 'BookPub::Command';

use lib '/app/tools/common/lib';
use RSApache::Response::XSLT;

sub cmd      { return 'main'; }
sub area     { return 'admin'; }
sub pageName { return 'Administrative Options'; }

use constant kTemplate => "/app/tools/bookpub/templates/admin/main.xsl";

sub execute {
    my ($self) = @_;

    my $response = $self->SUPER::execute();
    return $response if $response;

    $response = RSApache::Response::XSLT->new( $self->{xml}, kTemplate );

    return $response;
}

1;
