diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-05-23 14:57:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-05-23 14:57:07 +0000 |
commit | 4a91019eb583e3136dc543555fc055db324c405b (patch) | |
tree | 6f8916889201f8f841109255bda13a95eaf817b1 /usr | |
parent | 58131cda3b44d1c0346129c1d1342a44a7d7d57e (diff) | |
download | pfsense-4a91019eb583e3136dc543555fc055db324c405b.zip pfsense-4a91019eb583e3136dc543555fc055db324c405b.tar.gz |
Allow additional entries to be inserted into the interfaces selection widget.
The first usage of this will be with carpdev.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/pkg_edit.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php index 018c2ba..b2b7509 100755 --- a/usr/local/www/pkg_edit.php +++ b/usr/local/www/pkg_edit.php @@ -351,6 +351,11 @@ if ($pkg['tabs'] <> "") { $fieldname .= "[]"; } echo "<select name='" . $fieldname . "'" . $size . $multiple . ">\n"; + if($pkga['add_to_interfaces_selection'] <> "") { + $SELECTED = ""; + if($pkga['add_to_interfaces_selection'] == $value) $SELECTED = " SELECTED"; + echo "<option value='" . $pkga['add_to_interfaces_selection'] . "'" . $SELECTED . ">" . $pkga['add_to_interfaces_selection'] . "</option>\n"; + } foreach ($config['interfaces'] as $ifname => $iface) { if ($iface['descr']) $ifdescr = $iface['descr']; |