From: Andre Lorbach Date: Tue, 26 Nov 2019 09:51:50 +0000 (+0100) Subject: Add SelectBox for DatabaseBreak Mode: month,day and hour. X-Git-Tag: AWSTATS_7_8~1^2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F148%2Fhead;p=thirdparty%2FAWStats.git Add SelectBox for DatabaseBreak Mode: month,day and hour. If day is selected, show day selectbox after month selectbox. If hour is selected, show hour selectbox after day selectbox. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 7ec51252..9ac82aec 100755 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -10001,6 +10001,18 @@ sub HTMLTopBanner{ "$Message[133]:"; print ""; if ( $ENV{'GATEWAY_INTERFACE'} || !$StaticLinks ) { + print "\n"; + print "\n"; + + if ( $DatabaseBreak eq 'day' || + $DatabaseBreak eq 'hour') { + if (!$DayRequired) { + $DayRequired = $nowday; + } + print "\n"; + } + + if ( $DatabaseBreak eq 'hour') { + if (!$HourRequired) { + $HourRequired = $nowhour; + } + print "\n"; + } + print "\n";