mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fixup lagg GUI.
This commit is contained in:
parent
0a140d2eaa
commit
6c6a618ac4
@ -100,7 +100,7 @@ include("head.inc");
|
||||
<?php $i = 0; foreach ($a_laggs as $lagg): ?>
|
||||
<tr>
|
||||
<td class="listlr">
|
||||
<?=htmlspecialchars($lagg['if']);?>
|
||||
<?=htmlspecialchars(strtoupper($lagg['laggif']));?>
|
||||
</td>
|
||||
<td class="listr">
|
||||
<?=htmlspecialchars($lagg['members']);?>
|
||||
|
||||
@ -35,6 +35,7 @@ if (!is_array($config['laggs']['lagg']))
|
||||
|
||||
$a_laggs = &$config['laggs']['lagg'];
|
||||
|
||||
$portlist = get_interface_list();
|
||||
|
||||
$id = $_GET['id'];
|
||||
if (isset($_POST['id']))
|
||||
@ -61,7 +62,7 @@ if ($_POST) {
|
||||
|
||||
if (!$input_errors) {
|
||||
$lagg = array();
|
||||
$lagg['members'] = $_POST['members'];
|
||||
$lagg['members'] = implode(',', $_POST['members']);
|
||||
$lagg['descr'] = $_POST['descr'];
|
||||
$lagg['laggif'] = $_POST['laggif'];
|
||||
|
||||
@ -97,12 +98,11 @@ include("head.inc");
|
||||
<td width="78%" class="vtable">
|
||||
<select name="members[]" multiple="true" size="4" class="formselect">
|
||||
<?php
|
||||
$portlist = get_configured_interface_with_descr();
|
||||
foreach ($portlist as $ifn => $ifinfo) {
|
||||
echo "<option value=\"{$ifn}\"";
|
||||
if (stristr($pconfig['members'], $ifn))
|
||||
echo "selected";
|
||||
echo ">{$ifinfo}</option>";
|
||||
echo ">". $ifn ."(".$ifinfo['mac'] .")</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user