= tonumber (maxLimitVal)) then statusMessage = "Can't add configuration to this table. Maximum limit reached." NextPage = "qos" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "edit") then configRowId = RowId web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "delete") then local field, splitted, rows = web.cgiSearch(cgi, "NeworkQos") -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.deleteQosProfiles (rows) 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) elseif (ButtonType and ButtonType == "enable") then local field, splitted, rows = web.cgiSearch(cgi, "NeworkQos") -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.modifyQosProfile (rows, 'enable') 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) elseif (ButtonType and ButtonType == "disable") then local field, splitted, rows = web.cgiSearch(cgi, "NeworkQos") -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.modifyQosProfile (rows, 'disable') 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 configRow = {} configRow = db.getRow("NetworkQos", "_ROWID_", "1") local prog = db.getAttribute("environment", "name", "HW_OFFLOAD_SCRIPT", "value") if (prog ~= nil) then util.appendDebugOut("Exec = " .. os.execute("/pfrm2.0/bin/lua " .. prog .. " " .. DB_FILE_NAME )) end ?>