print "<hr/>";
print "<button type=\"button\" class=\"btn btn-success\" name=\"start\">Start</button>";
print "<button type=\"button\" class=\"btn btn-warning\" name=\"stop\" >Stop</button>";
- print "<button type=\"button\" class=\"btn btn-info\" name=\"status\" >Status</button>";
print "<button type=\"button\" class=\"btn btn-danger\" name=\"reboot\" >Reboot</button>";
print "<input type=\"checkbox\" name=\"bgonoff\" id=\"checkbox1\" $is_bg_checked_html><label for=\"checkbox1\">Show background</label></div>";
print "<input type=\"checkbox\" name=\"bootonoff\" id=\"checkbox2\" $is_boot_checked_html><label for=\"checkbox2\">Start on boot</label></div>";
;
})
});
- $('button[name=status]').click(function() {
- $.ajax({
- type: 'GET',
- url: 'index.php',
- dataType: 'json',
- data: { config: '1', status: '1'}
- })
- .done(function(msg) {
- $("#status").html(msg['cmd_out']);
- })
- .fail(function(msg) {
- ;
- })
- });
$('input[name=bgonoff]').click(function() {
$.ajax({
type: 'GET',