summaryrefslogtreecommitdiffstats
path: root/dhcp-settings-html.lsp
blob: 73b377d84b1d640480842747bc5e0dd04fe06506 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>