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

Annotation of /RAST/rast.cgi

Parent Directory Parent Directory | Revision Log Revision Log


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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3