local form = ... ?>
--[[ DEBUG INFORMATION
io.write("
DEBUGGING
DEBUG INFO: CFE
")
io.write(html.cfe_unpack(form))
io.write("")
--]]
?>
function informationform(myform,tags)
io.write("")
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
io.write("
")
end
?>
function configform(myform,tags)
io.write("")
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- " .. html.form[val.type](val) .. "\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
io.write("
")
end
?>
SYSTEM INFO
local myform = form.status
local tags = { "status", "version", }
informationform(myform,tags)
?>
CONFIGURATION
local myform = form.config ?>
local cmdform = form.management
local tags = { "start", "stop", "restart" }
if (cmdform) and (cmdform[tags[1]]) then
?>
end ?>
--[[ DEBUG INFORMATION
io.write("DEBUGGING
DEBUG INFO: CFE
")
io.write(html.cfe_unpack(form))
io.write("")
--]]
?>