administration.js 989 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. function GetURLParameter(sParam)
  2. {
  3. var sPageURL = window.location.search.substring(1);
  4. var sURLVariables = sPageURL.split('&');
  5. for (var i = 0; i < sURLVariables.length; i++)
  6. {
  7. var sParameterName = sURLVariables[i].split('=');
  8. if (sParameterName[0] == sParam)
  9. {
  10. return sParameterName[1];
  11. }
  12. }
  13. }
  14. var p = GetURLParameter('p');
  15. if(p == 'banlist')
  16. {
  17. $(document).ready(function(){
  18. $('span#check').css({'cursor':'pointer','color':'blue'});
  19. $('span#check').click(function(){
  20. $('input[type=checkbox]').each(function( ){
  21. if( this.checked )
  22. {
  23. $(this).attr('checked', false);
  24. }
  25. else
  26. {
  27. $(this).attr('checked', true);
  28. }
  29. });
  30. });
  31. });
  32. }
  33. else if(p == 'watch_logger')
  34. {
  35. $(document).ready(function()
  36. {
  37. $('input#search').quicksearch('table#servermonitor tbody tr.maintr');
  38. $("#servermonitor")
  39. .collapsible("td.collapsible", {collapse: true})
  40. .tablesorter({sortList: [[1,1]] , widgets: ['zebra','repeatHeaders']});
  41. }
  42. );
  43. }