diff --git a/wwwroot/inc/interface-8021q.php b/wwwroot/inc/interface-8021q.php index f38832722..7cc766aa1 100644 --- a/wwwroot/inc/interface-8021q.php +++ b/wwwroot/inc/interface-8021q.php @@ -429,11 +429,11 @@ function renderObject8021QPorts ($object_id) $uplinks = filter8021QChangeRequests ($vdom['vlanlist'], $desired_config, produceUplinkPorts ($vdom['vlanlist'], $desired_config, $vswitch['object_id'])); echo ''; + echo '
'; // port list + if ($req_port_name == ''); + printOpFormIntro ('save8021QConfig', array ('mutex_rev' => $vswitch['mutex_rev'], 'form_mode' => 'save')); echo ''; echo ''; echo $req_port_name == '' ? '' : ''; - 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 '
    portinterfacelinklast saved confignew config
    (zooming)
    '; if ($req_port_name == ''); 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 ''; echo ''; echo ''; echo ''; - echo '
    ' . getSelect ($port_options, array ('name' => 'from_port')) . '
    ↓ ↓ ↓
    ' . getSelect ($port_options, array ('name' => 'to_ports[]', 'size' => getConfigVar ('MAXSELSIZE'), 'multiple' => 1)) . '
    ' . getImageHREF ('COPY', 'duplicate', TRUE) . '
    '; + echo '
    '; finishPortlet(); } - echo ''; } else renderTrunkPortControls @@ -587,6 +585,7 @@ function renderObject8021QPorts ($object_id) $req_port_name, $desired_config[$req_port_name] ); + echo ''; echo ''; } @@ -677,6 +676,7 @@ function renderTrunkPortControls ($vswitch, $vdom, $port_name, $vlanport) 'form_mode' => 'save', ); printOpFormIntro ('save8021QConfig', $formextra); + echo ''; echo '
    '; echo ''; echo ''; @@ -772,6 +772,7 @@ function renderTrunkPortControls ($vswitch, $vdom, $port_name, $vlanport) echo ''; } echo '
    allowed
    '; + echo '
    '; echo ''; }