# # Copyright (c) 2003-2006 University of Chicago and Fellowship # for Interpretations of Genomes. All Rights Reserved. # # This file is part of the SEED Toolkit. # # The SEED Toolkit is free software. You can redistribute # it and/or modify it under the terms of the SEED Toolkit # Public License. # # You should have received a copy of the SEED Toolkit Public License # along with this program; if not write to the University of Chicago # at info@ci.uchicago.edu or the Fellowship for Interpretation of # Genomes at veronika@thefig.info or download a copy from # http://www.theseed.org/LICENSE.TXT. # ### start use FIG; use FIG_CGI; use CGI::Carp qw(fatalsToBrowser); # this makes debugging a lot easier by throwing errors out to the browser use strict; use Tracer; use FIGjs qw( toolTipScript ); use HTML; my($fig, $cgi, $user); eval { ($fig, $cgi, $user) = FIG_CGI::init(debug_save => 0, debug_load => 0, print_params => 0); }; if ($@ ne "") { my $err = $@; my(@html); push(@html, $cgi->p("Error connecting to SEED database.")); if ($err =~ /Could not connect to DBI:.*could not connect to server/) { push(@html, $cgi->p("Could not connect to relational database of type $FIG_Config::dbms named $FIG_Config::db on port $FIG_Config::dbport.")); } else { push(@html, $cgi->pre($err)); } &HTML::show_page($cgi, \@html, 1); exit; } Trace("Connected to FIG.") if T(2); my $html = []; unshift @$html, "
Selected Genomes (", scalar(keys %got), " total) | Remaining Genomes (", scalar(@missinggenomes), " total) |
---|---|
\n", $cgi->scrolling_list( -name => 'got_genomes', -values => [sort {$gs->{$a} cmp $gs->{$b}} keys %got], -labels => $gs, -size => 10, -multiple => 1, -defaults => [], ), "\n | \n", $cgi->scrolling_list( -name => 'other_genomes', -values => [sort {$gs->{$a} cmp $gs->{$b}} @missinggenomes], -labels => $gs, -size => 10, -multiple => 1, -defaults => [], ), "\n", " |
Selected Subsystems (", scalar(keys %gotss), " total) | Remaining Subsystems (", scalar(@missingss), " total) |
\n", $cgi->scrolling_list( -name => 'got_subsystems', -values => [sort {uc($sslabels->{$a}) cmp uc($sslabels->{$b})} keys %gotss], -labels => $sslabels, -size => 10, -multiple => 1, -defaults => [], ), "\n | \n", $cgi->scrolling_list( -name => 'other_subsystems', -values => [sort {uc($sslabels->{$a}) cmp uc($sslabels->{$b})} @missingss], -labels => $sslabels, -size => 10, -multiple => 1, -defaults => [], ), "\n |