From 242a933146709e45698edf22985a51d0671b1eb2 Mon Sep 17 00:00:00 2001 From: Colin Fleming Date: Thu, 18 Apr 2013 17:02:14 +0100 Subject: Tidy up "firewall_schedule_edit.php" ID statements (DIV tags) cannot take a space separated list of words, so use the underscore character between the month and year. Make the ID statement in the TABLE tags unique by adding the month and year PHP variables to the ID At the end of the month, the TR tag is not being closed, so add a check to see if the day count is greater than the number of days --- usr/local/www/firewall_schedule_edit.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr/local/www/firewall_schedule_edit.php b/usr/local/www/firewall_schedule_edit.php index 0584398..f430682 100644 --- a/usr/local/www/firewall_schedule_edit.php +++ b/usr/local/www/firewall_schedule_edit.php @@ -808,7 +808,7 @@ EOD; $monthlimit = $monthcounter + 12; $yearcounter = date("Y"); for ($k=0; $k<12; $k++){?> - + -
" style=" position:relative; display:"> - - +
" style=" position:relative; display:"> +
+ @@ -877,7 +877,7 @@ EOD; echo ""; } - if ($positioncounter ==7){ + if ($positioncounter == 7 || $daycounter > $numberofdays){ $positioncounter = 1; echo ""; } -- cgit v1.1