summaryrefslogtreecommitdiffstats
path: root/syslog-basic-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'syslog-basic-html.lsp')
-rw-r--r--syslog-basic-html.lsp47
1 files changed, 47 insertions, 0 deletions
diff --git a/syslog-basic-html.lsp b/syslog-basic-html.lsp
new file mode 100644
index 0000000..0e5cab3
--- /dev/null
+++ b/syslog-basic-html.lsp
@@ -0,0 +1,47 @@
+<? ctl = ... ?>
+<h1>System logging</h1>
+<form>
+<p>
+<input type="radio" name="status" value="enabled" <?= ctl.enabled ?>/>
+Enable
+</p>
+<p>
+<input type="radio" name="status" value="disabled" <?= ctl.disabled ?>/>
+Disable
+</p>
+
+<p>
+<input type="checkbox" name="remote" <?= ctl.remote ?>/>
+Enable remote logging
+</p>
+
+<p>
+Remote host: <input type="text" value="<?= ctl.host ?>" name="host"/>
+</p>
+
+<p>
+<br/>
+<input type="submit" value="Apply"/>
+</p>
+<!-- DEBUG:
+
+<?
+for k,v in pairs(ctl) do
+ io.write(k..": "..tostring(v).."\n")
+end
+
+if ctl.pidlist then
+ io.write("pidlist:\n")
+ for k,v in pairs(ctl.pidlist) do
+ io.write(k..": "..tostring(v).."\n")
+ end
+end
+if ctl.opts then
+ io.write("opts:\n")
+ for k,v in pairs(ctl.opts) do
+ io.write(k..": "..tostring(v).."\n")
+ end
+end
+?>
+-->
+</form>