local form = ... ?>
--[[ DEBUG INFORMATION
io.write("
DEBUGGING
DEBUG INFO: CFE
")
io.write(html.cfe_unpack(form))
io.write("")
--]]
?>
function informationform(myform,tags)
for k,v in pairs(tags) do
if (myform[v]) then
local val = myform[v]
io.write("\t 0) then io.write(" class='error'") end
io.write(">" .. val.label .. "\n")
io.write("\t\t" .. val.value .. "\n")
if (val.descr) and (#val.descr > 0) then io.write("\t\t" .. string.gsub(val.descr, "\n", "
") .. "
\n") end
if (#val.errtxt > 0) then io.write("\t\t" .. string.gsub(val.errtxt, "\n", "
") .. "
\n") end
io.write("\t\t\n")
end
end
end
?>
SYSTEM INFO
local myform = form.status
local tags = { "status", "version", "autostart", }
informationform(myform,tags)
?>
PROGRAM SPECIFIC OPTIONS/INFORMATION
local myform = form.status.show
io.write("\t- 0) then io.write(" class='error'") end
io.write(">" .. myform.label .. "
\n")
io.write("\t\t- \n")
for k,v in pairs(myform.option or {}) do
io.write("\t\t\t
")
io.write("\n\t\t\t " .. k .. " | |
\n")
for k1,v1 in pairs(v) do
io.write("\n\t\t\t " .. v1["Protocol-Address"] .. " | |
\n")
for k2,v2 in pairs(v1) do
if (k2) and not ((string.lower(k2) == "protocol-address") or
(string.lower(k2) == "tooltip") or
(string.lower(k2) == "interface")) then
io.write(""..k2.." | "..v2.." |
\n")
end
end
end
io.write("\t\t\t
")
end
io.write("\t\t \n")
?>
--[[ DEBUG INFORMATION
io.write("DEBUGGING
DEBUG INFO: CFE
")
io.write(html.cfe_unpack(form))
io.write("")
--]]
?>