diff options
author | Ermal <eri@pfsense.org> | 2010-09-16 16:49:38 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-09-16 16:49:38 +0000 |
commit | ef05ae5f7882e0783e13bfed9d32fbe620ced641 (patch) | |
tree | 53fcb5a34eabcd5ff8f36818c63466034b0026ba /usr | |
parent | 7ec17767bf222e8fbcdb854c291372d119c1d50d (diff) | |
download | pfsense-ef05ae5f7882e0783e13bfed9d32fbe620ced641.zip pfsense-ef05ae5f7882e0783e13bfed9d32fbe620ced641.tar.gz |
Actually display a the right class for static gateways. Also fix whitespace
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/system_gateways.php | 34 |
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']);?> </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"> |