diff options
Diffstat (limited to 'syslog-expert-html.lsp')
-rw-r--r-- | syslog-expert-html.lsp | 56 |
1 files changed, 23 insertions, 33 deletions
diff --git a/syslog-expert-html.lsp b/syslog-expert-html.lsp index 97dd3d5..694ea7c 100644 --- a/syslog-expert-html.lsp +++ b/syslog-expert-html.lsp @@ -3,34 +3,26 @@ <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> + <dt>Program status</dt> + <DD><? if (view.status.enabled) then io.write('Enabled') else io.write('Disabled') end ?></DD> -<DL> -<dt>Program version</dt> -<dd><?= view.status.version ?></dd> + <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> + <dt>File name</dt> + <dd><?= view.file.details.path ?></dd> -<DL> -<dt>File size</dt> -<dd><?= view.file.details.size ?></dd> -</DL> + <dt>File size</dt> + <dd><?= view.file.details.size ?></dd> -<DL> -<dt>Last modified</dt> -<dd><?= view.file.details.mtime ?></dd> + <dt>Last modified</dt> + <dd><?= view.file.details.mtime ?></dd> </DL> <h3>File content</h3> @@ -41,27 +33,25 @@ <H2>Save and apply above settings</H2> <DL> -<DT>Apply settings</DT> -<DD><input class="submit" type="submit" value="Apply"/></DD> + <DT>Apply settings</DT> + <DD><input class="submit" type="submit" name="cmdsave" value="Apply"/></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> + <dt>Program controll-panel</dt> + <dd><form name="cmd" action="" method="POST"> + <input type=submit class="submit" name="cmddaemon" value="start"/> + <input type=submit class="submit" name="cmddaemon" value="stop"/> + <input type=submit class="submit" name="cmddaemon" value="restart"/> + </form> + </dd> + <? if (view.startstop) and (view.startstop.cmdresult) then ?> + <dt>Previous action result</dt> + <dd><pre><?= view.startstop.cmdresult?></pre></dd> + <? end ?> </dl> -<? end ?> <? --[[ DEBUG INFORMATION |