From 1a0827a2fcd4aa16176ebc7ecd593305ab70088e Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Sat, 8 Mar 2008 11:42:14 +0000 Subject: Saving work for today. Hide [New] objects because they don't work for the moment. When selecting a record and edit it, you get to see the whole record (still not editable). git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@830 ab2d0c66-481e-0410-8bed-d214d4d58bed --- tinydns-edit_records-html.lsp | 106 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 tinydns-edit_records-html.lsp (limited to 'tinydns-edit_records-html.lsp') diff --git a/tinydns-edit_records-html.lsp b/tinydns-edit_records-html.lsp new file mode 100644 index 0000000..4241540 --- /dev/null +++ b/tinydns-edit_records-html.lsp @@ -0,0 +1,106 @@ + +DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(form)) +io.write("
") +--]] +?> + + 0) then + val.class = "error" + io.write(" class='error'") + end + io.write(">" .. val.label .. "") + io.write("\n\t\t
") + if (viewtype == "viewonly") then + io.write(val.value) + elseif (val.type == "radio") and (type(val.option) == "table") and (#val.option > 0) then + io.write("") + for k1,v1 in pairs(val.option) do + io.write(tostring(v1.label) .. ":") + io.write("") + end + io.write("") + else + io.write(html.form[val.type](val)) + end + if (val.descr) and (#val.descr > 0) then io.write("\n\t\t

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

") end + if (#val.errtxt > 0) then io.write("\n\t\t

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

") end + io.write("\n\t\t
\n") + end + end +end +?> + + 0) then + v.class = "error" + io.write(" class='error'") + end + io.write(">" .. v.label .. "") + io.write("\n\t\t
") + io.write(html.form[v.type](v)) + if (v.descr) and (#v.descr > 0) then io.write("\n\t\t

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

") end + if (#v.errtxt > 0) then io.write("\n\t\t

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

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

EDIT PROPERTIES

+
+ + + + + + +
+ +
+ +DEBUGGING

DEBUG INFO: CFE

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