" .. val.label .. "\n") if (viewonly) then io.write("\t\t
" .. val.value .. "\n") else io.write("\t\t
" .. html.form[val.type](val) .. "\n") end if (val.descr) and (#val.descr > 0) then io.write("\t\t

" .. string.gsub(val.descr, "\n", "
") .. "

\n") end if (val.errtxt) then io.write("\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

\n") end io.write("\t\t
\n") end end end ?>

SYSTEM INFO

Change/Generate settings

Global

Edit global settings
" method="POST">
Global Config Pre/Post Code
" method="POST">

Subnet declarations

Edit subnet
" method="POST">
Add new subnet
" method="POST">

Generate config

Generate Configuration File
" method="POST">
" .. form.genmsg .. "

" ) end ?>
') io.write('

MANAGEMENT

') io.write('
') io.write('
' .. cmdform[tags[1]]["label"] .. '
') io.write('
') for k,v in pairs(tags) do if (cmdform[v]) then io.write(html.form[cmdform[v].type](cmdform[v])) end end io.write('
') if (cmdresult) and (cmdresult.action) and (#cmdresult.action.descr > 0) then io.write('
' .. cmdresult.label .. '
') io.write('
' .. cmdresult.action.descr .. '
') end io.write('
') end ?>