IP Mode Page to configure this page." end if (ButtonType and ButtonType == "config") then local inputTable = web.cgiToLuaTable(cgi) if (RowId == "-1") then errorFlag, statusCode = lan.poolConfig(inputTable, "-1", "add") else errorFlag, statusCode = lan.poolConfig(inputTable, RowId, "edit") end -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) web.goToPage(NextPage, true, true) else -- for error if (errorFlag ~= "OK") then configRowId = RowId configRow = web.cgiToLuaTable(cgi) -- for Add elseif (configRowId == "-1") then configRow = db.getDefaults(true, "dhcpv6sLANAddrPool") -- for edit else configRow = db.getRow("dhcpv6sLANAddrPool", "_ROWID_", configRowId) end ?>