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-report-html.lsp | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 gnats-report-html.lsp (limited to 'gnats-report-html.lsp') diff --git a/gnats-report-html.lsp b/gnats-report-html.lsp new file mode 100644 index 0000000..b438fa7 --- /dev/null +++ b/gnats-report-html.lsp @@ -0,0 +1,77 @@ + +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 + if (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 +?> + +

REPORT A BUG

+ +
+ +

Info about you

+
+ +
+ +

Report description

+
+ +
+ +

Submit repport

+
+ +
+
+ -- cgit v1.2.3