blob: 33f59e5754af66841d16a81c4c1dc3660a653f57 (
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
|
<? local view = ... ?>
<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" value="start" style="width:100px"></form><form name="stop" action="" method="POST"><input type=submit name="cmd" value="stop" style="width:100px"></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 ?>" style="width:100%">
<textarea name="modifications" style="width:100%;height:360px;"><?= view.filecontent.value ?></textarea>
<input type="submit" name="cmd" value="update"></form>
<?
--[[ DEBUG INFORMATION
require("debugs")
io.write(debugs.variables(view))
--]]
?>
|