From 378e53f20a0f11c36afffbaef78f47a5303df9ce Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 30 Apr 2008 20:36:02 +0000 Subject: 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/core/trunk@1052 ab2d0c66-481e-0410-8bed-d214d4d58bed --- app/acf-util/password-status-html.lsp | 92 ++++++++++------------------------- 1 file changed, 25 insertions(+), 67 deletions(-) (limited to 'app/acf-util/password-status-html.lsp') diff --git a/app/acf-util/password-status-html.lsp b/app/acf-util/password-status-html.lsp index e6d15b0..b7c9b05 100755 --- a/app/acf-util/password-status-html.lsp +++ b/app/acf-util/password-status-html.lsp @@ -7,77 +7,35 @@ io.write("") --]] ?> -") - for k,v in pairs(tags) do - if (myform[v]) and (myform[v]["value"]) then - local val = myform[v] - io.write("\t 0) then - val.class = "error" - io.write(" class='error'") - end - io.write(">" .. 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 > 0) then io.write("\t\t

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

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

USER ACCOUNTS

Create new account

-
- + +

Existing account

-") -if (type(myform) == "table") then - for k,v in pairs(myform) do - local myform = myform[k] - io.write("\t 0) then - myform.class = "error" - io.write(" class='error'") - end - io.write("> " .. myform.label .. "\n") - io.write("\t\t
\n\t\t") - io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") - io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") - io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") - if (myform.value.errors) then - io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") - end - io.write("\n\t\t\t") - io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") - io.write("\n\t\t
".. myform.value.userid.label .. - "" .. myform.value.userid.value .. "
".. myform.value.username.label .. - "" .. myform.value.username.value .. "
".. myform.value.roles.label .. - "" .. myform.value.roles.value .. "
".. myform.value.errors.label .. - "" .. myform.value.errors.value .. "
Option[Edit this account]
\n") - if (#myform.errtxt > 0) then io.write("\t\t

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

\n") end - io.write("\t\t
\n") - end -end -io.write("") -?> - +
+ +
+
+ + + + + + + + + + + + + +
Option + [Edit this account] + [Delete this account] +
+ +