[Bio] / RAST / rast.cgi Repository:
ViewVC logotype

View of /RAST/rast.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (download) (annotate)
Mon Apr 6 12:18:00 2009 UTC (10 years, 8 months ago) by paczian
Branch: MAIN
CVS Tags: rast_rel_2009_05_18
Changes since 1.8: +2 -0 lines
added menu entries that link to About RAST and RAST FAQ

use strict;
use warnings;

use DBMaster;
use WebApplication;
use WebMenu;
use WebLayout;
use WebConfig;

# read local WebConfig because we need it here
&WebConfig::import_local_config('RAST');

# choose a layout
my $layout = WebLayout->new("$FIG_Config::fig/CGI/Html/RAST.tmpl");
$layout->add_css(TMPL_URL_PATH.'/default.css');
$layout->add_css(TMPL_URL_PATH.'/rast.css');

# add site meter
my $site_meter = $FIG_Config::site_meter;
if ($site_meter) {
    $layout->add_javascript("http://s20.sitemeter.com/js/counter.js?site=s20nmpdr");
}

# create the menu
my $menu = WebMenu->new();

$menu->add_category('Home', 'rast.cgi', undef, [ 'login' ]);
$menu->add_entry('Home', 'About RAST', 'http://www.nmpdr.org/FIG/wiki/view.cgi/Main/RAST', '_blank');
$menu->add_entry('Home', 'RAST FAQ', 'http://www.nmpdr.org/FIG/wiki/view.cgi/Main/RASTFAQ', '_blank');
$menu->add_category('Your Jobs', 'rast.cgi?page=Jobs', undef, [ 'login' ]);
$menu->add_entry('Your Jobs', 'Jobs Overview', 'rast.cgi?page=Jobs');
$menu->add_entry('Your Jobs', 'Upload New Job', 'rast.cgi?page=Upload');
$menu->add_entry('Your Jobs', 'Private Organism Preferences', '?page=PrivateOrganismPreferences');
$menu->add_category('Import Control', 'rast.cgi?page=ControlCenter', undef, [ 'import' ]);


# init the WebApplication
my $WebApp = WebApplication->new( { id       => 'RAST',
                                    menu     => $menu,
                                    layout   => $layout,
                                    default  => 'Home',
                                  } );
	
$WebApp->page_title_prefix('RAST Server - ');

$WebApp->run();

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3