mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Move interface to top
This commit is contained in:
parent
f19341b187
commit
64391455cf
@ -193,6 +193,28 @@ function enable_change(enable_over) {
|
||||
Enable PPPoE server</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><b>Interface</b></td>
|
||||
<td width="78%" valign="top" class="vtable">
|
||||
|
||||
<select name="interface" class="formfld" id="interface">
|
||||
<?php
|
||||
$interfaces = array('lan' => 'LAN', 'wan' => 'WAN');
|
||||
for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
|
||||
if (isset($config['interfaces']['opt' . $i]['enable']))
|
||||
$interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr'];
|
||||
}
|
||||
foreach ($interfaces as $iface => $ifacename):
|
||||
?>
|
||||
<option value="<?=$iface;?>" <?php if ($iface == $pconfig['interface']) echo "selected"; ?>>
|
||||
<?=htmlspecialchars($ifacename);?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select> <br>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq">Max. concurrent connections</td>
|
||||
<td width="78%" class="vtable">
|
||||
@ -251,27 +273,7 @@ function enable_change(enable_over) {
|
||||
to the RADIUS server.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><b>Interface</b></td>
|
||||
<td width="78%" valign="top" class="vtable">
|
||||
|
||||
<select name="interface" class="formfld" id="interface">
|
||||
<?php
|
||||
$interfaces = array('lan' => 'LAN', 'wan' => 'WAN');
|
||||
for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
|
||||
if (isset($config['interfaces']['opt' . $i]['enable']))
|
||||
$interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr'];
|
||||
}
|
||||
foreach ($interfaces as $iface => $ifacename):
|
||||
?>
|
||||
<option value="<?=$iface;?>" <?php if ($iface == $pconfig['interface']) echo "selected"; ?>>
|
||||
<?=htmlspecialchars($ifacename);?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select> <br>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td height="16" colspan="2" valign="top"></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user