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.

Location:
branches/htmlform/cgi-bin
Files:
2 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...
  • branches/htmlform/cgi-bin/search.cgi

    r449 r451  
    7474}
    7575
    76 # Headerize!  Make sure we replace the $$EXTRA0$$ bit as needed.
    77 printHeader('', ($IPDBacl{$authuser} =~ /a/ ?
    78         '<td align=right><a href="/ip/cgi-bin/main.cgi?action=assign">Add new assignment</a></td>' : ''
    79         ));
     76my $header = HTML::Template->new(filename => "header.tmpl");
     77$header->param(version => $IPDB::VERSION);
     78$header->param(addperm => $IPDBacl{$authuser} =~ /a/);
     79print "Content-type: text/html\n\n", $header->output;
    8080
    8181if ($webvar{stype} eq 'q') {
Note: See TracChangeset for help on using the changeset viewer.