Ignore:
Timestamp:
07/27/10 17:06:18 (14 years ago)
Author:
Kris Deugau
Message:

/branches/htmlform

Remove printFooter from CommonWeb.pm
Add HTML::Template to main.cgi, admin.cgi, and search.cgi
Convert footer.inc to templates/footer.tmpl, and normalize
output for three scripts above
See #3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/htmlform/cgi-bin/CommonWeb.pm

    r447 r449  
    1616$VERSION     = 1.00;
    1717@ISA         = qw(Exporter);
    18 @EXPORT_OK      = qw(&printFooter &printHeader &printError &printAndExit &desanitize &cleanInput &desanitize);
     18@EXPORT_OK      = qw( &printHeader &printError &printAndExit &desanitize &cleanInput &desanitize);
    1919
    2020@EXPORT      = (); #export nothing by default
    21 %EXPORT_TAGS = ( ALL => [qw( &printFooter &printHeader &printError
     21%EXPORT_TAGS = ( ALL => [qw( &printHeader &printError
    2222                                &printAndExit &desanitize &cleanInput )],
    23                  lean    => [qw( &printFooter &printHeader &printError
     23                 lean    => [qw( &printHeader &printError
    2424                                &printAndExit &cleanInput )]
    2525                );
     
    4747}
    4848
    49 sub printFooter
    50 {
    51   open FILE, "../footer.inc"
    52         or croak $!;
    53   while (<FILE>)
    54   {
    55     print;
    56   }
    57   close FILE;
    58 }
    59 
    6049sub printError($)
    6150{
     
    7665        </center>
    7766        );
    78         printFooter();
     67        print "<br>would print footer but already dun gone and shot($self->foot)\n";
    7968        exit(0);
    8069}
Note: See TracChangeset for help on using the changeset viewer.