From 867179d46067f0861bb53d4c99a3fe461f7015d6 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Mon, 18 Feb 2008 17:05:44 +0000 Subject: Created a temporary password-manager. This will probably be moved somewhere else. git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@749 ab2d0c66-481e-0410-8bed-d214d4d58bed --- tmppassword-status-html.lsp | 82 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100755 tmppassword-status-html.lsp (limited to 'tmppassword-status-html.lsp') diff --git a/tmppassword-status-html.lsp b/tmppassword-status-html.lsp new file mode 100755 index 0000000..45bed4f --- /dev/null +++ b/tmppassword-status-html.lsp @@ -0,0 +1,82 @@ + +DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(form)) +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") + 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
Account name:" .. myform.value .. "
Description:" .. (myform.descr or "") .. "
Roles:") + io.write(tostring(myform.roles)) + io.write("
Options:[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("") +?> + + +DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(form)) +io.write("
") +--]] +?> + -- cgit v1.2.3