diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-07 10:06:12 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-07 10:06:12 -0500 |
commit | 05ff0c6569cf620bb5d17418f30d64a42e955dbd (patch) | |
tree | 16077ed5dde97ea62d2f9c236334ea4f2c49b1f2 /src/usr/local/www | |
parent | 37d4f3639a9fab1ccfcb53130aff66e2140a72d1 (diff) | |
parent | 799969cbf52499bc39deb44e18f32fedea2cb3dd (diff) | |
download | pfsense-05ff0c6569cf620bb5d17418f30d64a42e955dbd.zip pfsense-05ff0c6569cf620bb5d17418f30d64a42e955dbd.tar.gz |
Merge pull request #2366 from NOYB/HTML_Compliance_-_Firewall_/_Schedules_/_Edit
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/firewall_schedule_edit.php | 13 |
1 files 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 190a1d0..31238d0 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 .= - '<table class="table table-condensed" border="1" cellspacing="1" cellpadding="1" id="calTable' . $monthcounter . $yearcounter . '" > - <thead><tr class="info"><td colspan="7" align="center" ><b>' . date("F_Y", mktime(0, 0, 0, date($monthcounter), 1, date($yearcounter))) . '</b></td> + '<table class="table table-condensed table-bordered" id="calTable' . $monthcounter . $yearcounter . '" > + <thead><tr class="info"><td colspan="7" class="text-center"><b>' . date("F_Y", mktime(0, 0, 0, date($monthcounter), 1, date($yearcounter))) . '</b></td> </tr> <tr> <th class="text-center" style="cursor: pointer;" onclick="daytoggle(\'w1p1\');">' . gettext("Mon") . '</th> @@ -325,7 +325,14 @@ function build_date_table() { $mostr .= '<td class="text-center"></td>'; } - if ($positioncounter == 7 || $daycounter > $numberofdays) { + if ($daycounter > $numberofdays) { + while ($positioncounter < 7) { + $mostr .= '<td class="text-center"></td>'; + $positioncounter++; + } + } + + if ($positioncounter == 7) { $positioncounter = 1; $mostr .= "</tr>"; } else { |