Fixup lagg GUI.

This commit is contained in:
Ermal Luçi 2008-07-25 21:05:17 +00:00
parent 0a140d2eaa
commit 6c6a618ac4
2 changed files with 4 additions and 4 deletions

View File

@ -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']);?>

View File

@ -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>