[Bio] / FigWebServices / FormDisplay.cgi Repository:
ViewVC logotype

Annotation of /FigWebServices/FormDisplay.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (view) (download)

1 : parrello 1.1 #!/usr/bin/perl -w
2 : olson 1.2 #
3 :     # Copyright (c) 2003-2006 University of Chicago and Fellowship
4 :     # for Interpretations of Genomes. All Rights Reserved.
5 :     #
6 :     # This file is part of the SEED Toolkit.
7 :     #
8 :     # The SEED Toolkit is free software. You can redistribute
9 :     # it and/or modify it under the terms of the SEED Toolkit
10 :     # Public License.
11 :     #
12 :     # You should have received a copy of the SEED Toolkit Public License
13 :     # along with this program; if not write to the University of Chicago
14 :     # at info@ci.uchicago.edu or the Fellowship for Interpretation of
15 :     # Genomes at veronika@thefig.info or download a copy from
16 :     # http://www.theseed.org/LICENSE.TXT.
17 :     #
18 :    
19 : parrello 1.1
20 :     BEGIN {
21 :     # Print the HTML header.
22 :     print "CONTENT-TYPE: text/html\n\n";
23 :     }
24 :    
25 :     =head1 Form Results Display
26 :    
27 :     This is a simple debugging script that displays in a table the
28 :     form parameters passed to it.
29 :    
30 :     =cut
31 :    
32 :     use strict;
33 :     use CGI;
34 :     use Tracer;
35 :     use PageBuilder;
36 :    
37 :     # Get access to the form parameters.
38 :     my $query = new CGI;
39 :    
40 :     # Start the output page.
41 :     my $builder = PageBuilder::new("Html/SimplePage.html", { title => "Form Display" },
42 :     "Html");
43 :     # Get the parameter names.
44 :     my @params = $query->param();
45 :    
46 :     # Start the output table.
47 :     $builder->StartTable('Name', 'Value');
48 :    
49 :     # Create a row for each parameter.
50 :     for my $paramName (@params) {
51 :     my @paramValue = $query->param($paramName);
52 :     $builder->TableRow([$paramName, join " ", @paramValue]);
53 :     }
54 :    
55 :     # Close the table and finish the web page.
56 :     $builder->FinishTable();
57 :     $builder->Finish;
58 :    
59 :     1;

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3