webif/var/mongoose/html/services.shtml
hummypkg d3e7adfd1f check in initial web interface
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif@161 2a923420-c742-0410-a762-8d5b09965624
2011-06-07 13:26:45 +00:00

59 lines
1.2 KiB
Plaintext

<!--#include virtual="/lib/header.shtml" -->
<script type=text/javascript src=/js/ajax.js></script>
<script type=text/javascript>
function updateResults()
{
var r = document.getElementById('results');
if (r && request.readyState == 4 && request.status == 200)
{
r.style.display = 'block';
var t = document.getElementById('result_txt');
t.innerHTML = request.responseText;
}
}
function go(service, action)
{
if (service == null || service == "" ||
action == null || action == "")
return;
var url = "/cgi-bin/service.jim?service=" + escape(service) +
"&action=" + escape(action);
request.open("GET", url, true);
request.onreadystatechange = updateResults;
request.send(null);
}
function toggle(obj)
{
if (obj.src.search("on") > -1)
obj.src = '/img/off.png';
else
obj.src = '/img/on.png';
}
</script>
<h1>Service Management</h1>
<div id=results class=shadowbox style="width: 90%; display: none; margin: 1 0 1em 0">
<div>
<pre id=result_txt>
Results...
</pre>
</div>
</div>
<table class=borders cellpadding=5>
<tr class=greenshade>
<th>Service</th>
<th>Auto Startup</th>
<th>Status</th>
</tr>
<!--#exec "/mod/var/mongoose/include/services.jim" -->
</table>
<!--#include virtual="/lib/footer.shtml" -->