From 612b0e754176f1b7098c5c1d7973028a22ee902d Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Tue, 15 Apr 2008 12:52:00 +0000 Subject: Creating a acf-gnats so that users can view/add bugreports to bugs@alpinelinux.org git-svn-id: svn://svn.alpinelinux.org/acf/gnats/trunk@985 ab2d0c66-481e-0410-8bed-d214d4d58bed --- gnats-queryresult-html.lsp | 120 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 gnats-queryresult-html.lsp (limited to 'gnats-queryresult-html.lsp') diff --git a/gnats-queryresult-html.lsp b/gnats-queryresult-html.lsp new file mode 100644 index 0000000..c47b919 --- /dev/null +++ b/gnats-queryresult-html.lsp @@ -0,0 +1,120 @@ + +DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(form.query)) +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 + if not (val.value) or (val.value == "") then val.value = " " end + 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("\n\t\t\t"..tostring(v1) .. ":") + io.write("") + end + io.write("\n\t\t\t") + 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 +?> + +

+ +

Header

+
+ +
+ +

Details

+
+ +
+ + +

+
+
+
+ + + + + + +

+
+") + if (#v.label > 0) then + io.write("" .. (v.label or "Uknown") .. "") + end + for i=1,#v do + io.write("
" .. (v[i] or "Uknown") .. "
") + end + io.write("\n") +end +?> +
+ + +

+
+
+
+ + + -- cgit v1.2.3