[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.14, Fri Mar 14 17:59:48 2008 UTC revision 1.15, Sun Mar 23 16:04:27 2008 UTC
# Line 39  Line 39 
39      my $templateFile = (FIGRules::nmpdr_mode($cgi) ? './Html/NmpdrViewer.tmpl' : './Html/SeedViewer.tmpl');      my $templateFile = (FIGRules::nmpdr_mode($cgi) ? './Html/NmpdrViewer.tmpl' : './Html/SeedViewer.tmpl');
40      Trace("Template file is $templateFile") if T(3);      Trace("Template file is $templateFile") if T(3);
41      my $layout = WebLayout->new($templateFile);      my $layout = WebLayout->new($templateFile);
     # Start with the normal style.  
     $layout->add_css('./Html/default.css');  
42      # Choose the body/header style sheet according to the mode.      # Choose the body/header style sheet according to the mode.
43      if (FIGRules::nmpdr_mode($cgi)) {      if (FIGRules::nmpdr_mode($cgi)) {
44          # NMPDR mode.          # NMPDR mode.
# Line 53  Line 51 
51     }     }
52      # Add the common styles.      # Add the common styles.
53      $layout->add_css('./Html/commonviewer.css');      $layout->add_css('./Html/commonviewer.css');
54        # Add the normal style.
55        $layout->add_css('./Html/default.css');
56      # add site meter      # add site meter
57      my $site_meter = $FIG_Config::site_meter;      my $site_meter = $FIG_Config::site_meter;
58      if ($site_meter) {      if ($site_meter) {
# Line 63  Line 62 
62      # build menu      # build menu
63      my $menu;      my $menu;
64      $menu = WebMenu->new();      $menu = WebMenu->new();
65                if (FIGRules::nmpdr_mode($cgi)) {
66            $menu->add_category('»Navigate', '?page=Home');
67            $menu->add_entry('»Navigate', 'NMPDR home', "$FIG_Config::nmpdr_site_url/index.php");
68            $menu->add_entry('»Navigate', 'Organisms', "$FIG_Config::nmpdr_site_url/content/organisms.php");
69            $menu->add_entry('»Navigate', 'Subsystems', "$FIG_Config::nmpdr_site_url/content/subsystems.php");
70            $menu->add_entry('»Navigate', 'FigFams', '?page=FigFamViewer');
71        } else {
72      $menu->add_category('»Navigate', '?page=Home');      $menu->add_category('»Navigate', '?page=Home');
73      $menu->add_entry('»Navigate', 'Startpage', '?page=Home');      $menu->add_entry('»Navigate', 'Startpage', '?page=Home');
74      $menu->add_entry('»Navigate', 'Organisms', '?page=OrganismSelect');      $menu->add_entry('»Navigate', 'Organisms', '?page=OrganismSelect');
# Line 70  Line 76 
76      $menu->add_entry('»Navigate', 'FigFams', '?page=FigFamViewer');      $menu->add_entry('»Navigate', 'FigFams', '?page=FigFamViewer');
77      $menu->add_entry('&raquo;Navigate', '<a>Jump to Feature by</a>');      $menu->add_entry('&raquo;Navigate', '<a>Jump to Feature by</a>');
78      $menu->add_entry('&raquo;Navigate', '&nbsp;&nbsp;BLAST Search', '?page=BlastRun');      $menu->add_entry('&raquo;Navigate', '&nbsp;&nbsp;BLAST Search', '?page=BlastRun');
79      $menu->add_entry('&raquo;Navigate', "<form style='margin: 0px 0px 0px 6px;'>&nbsp;&nbsp;ID&nbsp;&nbsp;<input type='text' name='pattern' class='idbox'><input type='hidden' name='page' value='SearchResult'><input type='hidden' name='action' value='check_search'><input type='submit' style='display:none;'></form>");      $menu->add_entry('&raquo;Navigate', "<form style='margin: 0px 0px 0px 6px;'>&nbsp;&nbsp;ID&nbsp;&nbsp;<input type='text' name='pattern' style='border: 1px solid #5da668; width: 100px; height: 17px; margin-top: 2px; font-size: 11px;'><input type='hidden' name='page' value='SearchResult'><input type='hidden' name='action' value='check_search'><input type='submit' style='display:none;'></form>");
80        }
81      if (defined($FIG_Config::teacher_db)) {      if (defined($FIG_Config::teacher_db)) {
82          $menu->add_category('&raquo;Teacher', '?page=Teach', undef, ['edit', 'problem_list'], 96);          $menu->add_category('&raquo;Teacher', '?page=Teach', undef, ['edit', 'problem_list'], 96);
83          $menu->add_entry('&raquo;Teacher', 'Class Performance', '?page=Teach');          $menu->add_entry('&raquo;Teacher', 'Class Performance', '?page=Teach');
# Line 81  Line 87 
87      }      }
88      #$menu->add_category('&raquo;Admin', '?page=Admin', undef, ['edit', 'scope', '*'], 99);      #$menu->add_category('&raquo;Admin', '?page=Admin', undef, ['edit', 'scope', '*'], 99);
89      if (FIGRules::nmpdr_mode($cgi)) {      if (FIGRules::nmpdr_mode($cgi)) {
90          $menu->add_category('&raquo;Help', "$FIG_Config::nmpdr_site_url/content/help.php", 'help', undef, 98);          $menu->add_category('Help', "$FIG_Config::nmpdr_site_url/content/help.php", 'help', undef, 98);
91          $menu->add_entry('&raquo;Help', 'Searching NMPDR', "$FIG_Config::nmpdr_site_url/content/find.php");          $menu->add_entry('Help', 'Searching NMPDR', "$FIG_Config::nmpdr_site_url/content/find.php");
92          $menu->add_entry('&raquo;Help', 'SEED Viewer Tutorial', 'http://www.theseed.org/wiki/SEED_Viewer_Tutorial');          $menu->add_entry('Help', 'Contact', "$FIG_Config::nmpdr_site_url/content/contactus.php");
         $menu->add_entry('&raquo;Help', 'Contact', "$FIG_Config::nmpdr_site_url/content/contact.php");  
93      } else {      } else {
94          $menu->add_category('&raquo;Help', 'http://www.theseed.org', 'help', undef, 98);          $menu->add_category('&raquo;Help', 'http://www.theseed.org', 'help', undef, 98);
95          $menu->add_entry('&raquo;Help', 'What is the SEED', 'http://www.theseed.org/wiki/Home_of_the_SEED');          $menu->add_entry('&raquo;Help', 'What is the SEED', 'http://www.theseed.org/wiki/Home_of_the_SEED');

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3