<% local form = ... %> <% require("viewfunctions") %>

SYSTEM INFO

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

PROGRAM SPECIFIC OPTIONS/INFORMATION

Phase1 and Phase2 information

<% local myform = form.status.show_isakmp.option for k,v in pairs(myform) do if (type(v) == "table") and (v.Destination) and (v.Destination.value) and (#v.Destination.value > 0) then io.write("
".. v['Destination']['value'] .. "
") io.write("
\n") io.write("") local tags = {"Created","Source", "St", "S", "E",} for k1,v1 in pairs(tags) do io.write("") end io.write("") for k1,v1 in pairs(v['Phase2']['option']) do io.write("") end io.write("
Phase1 details
" .. (v[v1]['label'] or "") .. ""..(v[v1]['value'] or "")) if (v[v1]['descr']) and (#v[v1]['descr'] > 0) then io.write(" (".. v[v1]['descr'] .. ")") end io.write("
Phase2 details
" .. (v1['value'] or "") .. "
") io.write("
") end end %>