summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_gateway_groups.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-01-13 15:11:23 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-01-13 15:11:23 -0500
commit060ed23871a0933021e68078efceb6ed64658d82 (patch)
tree434e5315f7aefb15e389f439133a9a41e40340f7 /src/usr/local/www/status_gateway_groups.php
parentd642aca406161552dbd6b2c19585eaba42a242a6 (diff)
downloadpfsense-060ed23871a0933021e68078efceb6ed64658d82.zip
pfsense-060ed23871a0933021e68078efceb6ed64658d82.tar.gz
Fixed #5566
Diffstat (limited to 'src/usr/local/www/status_gateway_groups.php')
-rwxr-xr-xsrc/usr/local/www/status_gateway_groups.php80
1 files changed, 39 insertions, 41 deletions
diff --git a/src/usr/local/www/status_gateway_groups.php b/src/usr/local/www/status_gateway_groups.php
index d244b88..d9708b4 100755
--- a/src/usr/local/www/status_gateway_groups.php
+++ b/src/usr/local/www/status_gateway_groups.php
@@ -95,24 +95,23 @@ display_top_tabs($tab_array);
<div class="panel panel-default">
<div class="panel-heading"><h2 class="panel-title"><?=gettext('Gateway Groups')?></h2></div>
<div class="panel-body">
-
-<div class="table-responsive">
- <table class="table table-hover table-condensed table-striped">
- <thead>
- <tr>
- <th><?=gettext("Group Name"); ?></th>
- <th><?=gettext("Gateways"); ?></th>
- <th><?=gettext("Description"); ?></th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($a_gateway_groups as $gateway_group): ?>
- <tr>
- <td>
- <?=htmlspecialchars($gateway_group['name'])?>
- </td>
- <td>
- <table class="table table-bordered table-condensed">
+ <div class="table-responsive">
+ <table class="table table-hover table-condensed table-striped">
+ <thead>
+ <tr>
+ <th><?=gettext("Group Name"); ?></th>
+ <th><?=gettext("Gateways"); ?></th>
+ <th><?=gettext("Description"); ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php foreach ($a_gateway_groups as $gateway_group): ?>
+ <tr>
+ <td>
+ <?=htmlspecialchars($gateway_group['name'])?>
+ </td>
+ <td>
+ <table class="table table-bordered table-condensed">
<?php
/* process which priorities we have */
$priorities = array();
@@ -123,17 +122,17 @@ display_top_tabs($tab_array);
$priority_count = count($priorities);
ksort($priorities);
?>
- <thead>
- <tr>
+ <thead>
+ <tr>
<?php
// Make a column for each tier
foreach ($priorities as $number => $tier) {
echo "<th>" . sprintf(gettext("Tier %s"), $number) . "</th>";
}
?>
- </tr>
- </thead>
- <tbody>
+ </tr>
+ </thead>
+ <tbody>
<?php
/* inverse gateway group to gateway priority */
$priority_arr = array();
@@ -148,7 +147,7 @@ display_top_tabs($tab_array);
foreach ($tier as $member) {
/* we always have $priority_count fields */
?>
- <tr>
+ <tr>
<?php
$c = 1;
while ($c <= $priority_count) {
@@ -176,37 +175,36 @@ display_top_tabs($tab_array);
$bgcolor = WHITE;
}
?>
- <td bgcolor="<?=$bgcolor?>">
- <?=htmlspecialchars($member);?>,<br/><?=$online?>
- </td>
+ <td bgcolor="<?=$bgcolor?>">
+ <?=htmlspecialchars($member);?>,<br/><?=$online?>
+ </td>
<?php
} else {
?>
- <td>
- </td>
+ <td>
+ </td>
<?php }
$c++;
}
?>
- </tr>
+ </tr>
<?php
}
$p++;
}
?>
- </tbody>
- </table>
- </td>
- <td>
- <?=htmlspecialchars($gateway_group['descr'])?>
- </td>
- </tr>
+ </tbody>
+ </table>
+ </td>
+ <td>
+ <?=htmlspecialchars($gateway_group['descr'])?>
+ </td>
+ </tr>
<?php endforeach; ?>
- </tbody>
- </table>
-</div>
-
+ </tbody>
+ </table>
+ </div>
</div>
</div>
OpenPOWER on IntegriCloud