summaryrefslogtreecommitdiffstats
path: root/tinydns-config-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-06-18 20:07:55 +0000
committerTed Trask <ttrask01@yahoo.com>2008-06-18 20:07:55 +0000
commit151f597ce365349add8c21fff63902be0084645f (patch)
treefdfa505adeaea2d4bb0e8c604a0439b211016111 /tinydns-config-html.lsp
parentf0dcd211ed5fca855655d8b60b588b1d193e92fd (diff)
downloadacf-tinydns-151f597ce365349add8c21fff63902be0084645f.tar.bz2
acf-tinydns-151f597ce365349add8c21fff63902be0084645f.tar.xz
Rewrite of tinydns to simplify code and use new cfe model.
Added js to filter records. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1219 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'tinydns-config-html.lsp')
-rwxr-xr-xtinydns-config-html.lsp86
1 files changed, 10 insertions, 76 deletions
diff --git a/tinydns-config-html.lsp b/tinydns-config-html.lsp
index 839570e..4c56ea3 100755
--- a/tinydns-config-html.lsp
+++ b/tinydns-config-html.lsp
@@ -1,4 +1,4 @@
-<? local form = ...
+<? local form, viewlibrary = ...
require("viewfunctions")
?>
<?
@@ -9,82 +9,16 @@ io.write("</span>")
--]]
?>
-<H1>SYSTEM INFO</H1>
-<?
-local myform = form.status
-local tags = { "status", "version", "autostart", }
-displayinfo(myform,tags,"viewonly")
-?>
-
-<form name="cmd" action="<?= form.option.link ?>/<?= form.option.action ?>" method="POST">
-<H1>CONFIG</H1>
-<H2>General settings</H2>
-<?
-local myform = form.config
-local tags = { "listen","listen_cmd", }
-displayinfo(myform,tags)
-?>
-
-<H2>Locations</H2>
-<?
-local tags = { "locations","locations_cmd", "cmdnewlocations", }
-displayinfo(myform,tags)
-?>
-
-
-<H2>Records</H2>
-<H3><? io.write(tostring(form.config.nsourdomain.label) or "NS record") ?></H3>
-<?
-local tags = { "nsourdomain","nsourdomain_cmd", }
-displayinfo(myform,tags)
-?>
-
-<H3><? io.write(tostring(form.config.nsdomain.label) or "NS record") ?></H3>
-<?
-local tags = { "nsdomain","nsdomain_cmd", }
-displayinfo(myform,tags)
-?>
-
-<H3><? io.write(tostring(form.config.host.label) or "Hosts record") ?></H3>
-<?
-local tags = { "host","host_cmd", }
-displayinfo(myform,tags)
-?>
-
-<H3><? io.write(tostring(form.config.alias.label) or "Alias record") ?></H3>
-<?
-local tags = { "alias","alias_cmd", }
-displayinfo(myform,tags)
-?>
-
-<H3><? io.write(tostring(form.config.mx.label) or "MX record") ?></H3>
-<?
-local tags = { "mx","mx_cmd", }
-displayinfo(myform,tags)
-?>
-
-<H3><? io.write(tostring(form.config.ptr.label) or "PTR record") ?></H3>
-<?
-local tags = { "ptr","ptr_cmd", }
-displayinfo(myform,tags)
-?>
-
-<H3><? io.write(tostring(form.config.cname.label) or "CNAME record") ?></H3>
-<?
-local tags = { "cname","cname_cmd", }
-displayinfo(myform,tags)
-?>
-
-<H3><? io.write(tostring(form.config.soa.label) or "SOA record") ?></H3>
-<?
-local tags = { "soa","soa_cmd", }
-displayinfo(myform,tags)
-?>
+<? if viewlibrary and viewlibrary.dispatch_component then
+ viewlibrary.dispatch_component("basicstatus")
+end ?>
-<H3><? io.write(tostring(form.config.generic.label) or "GENERIC record") ?></H3>
+<h1>CONFIGURATION</h1>
+<h2><?= form.label ?></h2>
<?
-local tags = { "generic","generic_cmd", }
-displayinfo(myform,tags)
+ displayform(form)
?>
-</form>
+<? if viewlibrary and viewlibrary.dispatch_component then
+ viewlibrary.dispatch_component("startstop")
+end ?>