From 2ba42d68a5c98af2a134afcdb20746e28a3f46fd Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 27 Jun 2010 20:16:42 +0100 Subject: [PATCH] html fixups --- cgi | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/cgi b/cgi index 09762a2..dc3137c 100755 --- a/cgi +++ b/cgi @@ -1,7 +1,7 @@ #!/usr/bin/perl -w use strict qw(vars); -use CGI qw/:standard/; +use CGI qw/:standard -no_xhtml/; sub fail ($) { print(header(-status=>500), @@ -265,16 +265,16 @@ sub start_page ($) { if ($couldbe eq $current) { print "$show"; } else { - print "{Variable}; $current2= $$current2; $current2= $couldbe if $nav2->{Param} eq $nav->{Param}; next if $current2 eq $nav2->{Default}; - print $delim2, "$nav2->{Param}=$current2"; + $u .= $delim2; $u .= "$nav2->{Param}=$current2"; $delim2= '&'; } - print "\">$show"; + print a({href=>$u}, $show); } $delim= ' | '; } @@ -297,8 +297,7 @@ if ($detail) { my $tsloth= $xsloth + $g->{Slower}; my $imgurl= "$self?graph=$detail§ion=$section". "&sloth=$tsloth&elem=$elem"; - print ""; - print "\n"; + print a({href=>"$imgurl&w=780&h=800"}, img({src=>$imgurl})); } } print end_html(); @@ -328,14 +327,13 @@ if (param('debug')) { start_page("$section graphs"); foreach my $group (@{ $section_groups{$section} }) { - print ""; + print a({href=>"$self?detail=$group§ion=$section"}); my $imgurl= "$self?graph=$group§ion=$section"; my $elems= $group_elems{$section,$group}; if (@$elems > 1) { print "
"; } foreach my $elem (@$elems) { my $g= $graphs{$section,$group,$elem}; - print "{Slower})."\">"; + print img({src=>"$imgurl&elem=$elem&sloth=".($sloth + $g->{Slower})}); } if (@$elems > 1) { print "
"; } print "
\n"; -- 2.30.2