summaryrefslogtreecommitdiffstats
path: root/dhcp-settings-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'dhcp-settings-html.lsp')
-rw-r--r--dhcp-settings-html.lsp24
1 files changed, 24 insertions, 0 deletions
diff --git a/dhcp-settings-html.lsp b/dhcp-settings-html.lsp
new file mode 100644
index 0000000..73b377d
--- /dev/null
+++ b/dhcp-settings-html.lsp
@@ -0,0 +1,24 @@
+<?
+ local form = ...
+ local option = form.option
+ local settings = form.value
+ local errcode = form.errcode
+?>
+<h1>Global Settings</h1>
+
+<?
+ if #errcode.msg > 0 then
+ io.write("<pre style=\"color: #ff2020\">" .. errcode.msg .. "</pre><br>")
+ end
+?>
+
+<form action="<? io.write(option.script .. option.prefix ..
+ option.controller .. "/" .. option.action .. option.extra) ?>" method="POST">
+<table>
+ <tr><td><nobr>Default Lease Time:</nobr></td><td><input type="text" name="defleasetime" value="<? io.write(settings.defleasetime.value) ?>"></td></tr>
+ <tr><td><nobr>Maximum Lease Time:</nobr></td><td><input type="text" name="maxleasetime" value="<? io.write(settings.maxleasetime.value) ?>"></td></tr>
+ <tr><td><nobr>Domain Name:</nobr></td><td><input type="text" name="domainname" value="<? io.write(settings.domainname.value) ?>"></td></tr>
+ <tr><td></td><td><input type=submit name=cmd value="update" style="width:100px"></form><form action="<? io.write(option.script .. option.prefix .. option.controller .. "/home") ?> method="POST">
+<input type=submit name="cmd" value="back" style="width:100px"></form></td></tr>
+</table>
+