summaryrefslogtreecommitdiffstats
path: root/lib/viewfunctions.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-06-30 17:19:43 +0000
committerTed Trask <ttrask01@yahoo.com>2008-06-30 17:19:43 +0000
commit9a0afb466ef66b0d27fd12652c3fe198d4fcfe6d (patch)
tree952b238011b1f3cd5658bbf62ac4e504b7228489 /lib/viewfunctions.lua
parenta567f68b811e0e9199f513eda7b3a1b35f47658f (diff)
downloadacf-core-9a0afb466ef66b0d27fd12652c3fe198d4fcfe6d.tar.bz2
acf-core-9a0afb466ef66b0d27fd12652c3fe198d4fcfe6d.tar.xz
Added javascript to interfaces update/create pages. Minor changes to tinydns and viewfunctions.
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1264 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib/viewfunctions.lua')
-rw-r--r--lib/viewfunctions.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/viewfunctions.lua b/lib/viewfunctions.lua
index e927e2b..27320a6 100644
--- a/lib/viewfunctions.lua
+++ b/lib/viewfunctions.lua
@@ -105,7 +105,7 @@ function displayformitem(myitem, name, viewtype)
io.write("<DT")
if myitem.errtxt then
myitem.class = "error"
- io.write(" class='error'")
+ io.write(' class="error"')
end
io.write(">" .. myitem.label .. "</DT>\n")
io.write("<DD>")
@@ -140,15 +140,15 @@ function displayformitem(myitem, name, viewtype)
else
io.write((html.form[myitem.type](myitem) or "") .. "\n")
end
- if myitem.descr then io.write("<P CLASS='descr'>" .. string.gsub(myitem.descr, "\n", "<BR>") .. "</P>\n") end
- if myitem.errtxt then io.write("<P CLASS='error'>" .. string.gsub(myitem.errtxt, "\n", "<BR>") .. "</P>\n") end
+ if myitem.descr then io.write('<P CLASS="descr">' .. string.gsub(myitem.descr, "\n", "<BR>") .. "</P>\n") end
+ if myitem.errtxt then io.write('<P CLASS="error">' .. string.gsub(myitem.errtxt, "\n", "<BR>") .. "</P>\n") end
io.write("</DD>\n")
end
function displayform(myform, order)
if not myform then return end
- if myform.descr then io.write("<P CLASS='descr'>" .. string.gsub(myform.descr, "\n", "<BR>") .. "</P>\n") end
- if myform.errtxt then io.write("<P CLASS='error'>" .. string.gsub(myform.errtxt, "\n", "<BR>") .. "</P>\n") end
+ if myform.descr then io.write('<P CLASS="descr">' .. string.gsub(myform.descr, "\n", "<BR>") .. "</P>\n") end
+ if myform.errtxt then io.write('<P CLASS="error">' .. string.gsub(myform.errtxt, "\n", "<BR>") .. "</P>\n") end
io.write('<form action="' .. (myform.action or "") .. '" method="POST">\n')
io.write('<DL>\n')
local reverseorder= {}