diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-04-30 20:36:02 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-04-30 20:36:02 +0000 |
commit | 4489b67360a4409b754c9cc5f10f1491b619d8bd (patch) | |
tree | fffd0b1fdcfb4bbc447ef7a29f6aa9da06ec4c9b /dhcp-status-html.lsp | |
parent | 9aa99832f22823332fd12ad0ceb60626d725764c (diff) | |
download | acf-dhcp-4489b67360a4409b754c9cc5f10f1491b619d8bd.tar.bz2 acf-dhcp-4489b67360a4409b754c9cc5f10f1491b619d8bd.tar.xz |
Modified cfe, removing option, errtxt, and name, and adding label - This may break things.
Rewrote password module, adding model
Modified authenticator to make password module work
git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@1052 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dhcp-status-html.lsp')
-rw-r--r-- | dhcp-status-html.lsp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcp-status-html.lsp b/dhcp-status-html.lsp index 183b2bb..d68a5fe 100644 --- a/dhcp-status-html.lsp +++ b/dhcp-status-html.lsp @@ -6,7 +6,7 @@ function displayinfo(myform,tags,viewonly) if (myform[v]) and (myform[v]["value"]) then local val = myform[v] io.write("\t<DT") - if (#val.errtxt > 0) then + if (val.errtxt) then val.class = "error" io.write(" class='error'") end @@ -17,7 +17,7 @@ function displayinfo(myform,tags,viewonly) io.write("\t\t<DD>" .. html.form[val.type](val) .. "\n") end if (val.descr) and (#val.descr > 0) then io.write("\t\t<P CLASS='descr'>" .. string.gsub(val.descr, "\n", "<BR>") .. "</P>\n") end - if (#val.errtxt > 0) then io.write("\t\t<P CLASS='error'>" .. string.gsub(val.errtxt, "\n", "<BR>") .. "</P>\n") end + if (val.errtxt) then io.write("\t\t<P CLASS='error'>" .. string.gsub(val.errtxt, "\n", "<BR>") .. "</P>\n") end io.write("\t\t</DD>\n") end end |