@@ -10001,6 +10001,18 @@ sub HTMLTopBanner{
1000110001"<tr><td class=\"aws\" valign=\"middle\"><b>$Message[133]:</b></td>";
1000210002 print "<td class=\"aws\" valign=\"middle\">";
1000310003 if ( $ENV{'GATEWAY_INTERFACE'} || !$StaticLinks ) {
10004+ print "<select class=\"aws_formfield\" name=\"databasebreak\">\n";
10005+ print "<option"
10006+ . ( $DatabaseBreak eq "month" ? " selected=\"selected\"" : "" )
10007+ . " value=\"month\">Monthly</option>\n";
10008+ print "<option"
10009+ . ( $DatabaseBreak eq "day" ? " selected=\"selected\"" : "" )
10010+ . " value=\"day\">Daily</option>\n";
10011+ print "<option"
10012+ . ( $DatabaseBreak eq "hour" ? " selected=\"selected\"" : "" )
10013+ . " value=\"hour\">Hourly</option>\n";
10014+ print "</select>\n";
10015+
1000410016 print "<select class=\"aws_formfield\" name=\"month\">\n";
1000510017 foreach ( 1 .. 12 ) {
1000610018 my $monthix = sprintf( "%02s", $_ );
@@ -10028,6 +10040,34 @@ sub HTMLTopBanner{
1002810040 . " value=\"$_\">$_</option>\n";
1002910041 }
1003010042 print "</select>\n";
10043+
10044+ if ( $DatabaseBreak eq 'day' ||
10045+ $DatabaseBreak eq 'hour') {
10046+ if (!$DayRequired) {
10047+ $DayRequired = $nowday;
10048+ }
10049+ print "<select class=\"aws_formfield\" name=\"day\">\n";
10050+ foreach ( 1 .. 31 ) {
10051+ print "<option"
10052+ . ( $DayRequired eq "$_" ? " selected=\"selected\"" : "" )
10053+ . " value=\"$_\">$_</option>\n";
10054+ }
10055+ print "</select>\n";
10056+ }
10057+
10058+ if ( $DatabaseBreak eq 'hour') {
10059+ if (!$HourRequired) {
10060+ $HourRequired = $nowhour;
10061+ }
10062+ print "<select class=\"aws_formfield\" name=\"day\">\n";
10063+ foreach ( 1 .. 31 ) {
10064+ print "<option"
10065+ . ( $HourRequired eq "$_" ? " selected=\"selected\"" : "" )
10066+ . " value=\"$_\">$_</option>\n";
10067+ }
10068+ print "</select>\n";
10069+ }
10070+
1003110071 print "<input type=\"hidden\" name=\"output\" value=\""
1003210072 . join( ',', keys %HTMLOutput )
1003310073 . "\" />\n";
0 commit comments