VLAN Configuration<\/a> to configure available VLANs." end if (ButtonType and ButtonType == "add") then -- if not allowed to edit if (ACCESS_LEVEL ~= 0) then NextPage = "vlanAvailable" statusMessage = db.getAttribute("stringsMap", "stringId", "ADMIN_REQD", LANGUAGE) else configRowId = "-1" end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "edit") then -- if not allowed to edit if (ACCESS_LEVEL ~= 0) then NextPage = "vlanAvailable" statusMessage = db.getAttribute("stringsMap", "stringId", "ADMIN_REQD", LANGUAGE) else local field, splitted, rows = web.cgiSearch(cgi, "vlan") if (rows and rows["1"]) then local rowid=db.getAttribute("vlan","vlanId",rows["1"],"_ROWID_") configRowId = rowid RowId = rowid else NextPage="vlanAvailable" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "delete") then local field, splitted, rows = web.cgiSearch(cgi, "vlan") -- if any rows to delete if (rows) then errorFlag, statusCode = vlanConfig.vlanDeleteCheck (rows) if (errorFlag == "OK") then errorFlag, statusCode = vlanConfig.vlanConfig (rows, "-1", "delete") end end -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or statusCode web.goToPage(NextPage, true, true) else ?> $|COMPANY_NAME|$ : $|APP_NAME|$
$| statusMessage |$
Available VLANsLogout
$| initialDescription or '' |$
 
List of available VLANs
Name ID
$| row["vlan.vlanName"] or '' |$ $| row["vlan.vlanId"] or '' |$
Helpful Hints...
$| helpfullHints or '' |$