[Bio] / WebApplication / SimpleWebPage.pm Repository:
ViewVC logotype

View of /WebApplication/SimpleWebPage.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (as text) (annotate)
Thu Sep 1 17:58:30 2011 UTC (8 years, 10 months ago) by olson
Branch: MAIN
CVS Tags: rast_rel_2011_0928, mgrast_dev_10262011
Simple seedviewer webpage wrapper.

package SimpleWebPage;

use base qw( WebPage );

use strict;
use warnings;


1;

=pod

=head1 NAME

SimpleWebPage

=head1 DESCRIPTION


=head1 METHODS

=over 4

=item * B<init> ()

Called when the web page is instanciated.

=cut

sub init {
  my ($self) = @_;
  
  $self->title($self->page_title());

  return 1;
}

=item * B<output> ()

Returns the html output of the Annotation page.

=cut

sub output {
    my ($self) = @_;
    
    my $application = $self->application;
    my $cgi = $application->cgi;
    
    my $fig = $application->data_handle('FIG');
    
    my $user = $application->session->user;

    my $page = $cgi->param('page');
    my $url = $application->url . "?page=$page";
    my $output = $self->page_content($fig, $cgi, $user->login, $url);

    return $output;
}


1;

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3