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 "
| $title | "; + print "|
| $title | "; } else { - print "|
| $title | "; + print "|
| $title | "; } - print "\n"; print " |