summaryrefslogtreecommitdiffstats
path: root/dhcp-home-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'dhcp-home-html.lsp')
-rw-r--r--dhcp-home-html.lsp61
1 files changed, 61 insertions, 0 deletions
diff --git a/dhcp-home-html.lsp b/dhcp-home-html.lsp
new file mode 100644
index 0000000..25757ee
--- /dev/null
+++ b/dhcp-home-html.lsp
@@ -0,0 +1,61 @@
+<?
+ local form = ...
+ local data = form.option
+?>
+<h1>Home</h1>
+<h2>DHCPd - Status</h2>
+<? io.write(form.info.version.value) ?> is: <b><? io.write( form.info.status.value ) ?></b><br><br>
+
+<h2>DHCPd - Daemon Control</h2>
+<table>
+<form action="" method="POST">
+<tr>
+<td><input type=submit name="srvcmd" value="start" style="width:100px"></td>
+<td><input type=submit name="srvcmd" value="stop" style="width:100px"></td>
+<td><input type=submit name="srvcmd" value="restart" style="width:100px"></td>
+</tr>
+</form>
+</table>
+<pre><? io.write( form.info.srvctrl.value ) ?></pre><br>
+
+<h2>DHCPd - General</h2>
+<table>
+<form action="<? io.write(data.script .. data.prefix .. data.controller .. "/settings") ?>" method="POST">
+<tr><td><input type=submit name="cmd" value="Edit Settings" style="width:200px"></td></tr>
+</form>
+</table><br>
+
+<h2>DHCPd - View Files</h2>
+<table>
+<form action="<? io.write(data.script .. data.prefix .. data.controller .. "/view") ?>" method="POST">
+<tr><td><input type=submit name="conf" value="View dhcpd.conf" style="width:200px"></td></tr>
+<tr><td><input type=submit name="leases" value="View dhcpd.leases" style="width:200px"></td></tr>
+</form>
+</table><br>
+
+<h2>DHCPd - Add New Subnet</h2>
+<table>
+<form action="" method="POST">
+<tr>
+ <td>Network Name</td>
+ <td><input type=text name="name" value="" style="width:300px"></td>
+ <td><input type=submit name="cmd" value="Create" style="width:200px"></td>
+</tr>
+</form>
+</table>
+<br><br>
+
+<h2>DHCPd - Edit Subnet</h2>
+<table>
+<form action="<? io.write(data.script .. data.prefix .. data.controller .. "/editnet") ?>" method="POST">
+<tr><td>Network to modify<td>
+<td><select name="network" size="1">
+ <option value="choose">-- Choose Network --</option>
+ <option>default</option>
+ <option>ism</option>
+ <option>telephony</option>
+ <option>housecontrol</option>
+</select></td>
+<td><input type=submit name="cmd" value="Edit" style="width:200px"></td>
+</form>
+</table>