diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-01-10 14:52:47 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-01-10 14:52:47 +0000 |
commit | 116d2438209781f88faaac07a48fb801852247e7 (patch) | |
tree | 9703faa647d038ad0f7e0675ca27d808871ea706 /openntpd-expert-html.lsp | |
parent | 705ca5ef914ce16ee099d7687c541934962ea067 (diff) | |
download | acf-openntpd-116d2438209781f88faaac07a48fb801852247e7.tar.bz2 acf-openntpd-116d2438209781f88faaac07a48fb801852247e7.tar.xz |
Changing tabnames and first page info
git-svn-id: svn://svn.alpinelinux.org/acf/openntpd/trunk@536 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'openntpd-expert-html.lsp')
-rw-r--r-- | openntpd-expert-html.lsp | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/openntpd-expert-html.lsp b/openntpd-expert-html.lsp new file mode 100644 index 0000000..c74b30d --- /dev/null +++ b/openntpd-expert-html.lsp @@ -0,0 +1,77 @@ +<? local view = ... ?> +<? +--[[ DEBUG INFORMATION +require("debugs") +io.write(debugs.variables(view)) +--]] +?> + +<h1>CONFIGURATION</h1> + +<H2>Enable/Disable</H2> +<DT>Change status for this program</DT> +<DD><input class="radio" type="radio" name="enabled" value="2" <? if (view.status.enabled) then io.write('checked') end ?> >Enable +<input class="radio" type="radio" name="enabled" value="3" <? if not (view.status.enabled) then io.write('checked') end ?> >Disable</DD> + +<H2>Expert config</H2> + +<h3>File details</h3> + +<dt>File name</dt> +<dd><?= view.file.details.path ?></dd> + +<dt>File size</dt> +<dd><?= view.file.details.size ?></dd> + +<dt>Last modified</dt> +<dd><?= view.file.details.mtimelong ?></dd> + +<h3>File content</h3> + +<form name="myform" action="" method="POST"> +<input name="name" type=hidden value=""> +<textarea name="modifications"><?= view.file.content ?></textarea> + +<H2>Save and apply above settings</H2> +<DT>Apply settings</DT> +<DD><input class="submit" type="submit" value="Apply"/></DD> +</form> + +<? --[[ ?> + +<h1>System time</h1> + +<h2>SYSTEM INFO</h2> + +<dt>Process status</dt> +<dd><? io.write(view.statusinfo.status) ?><? if (view.startstop.status) then io.write(" (" .. view.startstop.status .. ")") end ?></dd> + +<dt>Start or stop process</dt> +<dd><form name="start" action="" method="POST"><input type=submit name="cmd" class="submit" value="start"></form><form name="stop" action="" method="POST"><input type=submit name="cmd" class="submit" value="stop"></form></dd> + +<h2>Details</h2> + +<dt>File name</dt> +<dd><?= view.filecontent.filedetails.longname ?></dd> + +<dt>File size</dt> +<dd><?= view.filecontent.filedetails.size ?></dd> + +<dt>Last modified</dt> +<dd><?= view.filecontent.filedetails.mtimelong ?></dd> + +<? if (view.statusinfo.errtxt) then ?> +<dt>Error message</dt> +<dd class="error"><?= view.statusinfo.errtxt ?></dd> +<? end ?> + +<h2>Content</h2> +<form name="myform" action="" method="POST"> +<input name="name" type=hidden value="<?= view.filecontent.filedetails.longname ?>"> +<textarea name="modifications"><?= view.filecontent.value ?></textarea> + +<input type="submit" name="cmd" class="submit" value="update"></form> + +<? --]] ?> + + |