<% require("viewfunctions") local form = ... local data = form.option local service = form.service local config = form.service.config local srv1fill = "" local srv2fill = "disabled" if form.info.status.value == "Enabled" then srv1fill = "disabled" srv2fill = "" end local ifthen = function( variable, value, result ) if variable == value then io.write( result ) end end %> <% --[[ DEBUG INFORMATION io.write("

DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(form)) io.write("
") --]] %>

SYSTEM INFO

<% local myform = form.info local tags = { "status", "version", "autostart", } displayinfo(myform,tags,"viewonly") %>

Modify Categories

Category list

<% local myform = form["service"]["config"]["categories"] for k,v in ipairs( myform ) do io.write("
"..v.name.."
\n") io.write("
") if (v.option) then for k1,v1 in pairs(v.option) do io.write("" ) -- for k2,v2 in pairs(v1) do --io.write(html.form(v1.type(v1))) -- io.write("") -- end io.write("\n") end io.write("\n" ) end io.write("
".. v1.name .. "[ Edit ]") -- io.write("[ " ..html.link(v2) .. " ] ") -- io.write(tostring(v2)) -- io.write("
") --io.write( "
" .. v .. "\n" ) end %>

MANAGEMENT

Daemon control
> > > <% if (service.message) and (service.message.descr) and (#service.message.descr > 0) then %>
<% io.write( service.message.descr ) %>
<% end %>