Advertisement
Guest User

ssh

a guest
Apr 24th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10. <script type="text/javascript">
  11.  
  12.  
  13.  
  14. $("#sshOFF").addClass('btn on active');
  15.  
  16.  
  17.  
  18.  
  19. function SSH_select(param)
  20.  
  21. {
  22. document.getElementById("sshstatus").value= param;
  23. if (param == "on") {
  24. $("#sshON").addClass("btn on active");
  25. }
  26. else {
  27. $("#sshOFF").addClass("btn on active");
  28. }
  29. }
  30.  
  31. function ssh_apply()
  32.  
  33. { document.getElementById("apply").disabled=true;
  34. document.getElementById("sshexpertform").submit();
  35. }
  36.  
  37. </script>
  38.  
  39. <div class="data-scroll" style=" max-height: 440px;">
  40. <form method="post" action="ssh-expert.lp" id="sshexpertform" class="form-horizontal">
  41. <fieldset>
  42. <legend><small>esperto SSH</small></legend>
  43. <div class="control-group">
  44. <label class="control-label">Abilitare SSH su LAN</label>
  45. <input type="hidden" name= "sshstatus" id="sshstatus" value = "stat"></input>
  46. <input type="hidden" name= "ssh_val" id="ssh_val" value = "off"></input>
  47. <div class="controls">
  48. <div class="btn-group" data-toggle="buttons-radio">
  49.  
  50. <a class="btn" value="on" id="sshON" onclick='SSH_select("on")'>Attiva</a>
  51. <a class="btn" value="off" id="sshOFF" onclick='SSH_select("off")'>Disattiva</a>
  52. </div>
  53. </div>
  54. </div>
  55. </fieldset>
  56. </form>
  57. </div>
  58. <div class="modal-footer">
  59. <input type="button" class="btn" data-dismiss="modal" value ="Annulla" name="Cancel" onclick="window.location = '/'">
  60. <input type="button" onclick='ssh_apply()' value="OK" name="Apply" id = "apply" class="btn btn-primary apply">
  61. </div>
  62. <script type='text/javascript' src='js/antiCSRF.js'></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement