summaryrefslogtreecommitdiffstats
path: root/dhcp-home-html.lsp
diff options
context:
space:
mode:
authorAndreas Brodmann <andreas.brodmann@gmail.com>2007-11-08 18:06:11 +0000
committerAndreas Brodmann <andreas.brodmann@gmail.com>2007-11-08 18:06:11 +0000
commitf516cb2b59deb5fe025efd653b237239eef37f38 (patch)
tree66ee9401d61ccccb107cbcb45be9d03508e06f0a /dhcp-home-html.lsp
parent26c743986d3320b977a26a38bf7cd50741c8bc6b (diff)
downloadacf-dhcp-f516cb2b59deb5fe025efd653b237239eef37f38.tar.bz2
acf-dhcp-f516cb2b59deb5fe025efd653b237239eef37f38.tar.xz
initial import of /acf/dhcpv1.0_alpha1
git-svn-id: svn://svn.alpinelinux.org/acf/dhcp@274 ab2d0c66-481e-0410-8bed-d214d4d58bed
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>