Merge pull request #2366 from NOYB/HTML_Compliance_-_Firewall_/_Schedules_/_Edit

This commit is contained in:
Stephen Beaver 2016-01-07 10:06:12 -05:00
commit 05ff0c6569

View File

@ -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 {