summaryrefslogtreecommitdiffstats
path: root/syslog-expert-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'syslog-expert-html.lsp')
-rw-r--r--syslog-expert-html.lsp45
1 files changed, 39 insertions, 6 deletions
diff --git a/syslog-expert-html.lsp b/syslog-expert-html.lsp
index 5f5d6ec..a212df0 100644
--- a/syslog-expert-html.lsp
+++ b/syslog-expert-html.lsp
@@ -1,24 +1,37 @@
<? local view = ... ?>
-<h1>CONFIGURATION</h1>
+<h1>SYSTEM INFO</h1>
+
+<DL>
+<dt>Program status</dt>
+<DD><? if (view.status.enabled) then io.write('Enabled') else io.write('Disabled') end ?></DD>
+</DL>
-<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>
+<DL>
+<dt>Program version</dt>
+<dd><?= view.status.version ?></dd>
+</DL>
+
+<h1>CONFIGURATION</h1>
<H2>Expert config</H2>
<h3>File details</h3>
+<DL>
<dt>File name</dt>
<dd><?= view.file.details.path ?></dd>
+</DL>
+<DL>
<dt>File size</dt>
<dd><?= view.file.details.size ?></dd>
+</DL>
+<DL>
<dt>Last modified</dt>
<dd><?= view.file.details.mtimelong ?></dd>
+</DL>
<h3>File content</h3>
@@ -27,8 +40,28 @@
<textarea name="modifications"><?= view.file.content ?></textarea>
<H2>Save and apply above settings</H2>
+<DL>
<DT>Apply settings</DT>
-<DD><input class="submitxxx" type="submit" value="Apply"/></DD>
+<DD><input class="submit" type="submit" value="Apply" disabled/></DD>
+</DL>
+
+<H1>MANAGEMENT</H1>
+
+<dl>
+<dt>Program controll-panel</dt>
+<dd><form name="cmd" action="" method="POST">
+<input type=submit class="submit" name="cmd" value="start" disabled>
+<input type=submit class="submit" name="cmd" value="stop" disabled>
+<input type=submit class="submit" name="cmd" value="restart" disabled>
+</form></dd>
+</dl>
+
+<? if (view.startstop) and (view.startstop.cmdresult) then ?>
+<dl>
+<dt>Previous action result</dt>
+<dd><pre><?= view.startstop.cmdresult?></pre></dd>
+</dl>
+<? end ?>
<?
--[[ DEBUG INFORMATION