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

Annotation of /RAST/rast.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (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 : paarmann 1.5
11 :     # read local WebConfig because we need it here
12 :     &WebConfig::import_local_config('RAST');
13 :    
14 :    
15 :     # choose a layout
16 :     my $layout = WebLayout->new('./Html/RAST.tmpl');
17 :     if ($WebConfig::RAST_TYPE eq 'metagenome') {
18 :     $layout = WebLayout->new('./Html/RAST-MG.tmpl');
19 :     }
20 : paarmann 1.1 $layout->add_css(TMPL_PATH.'/default.css');
21 :     $layout->add_css(TMPL_PATH.'/rast.css');
22 :    
23 : paarmann 1.5
24 : paarmann 1.3 # add site meter
25 :     my $site_meter = $FIG_Config::site_meter;
26 :     if ($site_meter) {
27 :     $layout->add_javascript("http://s20.sitemeter.com/js/counter.js?site=s20nmpdr");
28 :     }
29 :    
30 : paarmann 1.5
31 :     # create the menu
32 : paarmann 1.1 my $menu = WebMenu->new();
33 :     $menu->add_category('Home', 'rast.cgi', undef, [ 'login' ]);
34 :     $menu->add_category('Your Jobs', 'rast.cgi?page=Jobs', undef, [ 'login' ]);
35 :     $menu->add_entry('Your Jobs', 'Jobs Overview', 'rast.cgi?page=Jobs');
36 :     $menu->add_entry('Your Jobs', 'Upload New Job', 'rast.cgi?page=Upload');
37 : paarmann 1.4 $menu->add_category('Import Control', 'rast.cgi?page=ControlCenter', undef, [ 'import' ]);
38 : paarmann 1.1
39 :    
40 : paarmann 1.5 # init the WebApplication
41 : paarmann 1.1 my $WebApp = WebApplication->new( { id => 'RAST',
42 :     menu => $menu,
43 :     layout => $layout,
44 :     default => 'Home',
45 :     } );
46 :    
47 : paarmann 1.2 $WebApp->page_title_prefix('RAST Server - ');
48 : paarmann 1.1 $WebApp->run();

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3