summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-09-16 16:49:38 +0000
committerErmal <eri@pfsense.org>2010-09-16 16:49:38 +0000
commitef05ae5f7882e0783e13bfed9d32fbe620ced641 (patch)
tree53fcb5a34eabcd5ff8f36818c63466034b0026ba /usr/local/www/system_gateways.php
parent7ec17767bf222e8fbcdb854c291372d119c1d50d (diff)
downloadpfsense-ef05ae5f7882e0783e13bfed9d32fbe620ced641.zip
pfsense-ef05ae5f7882e0783e13bfed9d32fbe620ced641.tar.gz
Actually display a the right class for static gateways. Also fix whitespace
Diffstat (limited to 'usr/local/www/system_gateways.php')
-rwxr-xr-xusr/local/www/system_gateways.php34
1 files changed, 16 insertions, 18 deletions
diff --git a/usr/local/www/system_gateways.php b/usr/local/www/system_gateways.php
index 0e3bc43..b39af37 100755
--- a/usr/local/www/system_gateways.php
+++ b/usr/local/www/system_gateways.php
@@ -166,33 +166,31 @@ include("head.inc");
<?php $i = 0; foreach ($a_gateways as $gateway): ?>
<tr>
<td class="listlr" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
- <?php
+ <?php
echo $gateway['name'];
- if(isset($gateway['defaultgw'])) {
+ if(isset($gateway['defaultgw']))
echo " <strong>(default)<strong>";
- }
- ?>
-
+ ?>
</td>
<td class="listr" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
- <?php
- echo htmlspecialchars(convert_friendly_interface_to_friendly_descr($gateway['friendlyiface']));
- ?>
+ <?php
+ echo htmlspecialchars(convert_friendly_interface_to_friendly_descr($gateway['friendlyiface']));
+ ?>
</td>
<td class="listr" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
- <?php
- echo $gateway['gateway'] . " ";
- ?>
+ <?php
+ echo $gateway['gateway'] . " ";
+ ?>
</td>
<td class="listr" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
- <?php
- echo htmlspecialchars($gateway['monitor']) . " ";
- ?>
+ <?php
+ echo htmlspecialchars($gateway['monitor']) . " ";
+ ?>
</td>
- <?php if($gateway['attribute'] == "system") : ?>
- <td class="listbgns" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
- <?php else : ?>
+ <?php if (is_numeric($gateway['attribute'])) : ?>
<td class="listbg" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
+ <?php else : ?>
+ <td class="listbgns" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
<?php endif; ?>
<?=htmlspecialchars($gateway['descr']);?>&nbsp;
</td>
@@ -219,7 +217,7 @@ include("head.inc");
</table>
</tr>
- <?php $i++; endforeach; ?>
+ <?php $i++; endforeach; ?>
<tr>
<td class="list" colspan="5"></td>
<td class="list">
OpenPOWER on IntegriCloud