forked from hummypkg/webif
0f1bbed6b9
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1789 2a923420-c742-0410-a762-8d5b09965624
54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
<!--#include virtual="/lib/header.shtml" -->
|
|
<link href=/lib/jquery.plugin/iphone-style-checkboxes/iphone-style-checkboxes.css rel=stylesheet type=text/css />
|
|
<script type="text/javascript" src="/lib/jquery.plugin/iphone-style-checkboxes/iphone-style-checkboxes.js"></script>
|
|
<script type="text/javascript" src="/lib/jquery.plugin/enadis/enadis.js"></script>
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
|
$('input:checkbox').iphoneStyle();
|
|
// Don't allow turning off the web server from within the web server..
|
|
$('input:checkbox[name=mongoose][class=toggle]').disable();
|
|
|
|
$(':checkbox').change(function() {
|
|
if ($(this).attr('name') == 'mongoose' &&
|
|
!$(this).is(':checked'))
|
|
alert(
|
|
'Note that mongoose is the web server service that ' +
|
|
'provides this web interface. If you disable auto-start ' +
|
|
'then the web interface will not be available when the ' +
|
|
'Humax is restarted.');
|
|
var url = '/cgi-bin/service.jim?action=' +
|
|
escape($(this).attr('class')) +
|
|
'&service=' +
|
|
escape($(this).attr('name'));
|
|
$('#result_txt').load(url, function() {
|
|
if ($('#results').is(":visible") == false)
|
|
{
|
|
$('#results').show('slow');
|
|
$('#results').delay(3000).hide('slow');
|
|
}
|
|
});
|
|
});
|
|
});
|
|
|
|
</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 cmd="/mod/webif/include/services.jim" -->
|
|
</table>
|
|
<!--#include virtual="/lib/footer.shtml" -->
|