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/admin.cgi

    r447 r449  
    1616use CGI::Carp qw(fatalsToBrowser);
    1717use CGI::Simple;
     18use HTML::Template;
    1819use DBI;
    1920use CommonWeb qw(:ALL);
     
    5152}
    5253initIPDBGlobals($ip_dbh);
     54
     55##fixme - need to autofill this somehow
     56$ENV{HTML_TEMPLATE_ROOT} = '/home/kdeugau/dev/ipdb/trunk/templates';
    5357
    5458if ($IPDBacl{$authuser} !~ /A/) {
     
    660664print qq(<hr><a href="/ip/">Back</a> to main interface</a>\n);
    661665
    662 printFooter;
     666# We print the footer here, so we don't have to do it elsewhere.
     667my $footer = HTML::Template->new(filename => "footer.tmpl");
     668# we're already in the admin tools, no need to provide a bottom link.  maybe.
     669#$footer->param(adminlink => ($IPDBacl{$authuser} =~ /A/));
     670
     671print $footer->output;
    663672
    664673$ip_dbh->disconnect;
Note: See TracChangeset for help on using the changeset viewer.