From 799969cbf52499bc39deb44e18f32fedea2cb3dd Mon Sep 17 00:00:00 2001 From: NOYB Date: Thu, 7 Jan 2016 00:34:38 -0800 Subject: [PATCH] HTML Compliance - Firewall / Schedules / Edit The align attribute on the td element is obsolete. Use CSS instead. The cellspacing attribute on the table element is obsolete. Use CSS instead. The cellpadding attribute on the table element is obsolete. Use CSS instead. The border attribute on the table element is presentational markup. Consider using CSS instead. A table row was 6 columns wide, which is less than the column count established by the first row (7). --- src/usr/local/www/firewall_schedule_edit.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/usr/local/www/firewall_schedule_edit.php b/src/usr/local/www/firewall_schedule_edit.php index 190a1d0d2f..31238d08dc 100644 --- a/src/usr/local/www/firewall_schedule_edit.php +++ b/src/usr/local/www/firewall_schedule_edit.php @@ -286,8 +286,8 @@ function build_date_table() { $mostr .= '" class="col-md-6">'; $mostr .= - ' - + '
' . date("F_Y", mktime(0, 0, 0, date($monthcounter), 1, date($yearcounter))) . '
+ @@ -325,7 +325,14 @@ function build_date_table() { $mostr .= ''; } - if ($positioncounter == 7 || $daycounter > $numberofdays) { + if ($daycounter > $numberofdays) { + while ($positioncounter < 7) { + $mostr .= ''; + $positioncounter++; + } + } + + if ($positioncounter == 7) { $positioncounter = 1; $mostr .= ""; } else {
' . date("F_Y", mktime(0, 0, 0, date($monthcounter), 1, date($yearcounter))) . '
' . gettext("Mon") . '