';
// port list
+ if ($req_port_name == '');
+ printOpFormIntro ('save8021QConfig', array ('mutex_rev' => $vswitch['mutex_rev'], 'form_mode' => 'save'));
echo '';
echo '| port | interface | link | last saved config | ';
echo $req_port_name == '' ? 'new config | ' : '(zooming) | ';
- if ($req_port_name == '');
- printOpFormIntro ('save8021QConfig', array ('mutex_rev' => $vswitch['mutex_rev'], 'form_mode' => 'save'));
$sockets = array();
if (isset ($_REQUEST['hl_port_id']))
{
@@ -547,17 +547,16 @@ function renderObject8021QPorts ($object_id)
echo "";
echo '' . getImageHREF ('SAVE', 'save configuration', TRUE) . '';
}
- echo '';
if (permitted (NULL, NULL, NULL, array (array ('tag' => '$op_recalc8021Q'))))
echo '' . getOpLink (array ('op' => 'exec8021QRecalc'), '', 'RECALC', 'Recalculate uplinks and downlinks') . '';
echo ' ';
if ($req_port_name == '');
echo '';
echo ' | ';
+ echo '';
// configuration of currently selected port, if any
if (!array_key_exists ($req_port_name, $desired_config))
{
- echo ' | ';
$port_options = array();
foreach ($desired_config as $pn => $portinfo)
if (editable8021QPort ($portinfo))
@@ -568,16 +567,15 @@ function renderObject8021QPorts ($object_id)
else
{
startPortlet ('port duplicator');
- echo '';
printOpFormIntro ('save8021QConfig', array ('mutex_rev' => $vswitch['mutex_rev'], 'form_mode' => 'duplicate'));
+ echo '';
echo '| ' . getSelect ($port_options, array ('name' => 'from_port')) . ' | ';
echo '| ↓ ↓ ↓ | ';
echo '| ' . getSelect ($port_options, array ('name' => 'to_ports[]', 'size' => getConfigVar ('MAXSELSIZE'), 'multiple' => 1)) . ' | ';
echo '| ' . getImageHREF ('COPY', 'duplicate', TRUE) . ' | ';
- echo ' ';
+ echo ' ';
finishPortlet();
}
- echo ' | ';
}
else
renderTrunkPortControls
@@ -587,6 +585,7 @@ function renderObject8021QPorts ($object_id)
$req_port_name,
$desired_config[$req_port_name]
);
+ echo '';
echo '