]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Added the AllowFullYearView parameter.
authoreldy <>
Fri, 19 Sep 2003 22:07:32 +0000 (22:07 +0000)
committereldy <>
Fri, 19 Sep 2003 22:07:32 +0000 (22:07 +0000)
wwwroot/cgi-bin/awstats.pl

index 88fa42b2f9b0bb4346f7fb91121b3c2efa99094f..1b56dcff5ba25c06ae9f2f96e158115b0ce8030a 100644 (file)
@@ -6794,8 +6794,10 @@ if (scalar keys %HTMLOutput) {
                        print "<td class=\"aws\" valign=\"middle\">";
                        if ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) {
                                print "<select class=\"aws_formfield\" name=\"month\">\n";
-                               foreach my $ix (1..12) { my $monthix=sprintf("%02s",$ix); print "<option".($MonthRequired eq "$monthix"?" selected":"")." value=\"$monthix\">$MonthNumLib{$monthix}\n"; }
-                               print "<option".($MonthRequired eq 'all'?" selected":"")." value='all'>---\n";
+                               foreach my $ix (1..12) { my $monthix=sprintf("%02s",$ix); print "<option".($MonthRequired eq "$monthix"?" selected":"")." value=\"$monthix\">$MonthNumLib{$monthix}</option>\n"; }
+                               if ($AllowFullYearView >= 2) {
+                                       print "<option".($MonthRequired eq 'all'?" selected":"")." value='all'>- Year -</option>\n";
+                               }
                                print "</select>\n";
                                print "<select class=\"aws_formfield\" name=\"year\">\n";
                                # Add YearRequired in list if not in ListOfYears