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

Annotation of /RAST/rast.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (view) (download)

1 : paarmann 1.1 use strict;
2 :     use warnings;
3 :    
4 :     use DBMaster;
5 :     use WebApplication;
6 :     use WebMenu;
7 :     use WebLayout;
8 :     use WebConfig;
9 :    
10 :     my $layout = WebLayout->new('./Html/RASTLayout.tmpl');
11 :     $layout->add_css(TMPL_PATH.'/default.css');
12 :     $layout->add_css(TMPL_PATH.'/rast.css');
13 :    
14 : paarmann 1.3 # add site meter
15 :     my $site_meter = $FIG_Config::site_meter;
16 :     if ($site_meter) {
17 :     $layout->add_javascript("http://s20.sitemeter.com/js/counter.js?site=s20nmpdr");
18 :     }
19 :    
20 : paarmann 1.1 my $menu = WebMenu->new();
21 :     $menu->add_category('Home', 'rast.cgi', undef, [ 'login' ]);
22 :     $menu->add_category('Your Jobs', 'rast.cgi?page=Jobs', undef, [ 'login' ]);
23 :     $menu->add_entry('Your Jobs', 'Jobs Overview', 'rast.cgi?page=Jobs');
24 :     $menu->add_entry('Your Jobs', 'Upload New Job', 'rast.cgi?page=Upload');
25 : paarmann 1.4 $menu->add_category('Import Control', 'rast.cgi?page=ControlCenter', undef, [ 'import' ]);
26 : paarmann 1.1
27 :    
28 :     my $WebApp = WebApplication->new( { id => 'RAST',
29 :     menu => $menu,
30 :     layout => $layout,
31 :     default => 'Home',
32 :     } );
33 :    
34 : paarmann 1.2 $WebApp->page_title_prefix('RAST Server - ');
35 : paarmann 1.1 $WebApp->run();

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3