[Bio] / SeedViewer / seedviewer.cgi Repository:
ViewVC logotype

Diff of /SeedViewer/seedviewer.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2, Mon Jul 16 16:07:05 2007 UTC revision 1.4, Wed Nov 7 17:09:12 2007 UTC
# Line 34  Line 34 
34    
35      # initialize layout      # initialize layout
36      my $layout = WebLayout->new('./Html/SeedViewer.tmpl');      my $layout = WebLayout->new('./Html/SeedViewer.tmpl');
37        $layout->add_css('./Html/default.css');
38      $layout->add_css('./Html/seedviewer.css');      $layout->add_css('./Html/seedviewer.css');
39    
40      # build menu      # build menu
41      my $menu = WebMenu->new();      my $menu = WebMenu->new();
42      $menu->add_category('»Navigate', '?page=Home');      $menu->add_category('»Navigate', '?page=Home');
43      $menu->add_entry('»Navigate', 'Search', '?page=Home');      $menu->add_entry('»Navigate', 'Search', '?page=Home');
44      $menu->add_entry('»Navigate', 'Functional Roles', '?page=FunctionalRole');      $menu->add_entry('»Navigate', 'Subsystems', '?page=SubsystemSelect');
     $menu->add_entry('»Navigate', 'Subsystems', '?page=Subsystem');  
45      $menu->add_entry('»Navigate', 'Organisms', '?page=OrganismSelect');      $menu->add_entry('»Navigate', 'Organisms', '?page=OrganismSelect');
46      $menu->add_entry('»Navigate', 'Annotations', '?page=Annotation');      $menu->add_category('»Teacher', '?page=Teach', undef, ['edit', 'problem_list'], 96);
47      $menu->add_category('»Help', 'http://biofiler.mcs.anl.gov', 'help', undef, 98);      $menu->add_category('»Admin', '?page=Admin', undef, ['edit', 'scope', '*'], 99);
48      $menu->add_entry('»Help', 'What is the SEED', 'http://www.theseed.org');      $menu->add_category('»Help', 'http://www.theseed.org', 'help', undef, 98);
49      $menu->add_entry('»Help', 'HowTo use the SEED Viewer', 'http://www.theseed.org');      $menu->add_entry('»Help', 'What is the SEED', 'http://www.theseed.org/wiki/Home_of_the_SEED');
50      $menu->add_entry('»Help', 'Submitting Data to SEED', 'http://www.theseed.org');      $menu->add_entry('»Help', 'HowTo use the SEED Viewer', 'http://www.theseed.org/wiki/SEED_Viewer_Tutorial');
51      $menu->add_entry('»Help', 'Contact', 'http://www.theseed.org');      $menu->add_entry('»Help', 'Submitting Data to SEED', 'http://www.theseed.org/wiki/RAST_Tutorial');
52        $menu->add_entry('»Help', 'Contact', 'http://www.theseed.org/wiki/Contact');
53      $menu->add_entry('»Help', 'Register', '?page=Register');      $menu->add_entry('»Help', 'Register', '?page=Register');
     $menu->add_category('»Logout', '?page=Home&action=perform_logout', undef, ['login'], 99);  
54    
55      # initialize application      # initialize application
56      my $WebApp = WebApplication->new( { id => 'SeedViewer',      my $WebApp = WebApplication->new( { id => 'SeedViewer',
# Line 60  Line 60 
60                                          default  => 'Home',                                          default  => 'Home',
61                                        } );                                        } );
62    
     #my $search_master = DBMaster->new(-database => 'SeedDB');  
     #my $search_component = $WebApp->register_component('Search', 'MenuSearch');  
     #$search_component->db($search_master);  
     #$search_component->add_category('Functional Role', 'FunctionalRole');  
     #$search_component->add_category('Subsystem');  
     #$search_component->add_category('Organism');  
     #$search_component->add_category('Annotation', undef, 'Function');  
   
63      # run application      # run application
64      $WebApp->run();      $WebApp->run();
65    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3