pending_mac_list.report.php (fogproject-1.5.7) | : | pending_mac_list.report.php (fogproject-1.5.8) | ||
---|---|---|---|---|
skipping to change at line 125 | skipping to change at line 125 | |||
echo '<form class="form-horizontal" method="post" action="' | echo '<form class="form-horizontal" method="post" action="' | |||
. $this->formAction | . $this->formAction | |||
. '">'; | . '">'; | |||
echo '<div class="panel panel-info">'; | echo '<div class="panel panel-info">'; | |||
echo '<div class="panel-heading text-center">'; | echo '<div class="panel-heading text-center">'; | |||
echo '<h4 class="title">'; | echo '<h4 class="title">'; | |||
echo $this->title; | echo $this->title; | |||
echo '</h4>'; | echo '</h4>'; | |||
echo '</div>'; | echo '</div>'; | |||
echo '<div class="panel-body">'; | echo '<div class="panel-body">'; | |||
if (count($this->data) > 0) { | if (is_array($this->data) && count($this->data) > 0) { | |||
echo '<div class="text-center">'; | echo '<div class="text-center">'; | |||
echo '<a href="' | echo '<a href="' | |||
. $this->formAction | . $this->formAction | |||
. '&aprvall=1">' | . '&aprvall=1">' | |||
. _('Approve All Pending MACs for All Hosts') | . _('Approve All Pending MACs for All Hosts') | |||
. '</a>'; | . '</a>'; | |||
echo '</div>'; | echo '</div>'; | |||
echo '<div class="text-center">'; | echo '<div class="text-center">'; | |||
printf( | printf( | |||
$this->reportString, | $this->reportString, | |||
skipping to change at line 150 | skipping to change at line 150 | |||
'PendingMACsList', | 'PendingMACsList', | |||
_('Export PDF'), | _('Export PDF'), | |||
_('Export PDF'), | _('Export PDF'), | |||
self::$pdffile | self::$pdffile | |||
); | ); | |||
echo '</div>'; | echo '</div>'; | |||
} | } | |||
$this->ReportMaker->outputReport(0, true); | $this->ReportMaker->outputReport(0, true); | |||
echo '</div>'; | echo '</div>'; | |||
echo '</div>'; | echo '</div>'; | |||
if (count($this->data) > 0) { | if (is_array($this->data) && count($this->data) > 0) { | |||
echo '<div class="panel panel-info">'; | echo '<div class="panel panel-info">'; | |||
echo '<div class="panel-heading text-center">'; | echo '<div class="panel-heading text-center">'; | |||
echo '<h4 class="title">'; | echo '<h4 class="title">'; | |||
echo _('Pending MAC Actions'); | echo _('Pending MAC Actions'); | |||
echo '</h4>'; | echo '</h4>'; | |||
echo '</div>'; | echo '</div>'; | |||
echo '<div class="panel-body">'; | echo '<div class="panel-body">'; | |||
echo '<div class="form-group">'; | echo '<div class="form-group">'; | |||
echo '<label for="approvependmac" class="control-label col-xs-4">'; | echo '<label for="approvependmac" class="control-label col-xs-4">'; | |||
echo _('Approve Selected MACs'); | echo _('Approve Selected MACs'); | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |