Ignore:
Timestamp:
07/28/10 16:46:21 (14 years ago)
Author:
Kris Deugau
Message:

/branches/htmlform

Move Javascript from the header into its own file
Convert index page (master block summary) to template
Convert header to template, use template header in main.cgi
and search.cgi - going to leave admin.cgi out for now
Update HTML in header, index, footer to HTML 4.01 strict
See #3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/htmlform/cgi-bin/main.cgi

    r450 r451  
    5555$ENV{HTML_TEMPLATE_ROOT} = '/home/kdeugau/dev/ipdb/trunk/templates';
    5656
    57 # Headerize!  Make sure we replace the $$EXTRA0$$ bit as needed.
    58 printHeader('', ($IPDBacl{$authuser} =~ /a/ ?
    59         '<td align=right><a href="/ip/cgi-bin/main.cgi?action=assign">Add new assignment</a>' : ''
    60         ));
     57my $header = HTML::Template->new(filename => "header.tmpl");
     58$header->param(version => $IPDB::VERSION);
     59$header->param(addperm => $IPDBacl{$authuser} =~ /a/);
     60print "Content-type: text/html\n\n", $header->output;
    6161
    6262# Set up the CGI object...
Note: See TracChangeset for help on using the changeset viewer.