From: eldy <> Date: Tue, 28 May 2002 00:27:45 +0000 (+0000) Subject: Width of chart title is now 70% instead of 66% X-Git-Tag: AWSTATS_4_1_BETA~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d31340e9ac3f4c77feb05d07dfab558c37537f1c;p=thirdparty%2FAWStats.git Width of chart title is now 70% instead of 66% --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index f942642b..13a179d7 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -443,7 +443,7 @@ DIV { font: 12px arial,verdana,helvetica; text-align:justify; } .TABLEBORDER { background-color: #$color_TableBorder; } .TABLEFRAME { background-color: #$color_TableBG; padding: 2px 2px 2px 2px; margin-top: 0 } .TABLEDATA { background-color: #$color_Background; } -.TABLETITLEFULL { font: 14px verdana, arial, helvetica, sans-serif; font-weight: bold; background-color: #$color_TableBGTitle; text-align: center; width: 66%; margin-bottom: 0; padding: 2px; } +.TABLETITLEFULL { font: 14px verdana, arial, helvetica, sans-serif; font-weight: bold; background-color: #$color_TableBGTitle; text-align: center; margin-bottom: 0; padding: 2px; } .TABLETITLEBLANK { font: 14px verdana, arial, helvetica, sans-serif; background-color: #$color_Background; } .CFormFields { font: 14px verdana, arial, helvetica; } .CTooltip { position:absolute; top:0px; left:0px; z-index:2; width:280; visibility:hidden; font: 8pt MS Comic Sans,arial,sans-serif; background-color: #FFFFE6; padding: 8px; border: 1px solid black; } @@ -494,21 +494,32 @@ sub html_end { } } +#------------------------------------------------------------------------------ +# Function: Print on stdout tab header of a chart +# Input: $title $tooltip_number [$width percentage of chart title] +# Output: - +#------------------------------------------------------------------------------ sub tab_head { my $title=shift; my $tooltip=shift; + my $width=shift||70; print "
\n"; print "\n"; if ($tooltip) { - print ""; + print ""; } else { - print ""; + print ""; } - print "\n"; + print "\n"; print "
$title
$title
$title
$title  
 
"; } +#------------------------------------------------------------------------------ +# Function: Print on stdout tab ender of a chart +# Input: - +# Output: - +#------------------------------------------------------------------------------ sub tab_end { print "
"; print "
\n\n"; @@ -5153,9 +5164,9 @@ EOF # By Keyphrases if ($ShowKeyphrasesStats && $ShowKeywordsStats) { print "\n"; } if ($Debug) { debug("ShowKeyphrasesStats",2); } - print "$CENTER 
"; + print "$CENTER 
"; $MaxNbOfKeyphrasesShown = $TotalDifferentKeyphrases if $MaxNbOfKeyphrasesShown > $TotalDifferentKeyphrases; - &tab_head("$Message[43] ($Message[77] $MaxNbOfKeyphrasesShown)
$Message[80]",19); + &tab_head("$Message[43] ($Message[77] $MaxNbOfKeyphrasesShown)
$Message[80]",19,($ShowKeyphrasesStats && $ShowKeywordsStats)?95:70); print "$TotalDifferentKeyphrases $Message[103]$Message[14]$Message[15]\n"; $total_s=0; my $count=0; @@ -5182,9 +5193,9 @@ EOF # By Keywords if ($ShowKeyphrasesStats && $ShowKeywordsStats) { print "\n"; } if ($Debug) { debug("ShowKeywordsStats",2); } - print "$CENTER 
"; + print "$CENTER 
"; $MaxNbOfKeywordsShown = $TotalDifferentKeywords if $MaxNbOfKeywordsShown > $TotalDifferentKeywords; - &tab_head("$Message[44] ($Message[77] $MaxNbOfKeywordsShown)
$Message[80]",19); + &tab_head("$Message[44] ($Message[77] $MaxNbOfKeywordsShown)
$Message[80]",19,($ShowKeyphrasesStats && $ShowKeywordsStats)?95:70); print "$TotalDifferentKeywords $Message[13]$Message[14]$Message[15]\n"; $total_s=0; my $count=0;