<?php /** * Display VLAN details ***********************************************************************/ /* verify that user is authenticated! */ isUserAuthenticated(); # get VLAN details $vlan = getVLANbyId($_GET['subnetId']); # not existing if (!$vlan) { die("<h4>" . _('Error') . "</h4><div class='alert alert-danger'>" . _('Invalid VLAN id') . "!</div>"); } # get all site settings $settings = getAllSettings(); # get custom VLAN fields $customVLANFields = getCustomFields('vlans'); ?> <!-- content print! --> <!-- for adding IP address! --> <div id="subnetId" style="display:none"><?php print $subnetId; ?> </div> <!-- subnet details upper table --> <h4><?php print _('VLAN details'); ?>
/** * Get VLAN number form Id */ function subnetGetVLANdetailsById($vlanId) { return getVLANbyId($vlanId); }
<?php /** * Display VLAN details ***********************************************************************/ /* verify that user is authenticated! */ isUserAuthenticated(); # get VLAN details $vlan = getVLANbyId($_REQUEST['vlanId']); # not existing if (!$vlan) { die("<div class='alert alert-danger'>" . _('Invalid VLAN id') . "!</div>"); } # get all site settings $settings = getAllSettings(); # get custom VLAN fields $customVLANFields = getCustomFields('vlans'); ?> <!-- content print! --> <!-- for adding IP address! --> <div id="subnetId" style="display:none"><?php print $subnetId; ?> </div> <!-- subnet details upper table --> <h4><?php print _('VLAN details'); ?>