summaryrefslogtreecommitdiffstats
path: root/shorewall-check-html.lsp
blob: 75f019b1a1839dd521d2e5d7f1379626de2cfd96 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<? local view = ... ?>

<h1>SYSTEM INFO</h1>

<DL>
<dt>Program status</dt>
<DD><?= view.status.status ?></DD>
</DL>

<DL>
<dt>Program version</dt>
<dd><?= view.status.version ?></dd>
</DL>

<h1>CONFIGURATION</h1>

<h2>CHECK CONFIG</h2>
<textarea name="checkresult"><?= view.check.result ?></textarea>

<H1>MANAGEMENT</H1>

<dl>
<dt>Preform check of configs</dt>
<dd><form name="check" action="" method="POST"><input type=submit name="check" value="check" class="submit"></form></dd>
</dl>

<dl>
<dt>Program controll-panel</dt>
<dd><form name="cmd" action="<?= view.confirm_url ?>" method="POST">
<input type=submit class="submit" name="cmd" value="start">
<input type=submit class="submit" name="cmd" value="stop">
<input type=submit class="submit" name="cmd" value="restart">
</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
require("debugs")
io.write(debugs.variables(view))
--]]
?>